java.lang.NullPointerException

Google Groups | cuong...@gmail.com (JIRA) | 3 months ago
  1. 0

    [JIRA] (JENKINS-37821) Maven job fails with NPE when JDK is set to (System)

    Google Groups | 3 months ago | cuong...@gmail.com (JIRA)
    java.lang.NullPointerException
  2. 0

    We recently upgraded to 1.651.31 and are not able run maven jobs due to the following exception: 23:57:33 Set build name. 23:57:33 New build name is '#1079-origin/geneva' 23:57:33 Parsing POMs 23:57:33 Established TCP socket on 58860 23:57:33 maven31-agent.jar already up to date 23:57:33 maven31-interceptor.jar already up to date 23:57:33 maven3-interceptor-commons.jar already up to date 23:57:33 [commons-test-parent] $ java -Xmx1024m -Xms512m ... 23:57:34 <===[JENKINS REMOTING CAPACITY]===>channel started 23:57:34 ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com 23:57:34 java.lang.NullPointerException 23:57:34 at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:305) 23:57:34 at hudson.maven.ProcessCache.get(ProcessCache.java:236) 23:57:34 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:778) 23:57:34 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) 23:57:34 at hudson.model.Run.execute(Run.java:1738) 23:57:34 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) 23:57:34 at hudson.model.ResourceController.execute(ResourceController.java:98) 23:57:34 at hudson.model.Executor.run(Executor.java:410) 23:57:34 project=hudson.maven.MavenModuleSet@489d6650[geneva/commons-test-master] It looks like this is the culprit: commit 9bd5bae03184777cd9280b8bced78793f39699b1 Author: Jesse Glick <jglick@cloudbees.com> Date: Wed Jul 17 17:12:03 2013 -0400 [FIXED JENKINS-18403] Detect when an attempt is made to run Maven on JDK 5. If so, retry with (6+) slave JVM, setting maven-{compiler,surefire}-plugin properties to point to original. Originally-Committed-As: 288b8d0b01f92072d0b86efb898c011f31a7fc30

    Jenkins JIRA | 3 months ago | Cuong Tran
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 7197#167542941

    GitHub | 11 months ago | jerrinot
    java.lang.NullPointerException
  5. 0

    prerequisite: at least one running maven job 1. open Manage Jenkins - Configure System 2. click add maven 3. click delete installer 4. move the (empty) maven to the top of the list of maven installations 5. click save 6. run the maven job expected: maven job runs as before result: ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.NullPointerException at hudson.maven.MavenModuleSet.getMaven(MavenModuleSet.java:982) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:160) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:568) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1484) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) project=hudson.maven.MavenModuleSet@16c8cb41 [... some list of modules here ... ] FATAL: null java.lang.NullPointerException at hudson.maven.MavenModuleSet.getMaven(MavenModuleSet.java:982) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:160) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:568) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1484) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) my hudson.tasks.Maven.xml looks like this: <?xml version='1.0' encoding='UTF-8'?> <hudson.tasks.Maven_-DescriptorImpl> <helpRedirect/> <installations> <hudson.tasks.Maven_-MavenInstallation> <properties> <hudson.tools.InstallSourceProperty> <installers/> </hudson.tools.InstallSourceProperty> </properties> </hudson.tasks.Maven_-MavenInstallation> <hudson.tasks.Maven_-MavenInstallation> <name>/cvsroot/maven/maven-bin/maven-2.0.11 (depreciated - for Java 1.4 only)</name> <home>/var/hudson/tools/maven-bin/maven-2.0.11</home> <properties/> </hudson.tasks.Maven_-MavenInstallation> <hudson.tasks.Maven_-MavenInstallation> <name>/cvsroot/maven/maven-bin/maven-2.2.1 (Java 1.5+ required)</name> <home>/var/hudson/tools/maven-bin/maven-2.2.1</home> <properties/> </hudson.tasks.Maven_-MavenInstallation> <hudson.tasks.Maven_-MavenInstallation> <name>/cvsroot/maven/maven-bin/maven-3.0.x</name> <home>/var/hudson/tools/maven-bin/maven-3.0.x</home> <properties/> </hudson.tasks.Maven_-MavenInstallation> </installations> </hudson.tasks.Maven_-DescriptorImpl> the fix is simple: just delete the empty maven configuration

    Jenkins JIRA | 4 years ago | Florian Rosenauer
    java.lang.NullPointerException

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at hudson.maven.AbstractMavenProcessFactory.newProcess()
    2. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun
      1. hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:305)
      2. hudson.maven.ProcessCache.get(ProcessCache.java:236)
      3. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:778)
      3 frames
    3. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      2. hudson.model.Run.execute(Run.java:1738)
      2 frames
    4. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:410)
      2 frames