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

IllegalStateException on hot restart with Spring Boot Devtools

    Details

      Description

      When using Gradle + Spring Boot Devtools and trying to hot restart following exception occurres::

      java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1c83e4c4 has been closed already
      	at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1062) ~[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
      	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083) ~[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
      	at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyInitRegistration.getInitHook(LazyInitRegistration.java:33) ~[camunda-bpm-spring-boot-starter-webapp-core-2.2.0.jar:2.2.0]
      	at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyInitRegistration.lazyInit(LazyInitRegistration.java:45) ~[camunda-bpm-spring-boot-starter-webapp-core-2.2.0.jar:2.2.0]
      	at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyDelegateFilter.init(LazyDelegateFilter.java:39) ~[camunda-bpm-spring-boot-starter-webapp-core-2.2.0.jar:2.2.0]
      	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285) ~[tomcat-embed-core-8.5.15.jar:8.5.15]
      	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266) ~[tomcat-embed-core-8.5.15.jar:8.5.15]
      	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) ~[tomcat-embed-core-8.5.15.jar:8.5.15]
      	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4590) [tomcat-embed-core-8.5.15.jar:8.5.15]
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233) [tomcat-embed-core-8.5.15.jar:8.5.15]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.5.15.jar:8.5.15]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) [tomcat-embed-core-8.5.15.jar:8.5.15]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [tomcat-embed-core-8.5.15.jar:8.5.15]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_73]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_73]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_73]
      	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_73]
      

      Also related with forum post:
      https://forum.camunda.org/t/devtools-reload-not-working/4868

        Activity

        svetlana.dorokhova Svetlana Dorokhova created issue -
        svetlana.dorokhova Svetlana Dorokhova made changes -
        Field Original Value New Value
        Summary Spring Boot Devtools + Gradle - hot restart is broken IllegalStateException on hot restart with Spring Boot Devtools
        svetlana.dorokhova Svetlana Dorokhova made changes -
        Description Forum post:
        https://forum.camunda.org/t/devtools-reload-not-working/4868
        When using Gradle + Spring Boot Devtools and trying to hot restart following exception occurres::

        {code:java}
        java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1c83e4c4 has been closed already
        at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1062) ~[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083) ~[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE]
        at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyInitRegistration.getInitHook(LazyInitRegistration.java:33) ~[camunda-bpm-spring-boot-starter-webapp-core-2.2.0.jar:2.2.0]
        at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyInitRegistration.lazyInit(LazyInitRegistration.java:45) ~[camunda-bpm-spring-boot-starter-webapp-core-2.2.0.jar:2.2.0]
        at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyDelegateFilter.init(LazyDelegateFilter.java:39) ~[camunda-bpm-spring-boot-starter-webapp-core-2.2.0.jar:2.2.0]
        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285) ~[tomcat-embed-core-8.5.15.jar:8.5.15]
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266) ~[tomcat-embed-core-8.5.15.jar:8.5.15]
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) ~[tomcat-embed-core-8.5.15.jar:8.5.15]
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4590) [tomcat-embed-core-8.5.15.jar:8.5.15]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233) [tomcat-embed-core-8.5.15.jar:8.5.15]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.5.15.jar:8.5.15]
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) [tomcat-embed-core-8.5.15.jar:8.5.15]
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [tomcat-embed-core-8.5.15.jar:8.5.15]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_73]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_73]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_73]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_73]
        {code}

        Also related with forum post:
        https://forum.camunda.org/t/devtools-reload-not-working/4868
        svetlana.dorokhova Svetlana Dorokhova made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s spring-boot 2.3.0 [ 14993 ]
        Resolution Fixed [ 1 ]
        svetlana.dorokhova Svetlana Dorokhova made changes -
        Fix Version/s spring-boot 2.3.0-alpha1 [ 15094 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Workflow camunda BPM [ 44142 ] Backup_camunda BPM [ 63205 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            svetlana.dorokhova Svetlana Dorokhova
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development