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

JIRA | Felix Frießleben | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    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.

    JIRA | 7 months ago | Felix Frießleben
    java.lang.NoSuchMethodError: com.atlassian.jira.issue.MutableIssue.setComponentObjects(Ljava/util/Collection;)V
  2. 0

    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}

    JIRA | 6 months ago | Robert Nadon
    java.lang.NoSuchMethodError: com.atlassian.jira.issue.MutableIssue.setComponentObjects(Ljava/util/Collection;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.atlassian.jira.issue.MutableIssue.setComponentObjects(Ljava/util/Collection;)V

      at org.swift.jira.cloneplus.action.ClonePlusDetailsAction.updateIssueFieldsFromProperties()
    2. org.swift.jira
      ClonePlusDetailsAction.doDefault
      1. org.swift.jira.cloneplus.action.ClonePlusDetailsAction.updateIssueFieldsFromProperties(ClonePlusDetailsAction.java:929)[?:?]
      2. org.swift.jira.cloneplus.action.ClonePlusDetailsAction.copySummaryFieldFromOriginalIssueToHolder(ClonePlusDetailsAction.java:793)[?:?]
      3. org.swift.jira.cloneplus.action.ClonePlusDetailsAction.doDefault(ClonePlusDetailsAction.java:376)[?:?]
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor899.invoke(Unknown Source)[?:?]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_101]
      3. java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_101]
      3 frames
    4. webwork.util
      InjectionUtils.invoke
      1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)[webwork-1.4-atlassian-30.jar:?]
      2. webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)[webwork-1.4-atlassian-30.jar:?]
      2 frames
    5. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.invokeCommand(ActionSupport.java:438)[webwork-1.4-atlassian-30.jar:?]
      2. webwork.action.ActionSupport.execute(ActionSupport.java:157)[webwork-1.4-atlassian-30.jar:?]
      2 frames
    6. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)[jira-api-7.0.5.jar:?]
      1 frame
    7. webwork.interceptor
      DefaultInterceptorChain.proceed
      1. webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)[webwork-1.4-atlassian-30.jar:?]
      2. webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)[webwork-1.4-atlassian-30.jar:?]
      3. webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)[webwork-1.4-atlassian-30.jar:?]
      4. webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)[webwork-1.4-atlassian-30.jar:?]
      4 frames
    8. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:225)[webwork-1.4-atlassian-30.jar:?]
      2. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:154)[webwork-1.4-atlassian-30.jar:?]
      2 frames
    9. com.atlassian.jira
      JiraWebworkActionDispatcher.service
      1. com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:141)[JiraWebworkActionDispatcher.class:?]
      1 frame
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:725)[servlet-api.jar:?]
      1 frame