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

NPE for First Maven Build

XMLWordPrintable

      New maven build plan yielding NPE (have not successfully built before):

      Started by user anonymous
      [EnvInject] - Loading node environment variables.
      Building in workspace /Users/buildbot/.jenkins/jobs/Java-Base/workspace
      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url ssh://***/dtcore-java.git # timeout=10
      Fetching upstream changes from ssh://***/dtcore-java.git
      > git --version # timeout=10
      using GIT_SSH to set credentials buildbot
      > git -c core.askpass=true fetch --tags --progress ssh://**/dtcore-java.git +refs/heads/:refs/remotes/origin/*
      > git rev-parse refs/remotes/origin/master^

      {commit} # timeout=10
      > git rev-parse refs/remotes/origin/origin/master^{commit}

      # timeout=10
      Checking out Revision 90abc6da0e0b2d5baad7890b39452ebcd110aa93 (refs/remotes/origin/master)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f 90abc6da0e0b2d5baad7890b39452ebcd110aa93
      > git rev-list 90abc6da0e0b2d5baad7890b39452ebcd110aa93 # timeout=10
      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      java.lang.NullPointerException
      at com.nirima.jenkins.SelectionTypeProject.getLastSuccessfulBuildNumber(SelectionTypeProject.java:117)
      at com.nirima.jenkins.SelectionTypeProject.getAction(SelectionTypeProject.java:97)
      at com.nirima.jenkins.RepositoryDefinitionProperty$1.buildEnvVars(RepositoryDefinitionProperty.java:83)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)
      at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
      at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:677)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      at hudson.model.Run.execute(Run.java:1744)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)
      project=hudson.maven.MavenModuleSet@328caa39[Java-Base]
      project.getModules()=[]
      project.getRootModule()=null
      FATAL: null
      java.lang.NullPointerException
      at com.nirima.jenkins.SelectionTypeProject.getLastSuccessfulBuildNumber(SelectionTypeProject.java:117)
      at com.nirima.jenkins.SelectionTypeProject.getAction(SelectionTypeProject.java:97)
      at com.nirima.jenkins.RepositoryDefinitionProperty$1.buildEnvVars(RepositoryDefinitionProperty.java:83)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)
      at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
      at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:677)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      at hudson.model.Run.execute(Run.java:1744)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)
      [BFA] Scanning build for known causes...
      [BFA] No failure causes found
      [BFA] Done. 0s
      Finished: FAILURE

            esmalling Eric Smalling
            zachcalvert Zach Calvert
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: