java.lang.NullPointerException

Jenkins JIRA | Jason Chaffee | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I think this might have something to do with how I have configured my poms for <ciManagement>. I have several levels in the child pom hiearchy and Only specify the ci system in the top level and then change the notifiers in the children. If I put them into a single project it works. For example, let's assume the following strutcture: top child1 child2 grandchild21 In top's pom.xml, I configure the following: <ciManagement> <system>hudson</system> <url>http://myHudsonBox/hudson</url> </ciManagement> In child1 and child2, I have the following: <ciManagement> <notifiers> <notifier> <type>mail</type> <sendOnError>true</sendOnError> <sendOnFailure>true</sendOnFailure> <sendOnWarning>true</sendOnWarning> <sendOnSuccess>true</sendOnSuccess> <configuration> <address>jason_chaffee@tvworks.com</address> </configuration> </notifier> </notifiers> </ciManagement> I get the following error: Parsing POMs ERROR: Processing failed due to a bug in the code. Please report thus to users@hudson.dev.java.net java.lang.NullPointerException at hudson.maven.PomInfo.<init>(PomInfo.java:93) at hudson.maven.MavenModuleSetBuild$PomParser.toPomInfo(MavenModuleSetBuild.java:311) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:295) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:258) at hudson.FilePath.act(FilePath.java:239) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:193) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:121) at hudson.model.Run.run(Run.java:559) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:132) at hudson.model.Executor.run(Executor.java:59) FATAL: null java.lang.NullPointerException at hudson.maven.PomInfo.<init>(PomInfo.java:93) at hudson.maven.MavenModuleSetBuild$PomParser.toPomInfo(MavenModuleSetBuild.java:311) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:295) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:258) at hudson.FilePath.act(FilePath.java:239) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:193) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:121) at hudson.model.Run.run(Run.java:559) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:132) at hudson.model.Executor.run(Executor.java:59)

    Jenkins JIRA | 10 years ago | Jason Chaffee
    java.lang.NullPointerException
  2. 0

    I am getting the following error when the pom.xml is given under as a build step with clean -e -Dmaven.test.skip=true install as target. If the same is listed as the pre-build step to invoke the top level Maven targets selecting the Maven dropdown it runs fine. Parsing POMs ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.NullPointerException at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1280) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1097) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2677) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) at ......remote call to CSPBuild(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:752) at hudson.FilePath.act(FilePath.java:970) at hudson.FilePath.act(FilePath.java:959) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:873) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:631) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1759) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:486) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) project=hudson.maven.MavenModuleSet@a2645a[ASR-15.01] project.getModules()=[hudson.maven.MavenModule@1eda9d7[ASR-15.01/com.comcast.wholesale.asr:ASR-Service][ASR-15.01/com.comcast.wholesale.asr:ASR-Service][relativePath:Service], hudson.maven.MavenModule@e4055c[ASR-15.01/com.comcast.wholesale.asr:ASROrderService][ASR-15.01/com.comcast.wholesale.asr:ASROrderService][relativePath:], hudson.maven.MavenModule@1797121[ASR-15.01/com.comcast.wholesale.asr:ASRService][ASR-15.01/com.comcast.wholesale.asr:ASRService][relativePath:ear], hudson.maven.MavenModule@1d6542e[ASR-15.01/com.comcast.wholesale.asr:ASRService-Client][ASR-15.01/com.comcast.wholesale.asr:ASRService-Client][relativePath:Client]] project.getRootModule()=hudson.maven.MavenModule@e4055c[ASR-15.01/com.comcast.wholesale.asr:ASROrderService][ASR-15.01/com.comcast.wholesale.asr:ASROrderService][relativePath:] FATAL: null java.lang.NullPointerException at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1280) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1097) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2677) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) at ......remote call to CSPBuild(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:752) at hudson.FilePath.act(FilePath.java:970) at hudson.FilePath.act(FilePath.java:959) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:873) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:631) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1759) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:486) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

    Jenkins JIRA | 2 years ago | Sushma Kaniganti
    java.lang.NullPointerException
  3. 0

    I am getting the following error when the pom.xml is given under as a build step with clean -e -Dmaven.test.skip=true install as target. If the same is listed as the pre-build step to invoke the top level Maven targets selecting the Maven dropdown it runs fine. Parsing POMs ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.NullPointerException at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1280) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1097) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2677) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) at ......remote call to CSPBuild(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:752) at hudson.FilePath.act(FilePath.java:970) at hudson.FilePath.act(FilePath.java:959) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:873) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:631) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1759) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:486) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) project=hudson.maven.MavenModuleSet@a2645a[ASR-15.01] project.getModules()=[hudson.maven.MavenModule@1eda9d7[ASR-15.01/com.comcast.wholesale.asr:ASR-Service][ASR-15.01/com.comcast.wholesale.asr:ASR-Service][relativePath:Service], hudson.maven.MavenModule@e4055c[ASR-15.01/com.comcast.wholesale.asr:ASROrderService][ASR-15.01/com.comcast.wholesale.asr:ASROrderService][relativePath:], hudson.maven.MavenModule@1797121[ASR-15.01/com.comcast.wholesale.asr:ASRService][ASR-15.01/com.comcast.wholesale.asr:ASRService][relativePath:ear], hudson.maven.MavenModule@1d6542e[ASR-15.01/com.comcast.wholesale.asr:ASRService-Client][ASR-15.01/com.comcast.wholesale.asr:ASRService-Client][relativePath:Client]] project.getRootModule()=hudson.maven.MavenModule@e4055c[ASR-15.01/com.comcast.wholesale.asr:ASROrderService][ASR-15.01/com.comcast.wholesale.asr:ASROrderService][relativePath:] FATAL: null java.lang.NullPointerException at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1280) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1097) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2677) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) at ......remote call to CSPBuild(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:752) at hudson.FilePath.act(FilePath.java:970) at hudson.FilePath.act(FilePath.java:959) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:873) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:631) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1759) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:486) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

    Jenkins JIRA | 2 years ago | Sushma Kaniganti
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at hudson.maven.PomInfo.<init>()
    2. Hudson Maven Embedder
      MavenModuleSetBuild$PomParser.invoke
      1. hudson.maven.PomInfo.<init>(PomInfo.java:93)
      2. hudson.maven.MavenModuleSetBuild$PomParser.toPomInfo(MavenModuleSetBuild.java:311)
      3. hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:295)
      4. hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:258)
      4 frames
    3. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:239)
      1 frame
    4. Hudson Maven Embedder
      MavenModuleSetBuild$RunnerImpl.doRun
      1. hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:193)
      1 frame
    5. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:121)
      2. hudson.model.Run.run(Run.java:559)
      2 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:132)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.Executor.run(Executor.java:59)
      1 frame