java.lang.NoSuchMethodError

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.

  • 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}
    via by Jonas Bang Christensen,
  • 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}
    via by Jonas Bang Christensen,
    • java.lang.NoSuchMethodError: hudson.plugins.analysis.core.ParserResult.addAnnotations(Ljava/util/Collection;)V at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:405) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:321) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:319) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1784) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)
    No Bugmate found.