Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Problems due to SharedDataManager as of Confluence 5.7

AnisB February 2, 2015

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
Answer accepted
m@
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2015

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

0 votes
AnisB February 5, 2015

Any ideas?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events