java.lang.NoSuchMethodError: hudson.plugins.analysis.core.FilesParser.<init>(Lhudson/plugins/analysis/util/PluginLogger;Ljava/lang/String;Lhudson/plugins/analysis/core/AnnotationParser;ZZ)V

Jenkins JIRA | Nicolas Griffet | 6 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

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

    Root Cause Analysis

    1. 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()
    2. hudson.plugins.dry
      DryPublisher.perform
      1. hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:162)
      1 frame
    3. Static Analysis Utilities
      HealthAwarePublisher.perform
      1. hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:310)
      1 frame
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:631)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:610)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:588)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:156)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:557)
      7. hudson.model.Run.run(Run.java:1387)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:145)
      10 frames