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

First Maven build fails with NPE after/when calculating dependency graph

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-plugin
    • None
    • Jenkins 2.60.2, Maven Integration plugin 2.17, Maven 3.2.3, OpenJDK 1.8.0_91 (server and slaves), slaves on various Fedora versions (22+) and architectures

      The first build of any new Maven project fails with this stack trace:

      *14:20:59* Replacing all maven server entries not found in credentials list is true
      *14:20:59* Downloaded artifact http://...parent-15.pom
      *14:20:59* Downloaded artifact http://...grandparent-6.pom
      *14:20:59* Discovered a new module <groupId>:<artifactId> <artifactId>
      *14:20:59* Modules changed, recalculating dependency graph
      *14:20:59* ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker (https://jenkins.io/redirect/report-an-issue)
      *14:20:59* java.lang.NullPointerException
      *14:20:59* at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:653)
      *14:20:59* at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
      *14:20:59* at hudson.model.Run.execute(Run.java:1735)
      *14:20:59* at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:542)
      *14:20:59* at hudson.model.ResourceController.execute(ResourceController.java:97)
      *14:20:59* at hudson.model.Executor.run(Executor.java:405)
      *14:20:59* project=hudson.maven.MavenModuleSet@6720e267[<jobName>]
      *14:20:59* project.getModules()=[]
      *14:20:59* project.getRootModule()=null
      *14:20:59* FATAL: null
      *14:20:59* java.lang.NullPointerException
      *14:20:59* at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:653)
      *14:20:59* at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
      *14:20:59* at hudson.model.Run.execute(Run.java:1735)
      *14:20:59* at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:542)
      *14:20:59* at hudson.model.ResourceController.execute(ResourceController.java:97)
      *14:20:59* at hudson.model.Executor.run(Executor.java:405)
      *14:20:59* Finished: FAILURE
      

      Subsequent builds are fine.

      This is a new Jenkins installation to which I'm attempting to manually migrate a number of Hudson builds. The job extends one created with ez-templates.

            Unassigned Unassigned
            peterj Peter Janes
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: