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

Maven2 Build Fails 'java.lang.NoSuchMethodError'

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Redhat 5

      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)

          [JENKINS-6311] Maven2 Build Fails 'java.lang.NoSuchMethodError'

          Andrew Bayer added a comment -

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

          Andrew Bayer added a comment - This is due to changes in http://jenkins-ci.org/commit/29836

          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)

          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)

          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.

          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.

          Alan Harder added a comment -

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

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

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

              Created:
              Updated:
              Resolved: