java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • We are trying to migrate from master only to master/slave architecture. We have Linux based master and two Linux slaves so far. Some of the builds are failing on slave with the NPE below. When simply rerun on the master - they work fine. Not all the projects are failing that are built on the slave. Most are working fine. I see no differences repository state wise between the ones that failed and ones that built successfully on the same slave node. This exception doesn't get logged into the log file, there is no information about the failed build as well other than the job log. the jobs are set to build qa and master branches, before that we merge onto origin/master to check if the qa branch changes are fast-forwardable (no conflicts) thus the "Merging revision [SHA-1] onto ...". But in the error below it tries to merge onto null. jenkins 1.436, git plugin 1.11 we will try to update plugin and see if the problem persists Exception: Seen branch in repository origin/HEAD Seen branch in repository origin/master Seen branch in repository origin/qa Commencing build of Revision 16b1541a246e350453da70d469c592c2fe2406ce (origin/qa) Merging Revision 16b1541a246e350453da70d469c592c2fe2406ce (origin/qa) onto null FATAL: null java.lang.NullPointerException at hudson.plugins.git.GitAPI.revParse(GitAPI.java:243) at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:1075) at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:1058) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
    via by eguess74,
  • We are trying to migrate from master only to master/slave architecture. We have Linux based master and two Linux slaves so far. Some of the builds are failing on slave with the NPE below. When simply rerun on the master - they work fine. Not all the projects are failing that are built on the slave. Most are working fine. I see no differences repository state wise between the ones that failed and ones that built successfully on the same slave node. This exception doesn't get logged into the log file, there is no information about the failed build as well other than the job log. the jobs are set to build qa and master branches, before that we merge onto origin/master to check if the qa branch changes are fast-forwardable (no conflicts) thus the "Merging revision [SHA-1] onto ...". But in the error below it tries to merge onto null. jenkins 1.436, git plugin 1.11 we will try to update plugin and see if the problem persists Exception: Seen branch in repository origin/HEAD Seen branch in repository origin/master Seen branch in repository origin/qa Commencing build of Revision 16b1541a246e350453da70d469c592c2fe2406ce (origin/qa) Merging Revision 16b1541a246e350453da70d469c592c2fe2406ce (origin/qa) onto null FATAL: null java.lang.NullPointerException at hudson.plugins.git.GitAPI.revParse(GitAPI.java:243) at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:1075) at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:1058) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
    via by eguess74,
  • Copy of http://issues.hudson-ci.org/browse/HUDSON-8673. The Git plugin v1.1.4 dumps an NPE when running on a linux slave v1.395. Note that it works when running on master. Had to rollback to 1.388. Started by user anonymous Building remotely on aab-suse-vm1 Checkout:test / /data/scm/hudson/workspace/test - hudson.remoting.Channel@e62a39:aab-suse-vm1 Using strategy: Default Last Built Revision: Revision 69b63216de95988ad4d363e65701b7172936992d (origin/dev) Checkout:test / /data/scm/hudson/workspace/test - hudson.remoting.LocalChannel@5d625d62 GitAPI created Fetching changes from the remote Git repository Fetching upstream changes from ssh://git.lmc.ericsson.se:29418/aab.git [test] $ /pub/scm/tools/git/git-1.7.3/bin/git fetch -t ssh://git.lmc.ericsson.se:29418/aab.git +refs/heads/:refs/remotes/origin/ [test] $ /pub/scm/tools/git/git-1.7.3/bin/git ls-tree HEAD [test] $ /pub/scm/tools/git/git-1.7.3/bin/git tag -l dev [test] $ /pub/scm/tools/git/git-1.7.3/bin/git rev-parse origin/dev FATAL: null java.lang.NullPointerException at hudson.plugins.git.GitAPI.revParse(GitAPI.java:182) at hudson.plugins.git.util.DefaultBuildChooser.getCandidateRevisions(DefaultBuildChooser.java:75) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:843) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:740) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1931) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:432) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:284) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:810)
    via by Patrick Renaud,
  • Copy of http://issues.hudson-ci.org/browse/HUDSON-8673. The Git plugin v1.1.4 dumps an NPE when running on a linux slave v1.395. Note that it works when running on master. Had to rollback to 1.388. Started by user anonymous Building remotely on aab-suse-vm1 Checkout:test / /data/scm/hudson/workspace/test - hudson.remoting.Channel@e62a39:aab-suse-vm1 Using strategy: Default Last Built Revision: Revision 69b63216de95988ad4d363e65701b7172936992d (origin/dev) Checkout:test / /data/scm/hudson/workspace/test - hudson.remoting.LocalChannel@5d625d62 GitAPI created Fetching changes from the remote Git repository Fetching upstream changes from ssh://git.lmc.ericsson.se:29418/aab.git [test] $ /pub/scm/tools/git/git-1.7.3/bin/git fetch -t ssh://git.lmc.ericsson.se:29418/aab.git +refs/heads/:refs/remotes/origin/ [test] $ /pub/scm/tools/git/git-1.7.3/bin/git ls-tree HEAD [test] $ /pub/scm/tools/git/git-1.7.3/bin/git tag -l dev [test] $ /pub/scm/tools/git/git-1.7.3/bin/git rev-parse origin/dev FATAL: null java.lang.NullPointerException at hudson.plugins.git.GitAPI.revParse(GitAPI.java:182) at hudson.plugins.git.util.DefaultBuildChooser.getCandidateRevisions(DefaultBuildChooser.java:75) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:843) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:740) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1931) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:432) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:284) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:810)
    via by Patrick Renaud,
    • java.lang.NullPointerException at hudson.plugins.git.GitAPI.revParse(GitAPI.java:243) at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:1075) at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:1058) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
    No Bugmate found.