Problems due to SharedDataManager as of Confluence 5.7

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)

2 answers

1 accepted

1 vote
Accepted answer

@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.

Any ideas?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

133 views 3 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you