Unable to start the plugin container for the CCMA plugin

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.

   

Summary


While trying to enable or update the CCMA plugin the user will receive the following message through the UI:

Environment

Affected environments:

  • Confluence 7.11+
  • MySQL 5.7 and 8.0 
  • CCMA 3.4+

Diagnosis

Once the message "This app failed to enable. Refer to the logs for more information." is shown in the UI the following error will appear in the Confluence logs:


atlassian-confluence.log
2023-03-21 16:20:54,078 ERROR [ThreadPoolAsyncTaskExecutor::Thread 25] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.atlassian.migration.agent'
 -- url: /confluence/rest/plugins/1.0/ | referer: https://localhost:8090/confluence/plugins/servlet/upm/marketplace/search?q=migration | traceId: bbd8462846b0e827 | userName: admin
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'defaultInitialStateService' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'defaultInitialStateService' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'planService' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'planService' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stepCoordinator' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'stepCoordinator' parameter 7; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'progressTracker' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'progressTracker' parameter 13; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'migrationLogService' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'migrationLogService' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'migrationLogDirManager' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'migrationLogDirManager' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clusterInformationService' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'clusterInformationService' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clusterLimits' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.migration.agent.service.ClusterLimits]: Factory method 'clusterLimits' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/util/function/SingletonSupplier
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:769)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:509)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1318)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1158)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:554)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:514)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:321)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:319)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:57)
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:322)
	at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:287)
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'planService' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'planService' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stepCoordinator' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'stepCoordinator' parameter 7; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'progressTracker' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'progressTracker' parameter 13; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'migrationLogService' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'migrationLogService' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'migrationLogDirManager' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'migrationLogDirManager' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clusterInformationService' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Unsatisfied dependency expressed through method 'clusterInformationService' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clusterLimits' defined in OSGi resource[classpath:com/atlassian/migration/agent/ServiceBeanConfiguration.class|bnd.id=303|bnd.sym=com.atlassian.migration.agent]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.migration.agent.service.ClusterLimits]: Factory method 'clusterLimits' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/util/function/SingletonSupplier

Cause

Due to a missmatch with Spring Core & JDBC, where SingletonSupplier cannot be found by SQLErrorCodeSQLExceptionTranslator. This is dependent on what version of Confluence is running, and such, which version of Spring is being picked up by OGSI. 

Solution

In order to fix this issue, please upgrade to the latest version of CCMA.




Last modified on Jun 7, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.