Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9305

During shutting down of spring boot simple example an error is thrown

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • 7.9.0, 7.10.0, spring-boot 3.0.0
    • spring-boot
    • None

      Steps to reproduce:

      Current behavior:
      An exception is thrown when shutting down

      2018-08-30 16:37:16.113  INFO 9396 --- [pool-1-thread-1] org.camunda.bpm.engine.jobexecutor       : ENGINE-14015 Shutting down the JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor]
      2018-08-30 16:37:16.113  INFO 9396 --- [ingJobExecutor]] org.camunda.bpm.engine.jobexecutor       : ENGINE-14020 JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor] stopped job acquisition
      2018-08-30 16:37:16.116  INFO 9396 --- [pool-1-thread-1] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@12bc6874: startup date [Thu Aug 30 16:37:09 CEST 2018]; root of context hierarchy
      2018-08-30 16:37:16.123  INFO 9396 --- [pool-1-thread-1] ication$$EnhancerBySpringCGLIB$$3d0a2eca : preUndeploy: PreUndeployEvent{processEngine=org.camunda.bpm.engine.impl.ProcessEngineImpl@1190200a}
      2018-08-30 16:37:16.402  INFO 9396 --- [pool-1-thread-1] org.camunda.bpm.container                : ENGINE-08051 Process application mySimpleApplication undeployed
      2018-08-30 16:37:16.403  INFO 9396 --- [pool-1-thread-1] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
      2018-08-30 16:37:16.404  INFO 9396 --- [pool-1-thread-1] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans
      2018-08-30 16:37:16.406  INFO 9396 --- [pool-1-thread-1] org.camunda.bpm.engine                   : ENGINE-00007 Process Engine default closed
      2018-08-30 16:37:16.406  INFO 9396 --- [pool-1-thread-1] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
      2018-08-30 16:37:16.412  WARN 9396 --- [pool-1-thread-1] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Interrupted during closing
      
      java.lang.InterruptedException: null
              at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2067) ~[na:1.8.0_121]
              at java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1465) [na:1.8.0_121]
              at com.zaxxer.hikari.pool.HikariPool.shutdown(HikariPool.java:219) ~[HikariCP-2.7.9.jar!/:na]
              at com.zaxxer.hikari.HikariDataSource.close(HikariDataSource.java:382) ~[HikariCP-2.7.9.jar!/:na]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121]
              at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121]
              at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:337) [spring-beans-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:271) [spring-beans-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:577) [spring-beans-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:549) [spring-beans-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:957) [spring-beans-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:510) [spring-beans-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:964) [spring-beans-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1041) [spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1017) [spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:967) [spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at org.springframework.boot.SpringApplication.close(SpringApplication.java:1315) [spring-boot-2.0.2.RELEASE.jar!/:2.0.2.RELEASE]
              at org.springframework.boot.SpringApplication.exit(SpringApplication.java:1302) [spring-boot-2.0.2.RELEASE.jar!/:2.0.2.RELEASE]
              at org.camunda.bpm.spring.boot.example.simple.SimpleApplication.exitApplicationWhenProcessIsFinished(SimpleApplication.java:89) [classes!/:na]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121]
              at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121]
              at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65) [spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) [spring-context-5.0.6.RELEASE.jar!/:5.0.6.RELEASE]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_121]
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_121]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_121]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_121]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121]
              at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]
      
      2018-08-30 16:37:16.412  INFO 9396 --- [pool-1-thread-1] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'camundaTaskExecutor'
      

      Expected behavior:
      No exception is thrown

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              yana.vasileva Yana Vasileva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: