java.lang.NullPointerException

Jenkins JIRA | michartmann | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I get a Nullpointer exception when I try to run a maven 2 job using clean install through an Slave Connected via JNLP agent I suspect it is something to do with the way out project i setup in module in a flat hierarchy. ################Hudson console output################################## Parsing POMs ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net java.lang.NullPointerException at hudson.remoting.Which.jarFile(Which.java:134) at hudson.maven.MavenProcessFactory$GetRemotingJar.call(MavenProcessFactory.java:349) at hudson.maven.MavenProcessFactory$GetRemotingJar.call(MavenProcessFactory.java:347) at hudson.remoting.UserRequest.perform(UserRequest.java:103) at hudson.remoting.UserRequest.perform(UserRequest.java:47) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:54) at java.lang.Thread.run(Unknown Source) project=hudson.maven.MavenModuleSet@1f14fd[optagelsedk-mainline-test-and-deploy] project.getModules()=[hudson.maven.MavenModule@1854d1f[optagelsedk-mainline-test-and-deploy/dk.optagelse:administration-gui], hudson.maven.MavenModule@8a6351[optagelsedk-mainline-test-and-deploy/dk.optagelse:administration-service-ws], hudson.maven.MavenModule@17e8c5b[optagelsedk-mainline-test-and-deploy/dk.optagelse:citizen-gui], hudson.maven.MavenModule@130b97d[optagelsedk-mainline-test-and-deploy/dk.optagelse:institution-gui], hudson.maven.MavenModule@1e1ee5d[optagelsedk-mainline-test-and-deploy/dk.optagelse:integration-gateway], hudson.maven.MavenModule@1e85928[optagelsedk-mainline-test-and-deploy/dk.optagelse:integration-service-ws], hudson.maven.MavenModule@1355a47[optagelsedk-mainline-test-and-deploy/dk.optagelse:offer-gui], hudson.maven.MavenModule@1ba0281[optagelsedk-mainline-test-and-deploy/dk.optagelse:offer-service-ws], hudson.maven.MavenModule@fa6824[optagelsedk-mainline-test-and-deploy/dk.optagelse:optsec], hudson.maven.MavenModule@1cb1d37[optagelsedk-mainline-test-and-deploy/dk.optagelse:project-module], hudson.maven.MavenModule@15d6184[optagelsedk-mainline-test-and-deploy/dk.optagelse:project-parent], hudson.maven.MavenModule@ae0840[optagelsedk-mainline-test-and-deploy/dk.optagelse:project-parent-deploy], hudson.maven.MavenModule@1eb424b[optagelsedk-mainline-test-and-deploy/dk.optagelse:util]] project.getRootModule()=hudson.maven.MavenModule@1cb1d37[optagelsedk-mainline-test-and-deploy/dk.optagelse:project-module] FATAL: null java.lang.NullPointerException at hudson.remoting.Which.jarFile(Which.java:134) at hudson.maven.MavenProcessFactory$GetRemotingJar.call(MavenProcessFactory.java:349) at hudson.maven.MavenProcessFactory$GetRemotingJar.call(MavenProcessFactory.java:347) at hudson.remoting.UserRequest.perform(UserRequest.java:103) at hudson.remoting.UserRequest.perform(UserRequest.java:47) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:54) at java.lang.Thread.run(Unknown Source) ################Hudson console output################################## Both master and slave runs WinXP and Hudson is on ver. 1.312

    Jenkins JIRA | 8 years ago | michartmann
    java.lang.NullPointerException
  2. 0

    I get a Nullpointer exception when I try to run a maven 2 job using clean install through an Slave Connected via JNLP agent I suspect it is something to do with the way out project i setup in module in a flat hierarchy. ################Hudson console output################################## Parsing POMs ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net java.lang.NullPointerException at hudson.remoting.Which.jarFile(Which.java:134) at hudson.maven.MavenProcessFactory$GetRemotingJar.call(MavenProcessFactory.java:349) at hudson.maven.MavenProcessFactory$GetRemotingJar.call(MavenProcessFactory.java:347) at hudson.remoting.UserRequest.perform(UserRequest.java:103) at hudson.remoting.UserRequest.perform(UserRequest.java:47) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:54) at java.lang.Thread.run(Unknown Source) project=hudson.maven.MavenModuleSet@1f14fd[optagelsedk-mainline-test-and-deploy] project.getModules()=[hudson.maven.MavenModule@1854d1f[optagelsedk-mainline-test-and-deploy/dk.optagelse:administration-gui], hudson.maven.MavenModule@8a6351[optagelsedk-mainline-test-and-deploy/dk.optagelse:administration-service-ws], hudson.maven.MavenModule@17e8c5b[optagelsedk-mainline-test-and-deploy/dk.optagelse:citizen-gui], hudson.maven.MavenModule@130b97d[optagelsedk-mainline-test-and-deploy/dk.optagelse:institution-gui], hudson.maven.MavenModule@1e1ee5d[optagelsedk-mainline-test-and-deploy/dk.optagelse:integration-gateway], hudson.maven.MavenModule@1e85928[optagelsedk-mainline-test-and-deploy/dk.optagelse:integration-service-ws], hudson.maven.MavenModule@1355a47[optagelsedk-mainline-test-and-deploy/dk.optagelse:offer-gui], hudson.maven.MavenModule@1ba0281[optagelsedk-mainline-test-and-deploy/dk.optagelse:offer-service-ws], hudson.maven.MavenModule@fa6824[optagelsedk-mainline-test-and-deploy/dk.optagelse:optsec], hudson.maven.MavenModule@1cb1d37[optagelsedk-mainline-test-and-deploy/dk.optagelse:project-module], hudson.maven.MavenModule@15d6184[optagelsedk-mainline-test-and-deploy/dk.optagelse:project-parent], hudson.maven.MavenModule@ae0840[optagelsedk-mainline-test-and-deploy/dk.optagelse:project-parent-deploy], hudson.maven.MavenModule@1eb424b[optagelsedk-mainline-test-and-deploy/dk.optagelse:util]] project.getRootModule()=hudson.maven.MavenModule@1cb1d37[optagelsedk-mainline-test-and-deploy/dk.optagelse:project-module] FATAL: null java.lang.NullPointerException at hudson.remoting.Which.jarFile(Which.java:134) at hudson.maven.MavenProcessFactory$GetRemotingJar.call(MavenProcessFactory.java:349) at hudson.maven.MavenProcessFactory$GetRemotingJar.call(MavenProcessFactory.java:347) at hudson.remoting.UserRequest.perform(UserRequest.java:103) at hudson.remoting.UserRequest.perform(UserRequest.java:47) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:54) at java.lang.Thread.run(Unknown Source) ################Hudson console output################################## Both master and slave runs WinXP and Hudson is on ver. 1.312

    Jenkins JIRA | 8 years ago | michartmann
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at hudson.remoting.Which.jarFile()
    2. Hudson :: Remoting Layer
      Which.jarFile
      1. hudson.remoting.Which.jarFile(Which.java:134)
      1 frame