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

Maven2 Build Fails 'java.lang.NoSuchMethodError'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Redhat 5
    • Similar Issues:
      Show 5 results

      Description

      Build runs mvn clean install.

      Here is the end of the console output:

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 47 seconds
      [INFO] Finished at: Mon Apr 19 19:17:15 BST 2010
      [INFO] Final Memory: 60M/981M
      [INFO] ------------------------------------------------------------------------
      channel stopped
      FATAL: hudson.maven.MavenModuleSetBuild$RunnerImpl.performAllBuildStep(Lhudson/model/BuildListener;Ljava/lang/Iterable;Z)V
      java.lang.NoSuchMethodError: hudson.maven.MavenModuleSetBuild$RunnerImpl.performAllBuildStep(Lhudson/model/BuildListener;Ljava/lang/Iterable;Z)V
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:594)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      at hudson.model.Run.run(Run.java:1267)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:122)

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            This is due to changes in http://jenkins-ci.org/commit/29836

            Show
            abayer Andrew Bayer added a comment - This is due to changes in http://jenkins-ci.org/commit/29836
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : kohsuke
            Path:
            trunk/hudson/main/core/src/main/java/hudson/model/Run.java
            http://jenkins-ci.org/commit/30290
            Log:
            [FIXED JENKINS-6311] (actually, this change went in as rev.30287, but I'm testing if the issue update is working again)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/model/Run.java http://jenkins-ci.org/commit/30290 Log: [FIXED JENKINS-6311] (actually, this change went in as rev.30287, but I'm testing if the issue update is working again)
            Hide
            hopfrog238 hopfrog238 added a comment -

            I'm receiving what I think is the same error after upgrading to 1.356

            After upgrading to 1.356, I see this error occur on all my maven2 builds (this is from the console)

            FATAL: hudson.maven.MavenModuleSetBuild$RunnerImpl.performAllBuildStep(Lhudson/model/BuildListener;Ljava/lang/Iterable;Z)Z
            java.lang.NoSuchMethodError: hudson.maven.MavenModuleSetBuild$RunnerImpl.performAllBuildStep(Lhudson/model/BuildListener;Ljava/lang/Iterable;Z)Z
            at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:598)
            at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
            at hudson.model.Run.run(Run.java:1267)
            at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:122)

            A similar error appears in the server logs:

            SEVERE: Executor throw an exception unexpectedly
            java.lang.NoSuchMethodError: hudson.maven.MavenModuleSetBuild$RunnerImpl.performAllBuildStep(Lhudson/model/BuildListener;Ljava/lang/Iterable;Z)Z
            at hudson.maven.MavenModuleSetBuild$RunnerImpl.cleanUp(MavenModuleSetBuild.java:628)
            at hudson.model.Run.run(Run.java:1286)
            at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:122)

            I'm using maven 2.2.1.

            Show
            hopfrog238 hopfrog238 added a comment - I'm receiving what I think is the same error after upgrading to 1.356 After upgrading to 1.356, I see this error occur on all my maven2 builds (this is from the console) FATAL: hudson.maven.MavenModuleSetBuild$RunnerImpl.performAllBuildStep(Lhudson/model/BuildListener;Ljava/lang/Iterable;Z)Z java.lang.NoSuchMethodError: hudson.maven.MavenModuleSetBuild$RunnerImpl.performAllBuildStep(Lhudson/model/BuildListener;Ljava/lang/Iterable;Z)Z at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:598) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1267) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) A similar error appears in the server logs: SEVERE: Executor throw an exception unexpectedly java.lang.NoSuchMethodError: hudson.maven.MavenModuleSetBuild$RunnerImpl.performAllBuildStep(Lhudson/model/BuildListener;Ljava/lang/Iterable;Z)Z at hudson.maven.MavenModuleSetBuild$RunnerImpl.cleanUp(MavenModuleSetBuild.java:628) at hudson.model.Run.run(Run.java:1286) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) I'm using maven 2.2.1.
            Hide
            mindless Alan Harder added a comment -

            hopfrog238: upgrade your maven plugin to the version bundled with Hudson 1.356 and you should be ok.

            Show
            mindless Alan Harder added a comment - hopfrog238: upgrade your maven plugin to the version bundled with Hudson 1.356 and you should be ok.

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                jamesclinton jamesclinton
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: