Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9921

NuSuchMethodError in dry plug-in with Static Analysis Utilities 1.21 and 1.22

    Details

    • Similar Issues:

      Description

      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)

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          Which version of the dry plug-in are you using? the stacktrace looks quite old.

          Show
          drulli Ulli Hafner added a comment - Which version of the dry plug-in are you using? the stacktrace looks quite old.
          Hide
          webnicko Nicolas Griffet added a comment -

          Hello Ulli,

          I have no Dry plugin available in my Hudson's plugins list (Hudson 2.0.1). I use this update URL: http://hudson-ci.org/update-center.json

          But with the v1.16 of analysis-core, I have no issue... Maybe I don't use the good update URL?

          Show
          webnicko Nicolas Griffet added a comment - Hello Ulli, I have no Dry plugin available in my Hudson's plugins list (Hudson 2.0.1). I use this update URL: http://hudson-ci.org/update-center.json But with the v1.16 of analysis-core, I have no issue... Maybe I don't use the good update URL?
          Hide
          drulli Ulli Hafner added a comment -

          The problem is that your dry plug-in is too old. Seems that this plug-in is not updated in the Hudson update center.

          Show
          drulli Ulli Hafner added a comment - The problem is that your dry plug-in is too old. Seems that this plug-in is not updated in the Hudson update center.
          Hide
          drulli Ulli Hafner added a comment -

          You can either install the latest dry plugin from http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jvnet/hudson/plugins/dry/2.17/.

          Can you please write a mail to the Hudson team (or create an issue in Hudson Jira) that the update center should also get the latest version of the dry plug-in.

          Show
          drulli Ulli Hafner added a comment - You can either install the latest dry plugin from http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jvnet/hudson/plugins/dry/2.17/ . Can you please write a mail to the Hudson team (or create an issue in Hudson Jira) that the update center should also get the latest version of the dry plug-in.
          Hide
          drulli Ulli Hafner added a comment -

          This is working quite well in Jenkins update center: http://updates.jenkins-ci.org/update-center.json

          Maybe setting a second update center site will help.

          Show
          drulli Ulli Hafner added a comment - This is working quite well in Jenkins update center: http://updates.jenkins-ci.org/update-center.json Maybe setting a second update center site will help.
          Hide
          webnicko Nicolas Griffet added a comment -

          Yes, it works fine with 2.17 of Dry. In the update center of Hudson we have only 2.12. I'll submit an issue in Hudson's JIRA

          Thanks

          Show
          webnicko Nicolas Griffet added a comment - Yes, it works fine with 2.17 of Dry. In the update center of Hudson we have only 2.12. I'll submit an issue in Hudson's JIRA Thanks

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              webnicko Nicolas Griffet
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: