Forums

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

@ComponentImport not working with BulkMoveOpration (extending BulkMigrate)

Sameer Bhangale February 10, 2020

Hello Guys,

I am trying to extend BulkMigrate.java in order to provide some issuetype level validations.
So when I upload a plugin here's the error that is haunting me for long.

2020-02-10 13:37:28,251 Spring DM Context Creation Timer ERROR [o.e.g.b.e.internal.support.ExtenderConfiguration] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=mypluginBundle, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.context.ApplicationContextException: Application context initialization for 'mypluginBundle' has timed out waiting for (&(objectClass=com.atlassian.jira.bulkedit.operation.BulkMoveOperation)(objectClass=com.atlassian.jira.bulkedit.operation.BulkMoveOperation))

 

Here's the java class implementation:

@Scanned
public class BulkMoveIssuesValidator extends BulkMigrate implements InitializingBean, DisposableBean{


@Autowired
public BulkMoveIssuesValidator(@ComponentImport SearchService searchService,@ComponentImport BulkMoveOperation bulkMoveOperation,
@ComponentImport FieldManager fieldManager, @ComponentImport WorkflowManager workflowManager, @ComponentImport ConstantsManager constantsManager,
@ComponentImport IssueFactory issueFactory, @ClasspathComponent BulkMigrateOperation bulkMigrateOperation, @ComponentImport PermissionManager permissionManager,
@ClasspathComponent BulkEditBeanSessionHelper bulkEditBeanSessionHelper, @ComponentImport TaskManager taskManager, @ComponentImport I18nHelper i18nHelper,
@ComponentImport PageBuilderService pageBuilderService, @ComponentImport IssueService issueService) {
super(searchService, bulkMoveOperation, fieldManager, workflowManager, constantsManager, issueFactory,
bulkMigrateOperation, permissionManager, bulkEditBeanSessionHelper, taskManager, i18nHelper, pageBuilderService,
issueService);
//this.bulkMoveOperation = bulkMoveOperation;

// TODO Auto-generated constructor stub
}

 

Also I have already been through, j-tricks for Spring scanner Annotations .

Any information to resolve this, will be helpful.

0 answers

Suggest an answer

Log in or Sign up to answer