I want to use Spring Boot Devtools to reload Camunda application during development. Unfortunately, that doesn’t work. During a reload my application fails with the following exception:
2017-09-22 18:30:34.585 ERROR 76464 --- [ost-startStop-1] o.a.c.c.C.[.[localhost].[/camunda] : Exception starting filter [Engines Filter]
java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@107718a9 has been closed already
at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1062)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083)
at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyInitRegistration.getInitHook(LazyInitRegistration.java:33)
at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyInitRegistration.lazyInit(LazyInitRegistration.java:45)
at org.camunda.bpm.spring.boot.starter.webapp.filter.LazyDelegateFilter.init(LazyDelegateFilter.java:39)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4590)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Any hints? Has anyone been able to successfully use devtools reload feature with camunda spring boot?
My environment: Gradle, Camunda 7.6 with Camunda Spring Boot Starter 2.1.2
I’ve created the bug report for this issue: https://app.camunda.com/jira/browse/CAM-8261
Hopefully someone from community will be interested in researching and fixing this issue. Feel free to participate yourself