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

Jenkins JIRA | Jonas Bang Christensen | 2 years ago
  1. 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
  2. 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
  3. 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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

      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:756)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      4. hudson.model.Build$BuildExecution.post2(Build.java:182)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669)
      6. hudson.model.Run.execute(Run.java:1731)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:232)
      9 frames