Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-6183

Optimize fails starting in CCSM mode

XMLWordPrintable

    • Not defined

      Brief summary of the bug. What is it ? Where is it ?

      If Optimize is started with 

      SPRING_PROFILES_ACTIVE=ccsm

      it fails with the following spring error:

      Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'CCSaaSEventReportingService' defined in URL [jar:file:/optimize/optimize-backend-3.9.0-alpha1-RC1.jar!/org/camunda/optimize/service/telemetry/CCSaaSEventReportingService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.camunda.optimize.service.telemetry.mixpanel.MixpanelReportingService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
          at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
          at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
          at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
          at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
          at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
          at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
          at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)
          at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
          at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
          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:1073)
          at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:572)
          at org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:1002)
          at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:746)
          at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
          at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
          at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
          at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
          at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
          at org.eclipse.jetty.server.Server.start(Server.java:423)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
          at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
          at org.eclipse.jetty.server.Server.doStart(Server.java:387)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
          at org.camunda.optimize.jetty.EmbeddedCamundaOptimize.startOptimize(EmbeddedCamundaOptimize.java:266)
          at org.camunda.optimize.Main.main(Main.java:27)
      Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.camunda.optimize.service.telemetry.mixpanel.MixpanelReportingService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
          at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1799)
          at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1355)
          at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309)
          at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
          at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) 

      Steps to reproduce:

      Actual result:

      see summary

      Expected result:

      it should start

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              sebastian.bathke Sebastian Bathke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: