I keep getting errors like this when I try to use my plugin:
[INFO] [talledLocalContainer] com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.******************': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.stash.pull.PullRequestService]: : No unique bean of type [com.atlassian.stash.pull.PullRequestService] is defined: Unsatisfied dependency of type [interface com.atlassian.stash.pull.PullRequestService]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.stash.pull.PullRequestService] is defined: Unsatisfied dependency of type [interface com.atlassian.stash.pull.PullRequestService]: expected at least 1 matching bean
My atlassian-plugin.xml contains, among other things:
<component-import key="pullRequestService" interface="com.atlassian.stash.pull.PullRequestService"/>
There are 5 component-imports that simply aren't working.
What am I doing wrong?
Community moderators have prevented the ability to post new answers.
Check out my latest blog about this error for JIRA plugins: http://www.j-tricks.com/tutorials/atlassian-spring-scanner-and-nosuchbeandefinitionexception
Same applies for Bitbucket server too. See more details at https://bitbucket.org/atlassian/atlassian-spring-scanner
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Weird! i created a new custom field in a new plugin,
based on an customfield from annother plugin.
Neither had the @Injection Annotation
On friday the Field worked just fine,
on Monday i start up the atlas-run after only changing some Javascript and i get the UnsatisfiedDependencyException.
I wonder why.
But Thanks for your article, at least i found out how to fix it relatively quick :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jens Kisters //SeibertSolutionsNot sure why it stopped working without any changes to the code! Anyways, glad you were able to fix it fast :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.