LazyDelegateFilter when starting spring-boot

Hello folks,
When I tried to run the spring-boot application on linux, I encountered a problem. I don’t know what the problem is. Please ask my friends to help solve this problem.

By the way, the database I use is mysql8.0

Here is the log:

2020/05/06 18:22:05:420 [] WARN [main] annotation.AnnotationConfigApplicationContext.refresh:551 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.camunda.bpm.spring.boot.starter.SpringBootProcessApplication’: Unsatisfied dependency expressed through field ‘processEngine’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.camunda.bpm.spring.boot.starter.CamundaBpmAutoConfiguration$ProcessEngineConfigurationImplDependingConfiguration’: Unsatisfied dependency expressed through field ‘processEngineConfigurationImpl’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘processEngineConfigurationImpl’ defined in class path resource [org/camunda/bpm/spring/boot/starter/CamundaBpmConfiguration.class]: Unsatisfied dependency expressed through method ‘processEngineConfigurationImpl’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘camundaHistoryConfiguration’: Unsatisfied dependency expressed through field ‘historyEventHandler’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘customHistoryEventHandle’: Unsatisfied dependency expressed through field ‘workflowServer’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘workflowServerImpl’: Unsatisfied dependency expressed through field ‘processEngine’; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘processEngineFactoryBean’: Requested bean is currently in creation: Is there an unresolvable circular reference?
2020/05/06 18:22:05:421 [] WARN [main] embedded.AnnotationConfigEmbeddedWebApplicationContext.refresh:551 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘modifyCorporateCustInfoController’: Unsatisfied dependency expressed through field ‘modifyCorporateCustInfoService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘modifyCorporateCustInfoServiceImpl’: Unsatisfied dependency expressed through field ‘darwinService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘apsiServiceImpl’: Unsatisfied dependency expressed through field ‘darwinClient’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘com.paic.bankcloud.ibp.account.server.gateway.feignclient.ApsiClient’: FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.camunda.bpm.spring.boot.starter.SpringBootProcessApplication’: Unsatisfied dependency expressed through field ‘processEngine’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.camunda.bpm.spring.boot.starter.CamundaBpmAutoConfiguration$ProcessEngineConfigurationImplDependingConfiguration’: Unsatisfied dependency expressed through field ‘processEngineConfigurationImpl’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘processEngineConfigurationImpl’ defined in class path resource [org/camunda/bpm/spring/boot/starter/CamundaBpmConfiguration.class]: Unsatisfied dependency expressed through method ‘processEngineConfigurationImpl’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘camundaHistoryConfiguration’: Unsatisfied dependency expressed through field ‘historyEventHandler’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘customHistoryEventHandle’: Unsatisfied dependency expressed through field ‘workflowServer’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘workflowServerImpl’: Unsatisfied dependency expressed through field ‘processEngine’; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘processEngineFactoryBean’: Requested bean is currently in creation: Is there an unresolvable circular reference?
2020/05/06 18:22:05:422 [] INFO [main] concurrent.ThreadPoolTaskExecutor.shutdown:202 - Shutting down ExecutorService ‘camundaTaskExecutor’
2020/05/06 18:22:05:423 [] INFO [main] core.StandardService.log:180 - Stopping service [Tomcat]
2020/05/06 18:22:05:430 [] ERROR [localhost-startStop-1] [localhost].[/].log:182 - Failed to destroy the filter named [Engines Filter] of type [org.camunda.bpm.spring.boot.starter.webapp.filter.LazyProcessEnginesFilter]
java.lang.NullPointerException: null
at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyDelegateFilter.destroy(LazyDelegateFilter.java:49) ~[camunda-bpm-spring-boot-starter-webapp-core-2.3.0.jar!/:2.3.0]
at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:318) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:4631) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5429) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1437) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1426) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_232]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_232]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_232]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]
2020/05/06 18:22:05:436 [] ERROR [localhost-startStop-1] [localhost].[/].log:182 - Failed to destroy the filter named [Security Filter] of type [org.camunda.bpm.spring.boot.starter.webapp.filter.LazySecurityFilter]
java.lang.NullPointerException: null
at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyDelegateFilter.destroy(LazyDelegateFilter.java:49) ~[camunda-bpm-spring-boot-starter-webapp-core-2.3.0.jar!/:2.3.0]
at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:318) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:4631) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5429) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1437) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1426) [tomcat-embed-core-8.5.29.jar!/:8.5.29]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_232]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_232]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_232]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]

1 Like

I ran into the same problem

@Demoboy the root cause is in the above stacktrace. Verify the below 2 points.

  • Error creating bean with name ‘workflowServerImpl’ ==> Check this class
  • Requested bean is currently in creation: Is there an unresolvable circular reference?