java.lang.NoSuchMethodError: hudson.plugins.analysis.core.ParserResult.addAnnotations(Ljava/util/Collection;)V

Jenkins JIRA | davida2009 | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0
  2. 0
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      hudson.plugins.analysis.core.ParserResult.addAnnotations(Ljava/util/Collection;)V

      at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog()
    2. hudson.plugins.warnings
      WarningsPublisher.perform
      1. hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:405)
      2. hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:321)
      2 frames
    3. Static Analysis Utilities
      HealthAwareRecorder.perform
      1. hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:319)
      1 frame
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      6. hudson.model.Run.execute(Run.java:1784)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:89)
      9. hudson.model.Executor.run(Executor.java:240)
      9 frames