java.lang.NoSuchMethodError: com.atlassian.jira.issue.MutableIssue.setComponentObjects(Ljava/util/Collection;)V

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Dear support, after upgrading to JIRA 7 one of our custom Clone Plus operations produces a runtime error when trying to set components. To be more specific, after selecting Project and Issue Type a dialog titled "Sorry, we had some technical problems during your last" appears containing the following stack trace (shortened for readability): {noformat} java.lang.NoSuchMethodError: com.atlassian.jira.issue.MutableIssue.setComponentObjects(Ljava/util/Collection;)V java.lang.NoSuchMethodError: com.atlassian.jira.issue.MutableIssue.setComponentObjects(Ljava/util/Collection;)V at org.swift.jira.cloneplus.action.ClonePlusDetailsAction.updateIssueFieldsFromProperties(ClonePlusDetailsAction.java:929) [?:?] at org.swift.jira.cloneplus.action.ClonePlusDetailsAction.copySummaryFieldFromOriginalIssueToHolder(ClonePlusDetailsAction.java:793) [?:?] at org.swift.jira.cloneplus.action.ClonePlusDetailsAction.doDefault(ClonePlusDetailsAction.java:376) [?:?] at sun.reflect.GeneratedMethodAccessor899.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_101] at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) [webwork-1.4-atlassian-30.jar:?] at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) [webwork-1.4-atlassian-30.jar:?] at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:438) [webwork-1.4-atlassian-30.jar:?] at webwork.action.ActionSupport.execute(ActionSupport.java:157) [webwork-1.4-atlassian-30.jar:?] at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63) [jira-api-7.0.5.jar:?] at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) [webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) [webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) [webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) [webwork-1.4-atlassian-30.jar:?] at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:225) [webwork-1.4-atlassian-30.jar:?] at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:154) [webwork-1.4-atlassian-30.jar:?] at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:141) [JiraWebworkActionDispatcher.class:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) [servlet-api.jar:?] ... {noformat} We are using Clone Plus 5.5.0 and the behaviour can be reproduced with a clean installation of JIRA Software 7.0.5 or 7.1.9 respectively. Here is a simple but complete configuration that triggers the error: {noformat} 1.plus.label = Clone and set components 1.plus.tooltip = Component bug 1.plus.condition.*.*.* = true # Map project to default to a specific project 1.plus.project.*.*.* = FOOBAR # Map issue type to default to a task (id = 10003 in this JIRA instance) 1.plus.type.*.*.* = 10003 # Set summary for testing purposes 1.plus.set.summary = Some text 1.plus.set.description = Actual description... # Try to set component 1.plus.set.components = Foo {noformat} If the line containing "1.plus.set.components" is commented out the error does not occur. Could you please look into this and let us know if this is an error or if we are doing something wrong. Thanks in advance.
    via by Felix Frießleben,
  • See [this question|https://bobswift.atlassian.net/wiki/questions/188055571] {noformat} java.lang.NoSuchMethodError: com.atlassian.jira.issue.MutableIssue.setComponentObjects(Ljava/util/Collection;)V at org.swift.jira.cloneplus.action.ClonePlusDetailsAction.updateIssueFieldsFromProperties(ClonePlusDetailsAction.java:944) [?:?] at org.swift.jira.cloneplus.action.ClonePlusDetailsAction.copySummaryFieldFromOriginalIssueToHolder(ClonePlusDetailsAction.java:808) [?:?] at org.swift.jira.cloneplus.action.ClonePlusDetailsAction.doDefault(ClonePlusDetailsAction.java:376) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_102] at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) [webwork-1.4-atlassian-30.jar:?] at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) [webwork-1.4-atlassian-30.jar:?] at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:438) [webwork-1.4-atlassian-30.jar:?] at webwork.action.ActionSupport.execute(ActionSupport.java:157) [webwork-1.4-atlassian-30.jar:?] at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63) [jira-api-7.2.0.jar:?] at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) [webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) [webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) [webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) [webwork-1.4-atlassian-30.jar:?] at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:225) [webwork-1.4-atlassian-30.jar:?] at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:154) [webwork-1.4-atlassian-30.jar:?] at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:141) [classes/:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [catalina.jar:8.0.33] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.33] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-websocket.jar:8.0.33] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [catalina.jar:8.0.33] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.33] at com.atlassian.jira.web.filters.JiraLastFilter.lambda$doFilter$0(JiraLastFilter.java:35) [classes/:?] at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(Cha {noformat}
    via by Robert Nadon,
    • java.lang.NoSuchMethodError: com.atlassian.jira.issue.MutableIssue.setComponentObjects(Ljava/util/Collection;)V at org.swift.jira.cloneplus.action.ClonePlusDetailsAction.updateIssueFieldsFromProperties(ClonePlusDetailsAction.java:929)[?:?] at org.swift.jira.cloneplus.action.ClonePlusDetailsAction.copySummaryFieldFromOriginalIssueToHolder(ClonePlusDetailsAction.java:793)[?:?] at org.swift.jira.cloneplus.action.ClonePlusDetailsAction.doDefault(ClonePlusDetailsAction.java:376)[?:?] at sun.reflect.GeneratedMethodAccessor899.invoke(Unknown Source)[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_101] at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)[webwork-1.4-atlassian-30.jar:?] at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)[webwork-1.4-atlassian-30.jar:?] at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:438)[webwork-1.4-atlassian-30.jar:?] at webwork.action.ActionSupport.execute(ActionSupport.java:157)[webwork-1.4-atlassian-30.jar:?] at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)[jira-api-7.0.5.jar:?] at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)[webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)[webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)[webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)[webwork-1.4-atlassian-30.jar:?] at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:225)[webwork-1.4-atlassian-30.jar:?] at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:154)[webwork-1.4-atlassian-30.jar:?] at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:141)[JiraWebworkActionDispatcher.class:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)[servlet-api.jar:?]
    No Bugmate found.