Hi
we are validating the migration of our Confluence to 5.7.
We have one major problem with one of our plugins, that cannot be enabled in 5.7. The problem is related to the newly added class SharedDataManager which is used by the TokenAuthenticationManager, which in turn is used by the plugin.
The plugin works well with 5.6.x
Adding the component import to the atlassian-plugin.xml did not solve the problem.
Any ideas?
Here is the error:
2015-01-31 17:14:21,013 ERROR[ThreadPoolAsyncTaskExecutor::Thread 19][plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.greenpepper.confluence.plugin' org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'greenpepper.listener' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type[com.greenpepper.confluence.velocity.ConfluenceGreenPepper]: : Error creating bean with name 'confluenceGreenPepper' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 2 of type[com.atlassian.confluence.rpc.auth.TokenAuthenticationManager]: : Error creating bean with name 'tokenAuthenticationManager' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 5 of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager]: : No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tokenAuthenticationManager' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 5 of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager]: : No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'confluenceGreenPepper' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 2 of type[com.atlassian.confluence.rpc.auth.TokenAuthenticationManager]: : Error creating bean with name 'tokenAuthenticationManager' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 5 of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager]: : No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tokenAuthenticationManager' defined in URL[bundle://213.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 5 of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager]: : No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type[com.atlassian.confluence.cluster.shareddata.SharedDataManager] is defined: Unsatisfied dependency of type [interface com.atlassian.confluence.cluster.shareddata.SharedDataManager]: expected at least 1 matching bean at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:591) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:193) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
@Anis Ben - The SharedDataManager was introduced in Confluence 5.7 but may not have been configured correctly to be made available to plugins. I have created an issue for this and we are actively investigating, please take a look at https://jira.atlassian.com/browse/CONF-36409 for updates as they are available.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.