若依微服务集成flowable工作流The dependencies of some of the beans in the application context form a cycle
C:\Java\jdk1.8.0_202\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:32579,suspend=y,server=n -Drebel.base=C:\Users\Administrator\.jrebel -Drebel.env.ide.plugin.version=2021.4.0 -Drebel.env.ide.version=2020.3.4 -Drebel.env.ide.product=IU -Drebel.env.ide=intellij -Drebel.notification.url=http://localhost:17434 -agentpath:C:\Users\Administrator\AppData\Roaming\JetBrains\IntelliJIdea2020.3\plugins\jr-ide-idea\lib\jrebel6\lib\jrebel64.dll -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -javaagent:C:\Users\Administrator\AppData\Local\JetBrains\IntelliJIdea2020.3\captureAgent\debugger-agent.jar -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath C:\Users\Administrator\AppData\Local\Temp\classpath46149720.jar com.huajun.disasterchain.HuaJunDisasterchainApplication Connected to the target VM, address: '127.0.0.1:32579', transport: 'socket' 2022-05-16 14:44:57 JRebel: Directory 'D:\HuajunCode\hnsyjt\Huajun-Cloud-code\Huajun-Cloud\huajun-modules\huajun-disasterchain\target\classes' will be monitored for changes. 2022-05-16 14:44:59 JRebel: Directory 'D:\HuajunCode\hnsyjt\Huajun-Cloud-code\Huajun-Cloud\huajun-common\huajun-common-datasource\target\classes' will be monitored for changes. 2022-05-16 14:45:02 JRebel: 2022-05-16 14:45:02 JRebel: A newer version '2022.2.1' is available for download 2022-05-16 14:45:02 JRebel: from https://jrebel.com/software/jrebel/download/ 2022-05-16 14:45:02 JRebel: 2022-05-16 14:45:04 JRebel: Starting logging to file: C:\Users\Administrator\.jrebel\jrebel.log 2022-05-16 14:45:04 JRebel: 2022-05-16 14:45:04 JRebel: ############################################################# 2022-05-16 14:45:04 JRebel: 2022-05-16 14:45:04 JRebel: JRebel Agent 2021.4.0 (202110040625) 2022-05-16 14:45:04 JRebel: (c) Copyright 2007-2021 Perforce Software, Inc. 2022-05-16 14:45:04 JRebel: 2022-05-16 14:45:04 JRebel: Over the last 30 days JRebel prevented 2022-05-16 14:45:04 JRebel: at least 337 redeploys/restarts saving you about 13.7 hours. 2022-05-16 14:45:04 JRebel: 2022-05-16 14:45:04 JRebel: Over the last 365 days JRebel prevented 2022-05-16 14:45:04 JRebel: at least 2114 redeploys/restarts saving you about 85.7 hours. 2022-05-16 14:45:04 JRebel: 2022-05-16 14:45:04 JRebel: License acquired from License Server: http://jrebel.cicoding.cn 2022-05-16 14:45:04 JRebel: 2022-05-16 14:45:04 JRebel: Licensed to Administrator. 2022-05-16 14:45:04 JRebel: 2022-05-16 14:45:04 JRebel: 2022-05-16 14:45:04 JRebel: ############################################################# 2022-05-16 14:45:04 JRebel: 14:45:12.701 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.3.Final Spring Boot Version: 2.6.7 Spring Application Name: huajun-disasterchain _ _ _ _ _ _ _ _ _ _ _______ __ _ __ __ ____ _ _____ | | | | | | | / \ | | | | | \ | | | ____\ \/ / / \ | \/ | _ \| | | ____| | |_| | | | |/ _ \ _ | | | | | \| |_____| _| \ / / _ \ | |\/| | |_) | | | _| | _ | |_| / ___ \ |_| | |_| | |\ |_____| |___ / \ / ___ \| | | | __/| |___| |___ |_| |_|\___/_/ \_\___/ \___/|_| \_| |_____/_/\_\/_/ \_\_| |_|_| |_____|_____| 14:45:19.864 [main] INFO c.a.n.c.r.client - [lambda$createClient$0,80] - [RpcClientFactory] create a new rpc client of d15942b0-b71d-498c-978f-b774c94b7145_config-0 14:45:20.159 [main] INFO o.r.Reflections - [scan,232] - Reflections took 155 ms to scan 1 urls, producing 3 keys and 6 values 14:45:20.378 [main] INFO o.r.Reflections - [scan,232] - Reflections took 47 ms to scan 1 urls, producing 4 keys and 9 values 14:45:20.435 [main] INFO o.r.Reflections - [scan,232] - Reflections took 46 ms to scan 1 urls, producing 3 keys and 10 values 14:45:20.555 [main] INFO o.r.Reflections - [scan,232] - Reflections took 105 ms to scan 14 urls, producing 0 keys and 0 values 14:45:20.613 [main] INFO o.r.Reflections - [scan,232] - Reflections took 54 ms to scan 1 urls, producing 1 keys and 5 values 14:45:20.683 [main] INFO o.r.Reflections - [scan,232] - Reflections took 56 ms to scan 1 urls, producing 1 keys and 7 values 14:45:20.756 [main] INFO o.r.Reflections - [scan,232] - Reflections took 63 ms to scan 1 urls, producing 2 keys and 8 values 14:45:20.817 [main] INFO o.r.Reflections - [scan,232] - Reflections took 53 ms to scan 14 urls, producing 0 keys and 0 values 14:45:20.832 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [d15942b0-b71d-498c-978f-b774c94b7145_config-0] RpcClient init label, labels = {module=config, Vipserver-Tag=null, source=sdk, Amory-Tag=null, Location-Tag=null, taskId=0, AppName=unknown} 14:45:20.834 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [d15942b0-b71d-498c-978f-b774c94b7145_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$359/1110095671 14:45:20.835 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [d15942b0-b71d-498c-978f-b774c94b7145_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$360/1071977170 14:45:20.838 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [d15942b0-b71d-498c-978f-b774c94b7145_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 14:45:20.840 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [d15942b0-b71d-498c-978f-b774c94b7145_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 14:45:20.871 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [d15942b0-b71d-498c-978f-b774c94b7145_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} 14:45:28.356 [main] ERROR c.a.n.c.r.c.g.GrpcClient - [printIfErrorEnabled,99] - Server check fail, please check server 127.0.0.1 ,port 9848 is available , error ={} java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 3 milliseconds, 167500 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls$GrpcFuture@20a3e10c[status=PENDING, info=[GrpcFuture{clientCall={delegate={delegate=ClientCallImpl{method=MethodDescriptor{fullMethodName=Request/request, type=UNARY, idempotent=false, safe=false, sampledToLocalTracing=true, requestMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@409732fb, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@73d62b5, schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpc$RequestMethodDescriptorSupplier@5e99e2cb}}}}}]] at com.alibaba.nacos.shaded.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:508) at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.serverCheck(GrpcClient.java:148) at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:264) at com.alibaba.nacos.common.remote.client.RpcClient.start(RpcClient.java:390) at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.ensureRpcClient(ClientWorker.java:885) at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.getOneRunningClient(ClientWorker.java:1044) at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.queryConfig(ClientWorker.java:940) at com.alibaba.nacos.client.config.impl.ClientWorker.getServerConfig(ClientWorker.java:397) at com.alibaba.nacos.client.config.NacosConfigService.getConfigInner(NacosConfigService.java:166) at com.alibaba.nacos.client.config.NacosConfigService.getConfig(NacosConfigService.java:94) at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.loadNacosData(NacosPropertySourceBuilder.java:85) at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.build(NacosPropertySourceBuilder.java:73) at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosPropertySource(NacosPropertySourceLocator.java:199) at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosDataIfPresent(NacosPropertySourceLocator.java:186) at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosConfiguration(NacosPropertySourceLocator.java:158) at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadSharedConfiguration(NacosPropertySourceLocator.java:116) at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.locate(NacosPropertySourceLocator.java:101) at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:51) at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:47) at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:95) at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:613) at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:381) at org.springframework.boot.SpringApplication.run(SpringApplication.java:302) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) at com.huajun.disasterchain.HuaJunDisasterchainApplication.main(HuaJunDisasterchainApplication.java:24) 14:45:28.373 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [d15942b0-b71d-498c-978f-b774c94b7145_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} 14:45:29.887 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [d15942b0-b71d-498c-978f-b774c94b7145_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1652683529366_127.0.0.1_32762 14:45:29.889 [com.alibaba.nacos.client.remote.worker] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [d15942b0-b71d-498c-978f-b774c94b7145_config-0] Notify connected event to listeners. 14:45:29.892 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [d15942b0-b71d-498c-978f-b774c94b7145_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler 14:45:29.897 [main] INFO c.a.n.c.r.client - [printIfInfoEnabled,60] - [d15942b0-b71d-498c-978f-b774c94b7145_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$369/1662140450 14:45:30.189 [main] WARN c.a.c.n.c.NacosPropertySourceBuilder - [loadNacosData,87] - Ignore the empty nacos configuration and get it based on dataId[huajun-disasterchain] & group[HUAJUN_GROUP] 14:45:30.206 [main] WARN c.a.c.n.c.NacosPropertySourceBuilder - [loadNacosData,87] - Ignore the empty nacos configuration and get it based on dataId[huajun-disasterchain.yml] & group[HUAJUN_GROUP] 14:45:30.294 [main] INFO c.h.d.HuaJunDisasterchainApplication - [logStartupProfileInfo,646] - The following 1 profile is active: "dev" 14:45:47.689 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-9289"] 14:45:47.691 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat] 14:45:47.693 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.62] 14:45:48.329 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext 14:45:50.245 [main] ERROR o.a.c.c.C.[.[.[/] - [log,173] - For security constraints with URL pattern [/*] only the HTTP methods [TRACE HEAD DELETE SEARCH PROPFIND COPY PUT PATCH] are covered. All other methods are uncovered. 14:45:54.135 [main] INFO c.a.d.p.DruidDataSource - [init,998] - {dataSource-1,master} inited 14:45:54.140 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,148] - dynamic-datasource - add a datasource named [master] success 14:45:54.142 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,228] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master] _ _ |_ _ _|_. ___ _ | _ | | |\/|_)(_| | |_\ |_)||_|_\ / | 3.4.2 14:46:08.079 [main] WARN c.b.m.c.m.TableInfoHelper - [initTableFields,327] - Can not find table primary key in Class: "com.huajun.disasterchain.model.FlowTaskExt". 14:46:09.459 [main] INFO o.f.s.b.e.EventRegistryAutoConfiguration - [discoverDeploymentResources,104] - No deployment resources were found for autodeployment 14:46:11.014 [main] INFO o.f.s.b.ProcessEngineAutoConfiguration - [discoverDeploymentResources,104] - No deployment resources were found for autodeployment 14:46:13.230 [main] INFO o.f.s.SpringProcessEngineConfiguration - [initConfigurators,1000] - Found 2 Engine Configurators in total: 14:46:13.231 [main] INFO o.f.s.SpringProcessEngineConfiguration - [initConfigurators,1002] - class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000) 14:46:13.232 [main] INFO o.f.s.SpringProcessEngineConfiguration - [initConfigurators,1002] - class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:150000) 14:46:13.233 [main] INFO o.f.s.SpringProcessEngineConfiguration - [configuratorsBeforeInit,1028] - Executing beforeInit() of class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000) 14:46:13.273 [main] INFO o.f.s.SpringProcessEngineConfiguration - [configuratorsBeforeInit,1028] - Executing beforeInit() of class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:150000) 14:46:19.612 [main] INFO o.f.s.SpringProcessEngineConfiguration - [configuratorsAfterInit,1035] - Executing configure() of class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000) 14:46:23.187 [main] INFO l.lockservice - [log,26] - Successfully acquired change log lock 14:46:26.502 [main] INFO liquibase.changelog - [log,26] - Reading from `huajun-cloud-disasterchain`.FLW_EV_DATABASECHANGELOG 14:46:26.973 [main] INFO l.lockservice - [log,26] - Successfully released change log lock 14:46:26.981 [main] INFO o.f.e.i.EventRegistryEngineImpl - [<init>,53] - EventRegistryEngine default created 14:46:26.990 [main] INFO o.f.s.SpringProcessEngineConfiguration - [configuratorsAfterInit,1035] - Executing configure() of class org.flowable.idm.engine.configurator.IdmEngineConfigurator (priority:150000) 14:46:27.490 [main] INFO o.f.i.e.i.IdmEngineImpl - [<init>,52] - IdmEngine default created 14:46:28.277 [main] INFO o.f.e.i.ProcessEngineImpl - [<init>,88] - ProcessEngine default created 14:46:28.475 [main] INFO o.f.e.i.c.ValidateV5EntitiesCmd - [execute,43] - Total of v5 deployments found: 0 14:46:28.994 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - [__refresh,591] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'flowCategoryController': Unsatisfied dependency expressed through field 'flowEntryService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'flowEntryService': Unsatisfied dependency expressed through field 'flowApiService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'flowApiService': Unsatisfied dependency expressed through field 'flowEntryService'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'flowEntryService': Requested bean is currently in creation: Is there an unresolvable circular reference? 14:46:29.060 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,205] - dynamic-datasource start closing .... 14:46:29.076 [main] INFO c.a.d.p.DruidDataSource - [close,2071] - {dataSource-1} closing ... 14:46:29.095 [main] INFO c.a.d.p.DruidDataSource - [close,2144] - {dataSource-1} closed 14:46:29.096 [main] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,209] - dynamic-datasource all closed success,bye 14:46:29.107 [main] INFO o.a.c.c.StandardService - [log,173] - Stopping service [Tomcat] 14:46:29.373 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - [report,40] - *************************** APPLICATION FAILED TO START *************************** Description: The dependencies of some of the beans in the application context form a cycle: flowCategoryController (field private com.huajun.disasterchain.service.IFlowEntryService com.huajun.disasterchain.controller.FlowCategoryController.flowEntryService) ┌─────┐ | flowEntryService (field private com.huajun.disasterchain.service.IFlowApiService com.huajun.disasterchain.service.impl.FlowEntryServiceImpl.flowApiService) ↑ ↓ | flowApiService (field private com.huajun.disasterchain.service.IFlowEntryService com.huajun.disasterchain.service.impl.FlowApiServiceImpl.flowEntryService) └─────┘ Action: Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true. 14:46:29.378 [Thread-43] WARN c.a.n.c.n.NotifyCenter - [shutdown,136] - [NotifyCenter] Start destroying Publisher 14:46:29.378 [Thread-43] WARN c.a.n.c.n.NotifyCenter - [shutdown,153] - [NotifyCenter] Destruction of the end 14:46:29.383 [Thread-29] WARN c.a.n.c.h.HttpClientBeanHolder - [shutdown,108] - [HttpClientBeanHolder] Start destroying common HttpClient Disconnected from the target VM, address: '127.0.0.1:32579', transport: 'socket' Process finished with exit code 1