Optimize does not start

Hi there, I wanted to experiment with optimize. So, I implemented a Camunda workflow in spring boot starter. I unpacked optimize.zip and modified the configuration entry from http://localhost:8080/engine-rest to http://localhost:8080/rest, as it was recommended in this video: https://camunda.com/de/learn/videos/getting-started-optimize/

Then I started cammunda-demo.bat . The log on the console listed 1 poll for elasticsearch and 6 polls (from 5 down to 0) for optimize. After that, the startup was cancelled. When I took a look in the log file, I found these hints:

20:32:18.919 [main] WARN o.s.w.c.s.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dashboardService’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/dashboard/DashboardService.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘reportService’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/report/ReportService.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘authorizationCheckReportEvaluationHandler’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/es/report/AuthorizationCheckReportEvaluationHandler.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘reportAuthorizationService’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/security/ReportAuthorizationService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘identityService’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/IdentityService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘applicationAuthorizationService’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/security/ApplicationAuthorizationService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘engineContextFactory’: Invocation of init method failed; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: While checking the Engine version, following error occurred: Status code: 404,
this means you either configured a wrong endpoint or you have an unsupported engine version < 7.10.6
20:32:18.937 [main] ERROR o.s.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dashboardService’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/dashboard/DashboardService.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘reportService’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/report/ReportService.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘authorizationCheckReportEvaluationHandler’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/es/report/AuthorizationCheckReportEvaluationHandler.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘reportAuthorizationService’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/security/ReportAuthorizationService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘identityService’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/IdentityService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘applicationAuthorizationService’ defined in URL [jar:file:/C:/Software/Camunda/Optimize/2.7.0/optimize-backend-2.7.0.jar!/org/camunda/optimize/service/security/ApplicationAuthorizationService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘engineContextFactory’: Invocation of init method failed; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: While checking the Engine version, following error occurred: Status code: 404,
this means you either configured a wrong endpoint or you have an unsupported engine version < 7.10.6
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1358)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1204)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:921)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:554)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:888)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:357)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:821)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:276)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
at org.eclipse.jetty.server.Server.start(Server.java:407)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:106)
at org.eclipse.jetty.server.Server.doStart(Server.java:371)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
at org.camunda.optimize.jetty.EmbeddedCamundaOptimize.startOptimize(EmbeddedCamundaOptimize.java:169)
at org.camunda.optimize.Main.main(Main.java:17)

This seems rather strange to me because the engine I had started has version 7.12.0. Can anybody tell me please what I did wrong?

Many thanks in advance!

Regards,
Christian

Meanwhile, I found out by myself: in order to be able to communicate with REST, for the spring boot starter application the dependency camunda-bpm-spring-boot-starter-rest had to be added.

2 Likes