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

NPE running Maven 3 job

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Slave on Windows 7 64-bit, Master on Solaris 10. Jenkins version 1.436.
    • Similar Issues:

      Description

      Getting this at the start of the build. Its reporting FAILURE building the parent module (aggregated poms) this is after upgrading from Jenkins 1.432 to 1.436. Reverting back to 1.432 problem goes away.

      Config is a M3 project I've tried 1 or more threads with same result.

      15:04:36 mavenExecutionResult exceptions not empty
      15:04:36 message : Internal error: java.lang.NullPointerException
      15:04:36 cause : null
      15:04:36 Stack trace :
      15:04:36 org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
      15:04:36 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128)
      15:04:36 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95)
      15:04:36 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167)
      15:04:36 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164)
      15:04:36 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      15:04:36 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      15:04:36 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      15:04:36 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      15:04:36 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      15:04:36 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      15:04:36 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      15:04:36 at java.lang.Thread.run(Thread.java:662)
      15:04:36 Caused by: java.lang.NullPointerException
      15:04:36 at hudson.maven.AbstractMavenBuilder$FilterImpl.executeAsync(AbstractMavenBuilder.java:174)
      15:04:36 at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:128)
      15:04:36 at hudson.maven.Maven3Builder$MavenExecutionListener.recordProjectSucceeded(Maven3Builder.java:378)
      15:04:36 at hudson.maven.Maven3Builder$MavenExecutionListener.projectSucceeded(Maven3Builder.java:352)
      15:04:36 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74)
      15:04:36 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      15:04:36 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91)
      15:04:36 ... 10 more

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/f3d31af0516c4163c898dc0a9442e3f15f770d5b
          Log:
          changelog for JENKINS-11458

          Compare: https://github.com/jenkinsci/jenkins/compare/9887593...f3d31af

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html http://jenkins-ci.org/commit/jenkins/f3d31af0516c4163c898dc0a9442e3f15f770d5b Log: changelog for JENKINS-11458 Compare: https://github.com/jenkinsci/jenkins/compare/9887593...f3d31af
          Hide
          kutzi kutzi added a comment -

          Thanks to Kohsuke this should be fixed in 1.438

          Show
          kutzi kutzi added a comment - Thanks to Kohsuke this should be fixed in 1.438
          Hide
          banoss banoss added a comment -

          Just checked 1.438-SNAPSHOT (private-10/30/2011 12:59 GMT-jenkins) and it is indeed fixed. Many thanks.

          Show
          banoss banoss added a comment - Just checked 1.438-SNAPSHOT (private-10/30/2011 12:59 GMT-jenkins) and it is indeed fixed. Many thanks.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/maven/AbstractMavenBuilder.java
          src/main/java/hudson/maven/Maven3Builder.java
          http://jenkins-ci.org/commit/maven-plugin/1c1415bc55874b5d753b904bfe5b9ac564ffbad7
          Log:
          JENKINS-11458 when building with Maven 3, Channel.current() inside FilterImpl sometimes returns null. Therefore pass channel into constructor, thus effectively restoring pre-1.435 behaviour.
          Originally-Committed-As: 609b321e6ee0963908dddda048d572f2550e75aa

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/maven/AbstractMavenBuilder.java src/main/java/hudson/maven/Maven3Builder.java http://jenkins-ci.org/commit/maven-plugin/1c1415bc55874b5d753b904bfe5b9ac564ffbad7 Log: JENKINS-11458 when building with Maven 3, Channel.current() inside FilterImpl sometimes returns null. Therefore pass channel into constructor, thus effectively restoring pre-1.435 behaviour. Originally-Committed-As: 609b321e6ee0963908dddda048d572f2550e75aa
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          src/main/java/hudson/maven/AbstractMavenBuilder.java
          src/main/java/hudson/maven/Maven3Builder.java
          src/main/java/hudson/maven/MavenBuild.java
          src/main/java/hudson/maven/MavenBuildProxy.java
          http://jenkins-ci.org/commit/maven-plugin/d541a16ed95f3f8f6dec0bdc41ebdbfad8067c54
          Log:
          JENKINS-11458 Channel.current() is only available from the thread that's executing the remote call, and that's why we saw this original error, when Maven uses a thread pool to call into this method from another worker thread.

          Originally-Committed-As: dc716da16bb400f741c1e650d0f3465bb70b4d18

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/maven/AbstractMavenBuilder.java src/main/java/hudson/maven/Maven3Builder.java src/main/java/hudson/maven/MavenBuild.java src/main/java/hudson/maven/MavenBuildProxy.java http://jenkins-ci.org/commit/maven-plugin/d541a16ed95f3f8f6dec0bdc41ebdbfad8067c54 Log: JENKINS-11458 Channel.current() is only available from the thread that's executing the remote call, and that's why we saw this original error, when Maven uses a thread pool to call into this method from another worker thread. Originally-Committed-As: dc716da16bb400f741c1e650d0f3465bb70b4d18

            People

            Assignee:
            kutzi kutzi
            Reporter:
            banoss banoss
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: