Error: No unique bean of type [com.atlassian.jira.issue.fields.util.VersionHelperBean] is defined

Hi,

I work on a JIRA 5.2.1 Plugin Version 2.

When I tried to add a new customfield that extends the VersionCFType I get the follwing error:

com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.company.jira.plugins.AddFixVersionCFType': Unsatisfied dependency expressed through constructor argument with index 5 of type [com.atlassian.jira.issue.fields.util.VersionHelperBean]: : No unique bean of type [com.atlassian.jira.issue.fields.util.VersionHelperBean] is defined: Unsatisfied dependency of type [class com.atlassian.jira.issue.fields.util.VersionHelperBean]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.jira.issue.fields.util.VersionHelperBean] is defined: Unsatisfied dependency of type [class com.atlassian.jira.issue.fields.util.VersionHelperBean]: expected at least 1 matching bean

Some lines of code from java class:
AddFixVersionCFType.java
...
import com.atlassian.jira.issue.fields.util.VersionHelperBean;
....

public class AddFixVersionCFType extends VersionCFType {



	public AddFixVersionCFType(PermissionManager permissionManager, JiraAuthenticationContext jiraAuthenticationContext, VersionManager versionManager,
			CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, VersionHelperBean versionHelperBean, JiraBaseUrls jiraBaseUrls) {
		super(permissionManager, jiraAuthenticationContext, versionManager, customFieldValuePersister, genericConfigManager, versionHelperBean, jiraBaseUrls);
	}
...

What can I do?
regards,
Christian

1 answer

This widget could not be displayed.

I solved this by using Version 1 plugin instead of Version 2 plugin.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

144 views 2 0
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