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

JIRA | Felix Frie├čleben | 4 months ago
  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 | 4 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 | 3 months ago | Robert Nadon
    java.lang.NoSuchMethodError: com.atlassian.jira.issue.MutableIssue.setComponentObjects(Ljava/util/Collection;)V
  3. 0

    Scala Console Fails to start throwing NoSuchMethodException using latest nightly build of Scala Plugin

    YouTrack | 6 years ago
    java.lang.NoSuchMethodError: com.intellij.execution.impl.ConsoleViewImpl.importHistory(Ljava/util/Collection;)V
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
  6. 0

    After updating "warnings-plugin" from 4.42 to 4.43 (and "analysis-core" from 1.61 to 1.64) then ALL my jobs fail no matter which parser is used (see logs below). I tried to downgrade "warnings-plugin" to 4.42, still they fail. I tried to uninstall "warnings-plugin" and install it again, still they fail. I tried to disable "warnings-plugin" in the individual job (they pass, obviously) and enable it again, still they fail. Then I tried to downgrade "analysis-core" to 1.61, and they pass again. So, seems to be an issue with "analysis-core" 1.64. Log example 1: {quote} 00:02:46.430 [WARNINGS] Parsing warnings in console log with parser IAR Compiler (C/C++) 00:02:46.491 ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception 00:02:46.494 java.lang.NoSuchMethodError: hudson.plugins.analysis.core.ParserResult.addAnnotations(Ljava/util/Collection;)V 00:02:46.495 at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:405) 00:02:46.495 at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:321) 00:02:46.495 at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:319) 00:02:46.495 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 00:02:46.495 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756) 00:02:46.495 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) 00:02:46.495 at hudson.model.Build$BuildExecution.post2(Build.java:182) 00:02:46.495 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669) 00:02:46.495 at hudson.model.Run.execute(Run.java:1731) 00:02:46.495 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 00:02:46.495 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:02:46.495 at hudson.model.Executor.run(Executor.java:232) {quote} Log example 2: {quote} 00:03:34.271 [WARNINGS] Parsing warnings in console log with parser Texas Instruments Code Composer Studio (C/C++) 00:03:34.286 ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception 00:03:34.286 java.lang.NoSuchMethodError: hudson.plugins.analysis.core.ParserResult.addAnnotations(Ljava/util/Collection;)V 00:03:34.286 at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:405) 00:03:34.286 at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:321) 00:03:34.286 at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:319) 00:03:34.286 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 00:03:34.286 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756) 00:03:34.286 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) 00:03:34.287 at hudson.model.Build$BuildExecution.post2(Build.java:182) 00:03:34.287 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669) 00:03:34.287 at hudson.model.Run.execute(Run.java:1731) 00:03:34.287 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 00:03:34.287 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:03:34.287 at hudson.model.Executor.run(Executor.java:232) {quote} Log example 3: {quote} 00:01:56.629 [WARNINGS] Parsing warnings in console log with parser MSBuild 00:01:56.644 ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception 00:01:56.645 java.lang.NoSuchMethodError: hudson.plugins.analysis.core.ParserResult.addAnnotations(Ljava/util/Collection;)V 00:01:56.645 at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:405) 00:01:56.645 at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:321) 00:01:56.645 at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:319) 00:01:56.645 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 00:01:56.645 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756) 00:01:56.645 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) 00:01:56.645 at hudson.model.Build$BuildExecution.post2(Build.java:182) 00:01:56.645 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669) 00:01:56.646 at hudson.model.Run.execute(Run.java:1731) 00:01:56.646 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 00:01:56.646 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:01:56.646 at hudson.model.Executor.run(Executor.java:232) {quote}

    Jenkins JIRA | 2 years ago | Jonas Bang Christensen
    java.lang.NoSuchMethodError: hudson.plugins.analysis.core.ParserResult.addAnnotations(Ljava/util/Collection;)V

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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