java.lang.NoSuchMethodError: hudson.plugins.analysis.core.BuildResult.<init>(Lhudson/model/AbstractBuild;Ljava/lang/String;Lhudson/plugins/analysis/core/ParserResult;Lhudson/plugins/analysis/core/BuildResult;)V

Jenkins JIRA | johanwannheden | 7 years ago
  1. 0

    *{{NoSuchMethodError}}* exception when building FindBugs result: {noformat} ... BUILD SUCCESSFUL Total time: 11 minutes 35 seconds [WARNINGS] Parsing warnings in console log... [FINDBUGS] Collecting findbugs analysis files... [FINDBUGS] Successfully parsed file /home/hudson/hudson_home/jobs/42-AURUM-CI-analyze/workspace/findbugs-result.xml of module workspace with 74 warnings. FATAL: hudson.plugins.analysis.core.BuildResult.<init>(Lhudson/model/AbstractBuild;Ljava/lang/String;Lhudson/plugins/analysis/core/ParserResult;Lhudson/plugins/analysis/core/BuildResult;)V java.lang.NoSuchMethodError: hudson.plugins.analysis.core.BuildResult.<init>(Lhudson/model/AbstractBuild;Ljava/lang/String;Lhudson/plugins/analysis/core/ParserResult;Lhudson/plugins/analysis/core/BuildResult;)V at hudson.plugins.findbugs.FindBugsResult.<init>(FindBugsResult.java:50) at hudson.plugins.findbugs.FindBugsResultBuilder.build(FindBugsResultBuilder.java:31) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:96) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:153) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1263) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) {noformat}

    Jenkins JIRA | 7 years ago | johanwannheden
    java.lang.NoSuchMethodError: hudson.plugins.analysis.core.BuildResult.<init>(Lhudson/model/AbstractBuild;Ljava/lang/String;Lhudson/plugins/analysis/core/ParserResult;Lhudson/plugins/analysis/core/BuildResult;)V
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    I use Hudson to analyze PHP code. Since version 1.21 (with 1.22 i have the same error) of analysis-core, I get this error: Here, the Phing command: phpcpd --min-lines 5 --min-tokens 5 --suffixes ${extensions} --exclude ${sourcepath}/core --exclude ${sourcepath}/sites/all/modules/contrib --log-pmd ${builddir}/logs/pmd-cpd.xml ${ws}/source [DRY] Collecting duplicate code analysis files... FATAL: hudson.plugins.analysis.core.FilesParser.<init>(Lhudson/plugins/analysis/util/PluginLogger;Ljava/lang/String;Lhudson/plugins/analysis/core/AnnotationParser;ZZ)V java.lang.NoSuchMethodError: hudson.plugins.analysis.core.FilesParser.<init>(Lhudson/plugins/analysis/util/PluginLogger;Ljava/lang/String;Lhudson/plugins/analysis/core/AnnotationParser;ZZ)V at hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:162) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:310) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:631) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:610) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:588) at hudson.model.Build$RunnerImpl.post2(Build.java:156) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:557) at hudson.model.Run.run(Run.java:1387) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)

    Jenkins JIRA | 6 years ago | Nicolas Griffet
    java.lang.NoSuchMethodError: hudson.plugins.analysis.core.FilesParser.<init>(Lhudson/plugins/analysis/util/PluginLogger;Ljava/lang/String;Lhudson/plugins/analysis/core/AnnotationParser;ZZ)V
  4. 0

    I use Hudson to analyze PHP code. Since version 1.21 (with 1.22 i have the same error) of analysis-core, I get this error: Here, the Phing command: phpcpd --min-lines 5 --min-tokens 5 --suffixes ${extensions} --exclude ${sourcepath}/core --exclude ${sourcepath}/sites/all/modules/contrib --log-pmd ${builddir}/logs/pmd-cpd.xml ${ws}/source [DRY] Collecting duplicate code analysis files... FATAL: hudson.plugins.analysis.core.FilesParser.<init>(Lhudson/plugins/analysis/util/PluginLogger;Ljava/lang/String;Lhudson/plugins/analysis/core/AnnotationParser;ZZ)V java.lang.NoSuchMethodError: hudson.plugins.analysis.core.FilesParser.<init>(Lhudson/plugins/analysis/util/PluginLogger;Ljava/lang/String;Lhudson/plugins/analysis/core/AnnotationParser;ZZ)V at hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:162) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:310) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:631) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:610) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:588) at hudson.model.Build$RunnerImpl.post2(Build.java:156) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:557) at hudson.model.Run.run(Run.java:1387) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)

    Jenkins JIRA | 6 years ago | Nicolas Griffet
    java.lang.NoSuchMethodError: hudson.plugins.analysis.core.FilesParser.<init>(Lhudson/plugins/analysis/util/PluginLogger;Ljava/lang/String;Lhudson/plugins/analysis/core/AnnotationParser;ZZ)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

      hudson.plugins.analysis.core.BuildResult.<init>(Lhudson/model/AbstractBuild;Ljava/lang/String;Lhudson/plugins/analysis/core/ParserResult;Lhudson/plugins/analysis/core/BuildResult;)V

      at hudson.plugins.findbugs.FindBugsResult.<init>()
    2. hudson.plugins.findbugs
      FindBugsPublisher.perform
      1. hudson.plugins.findbugs.FindBugsResult.<init>(FindBugsResult.java:50)
      2. hudson.plugins.findbugs.FindBugsResultBuilder.build(FindBugsResultBuilder.java:31)
      3. hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:96)
      3 frames
    3. Static Analysis Utilities
      HealthAwarePublisher.perform
      1. hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:153)
      1 frame
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:152)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      7. hudson.model.Run.run(Run.java:1263)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:122)
      10 frames