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.

  • When having a job that periodically polls SCM, Subversion Polling Log shows Null Pointer Exception in Chromedriver plugin class: Subversion Polling Log Started on Dec 4, 2014 12:23:00 PM ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@605c72[lalala] java.lang.NullPointerException at org.jenkinsci.plugins.chromedriver.EnvironmentContributorImpl.buildEnvironmentFor(EnvironmentContributorImpl.java:23) at hudson.model.Run.getEnvironment(Run.java:2267) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:905) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1356) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1435) at hudson.model.AbstractProject.poll(AbstractProject.java:1338) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) 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.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) I think it is related to the method hudson.model.Computer.currentComputer() that returns null since Jenkins 1.591: http://javadoc.jenkins-ci.org/hudson/model/Computer.html#currentComputer()
    via by Frantisek Veverka,
  • When having a job that periodically polls SCM, Subversion Polling Log shows Null Pointer Exception in Chromedriver plugin class: Subversion Polling Log Started on Dec 4, 2014 12:23:00 PM ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@605c72[lalala] java.lang.NullPointerException at org.jenkinsci.plugins.chromedriver.EnvironmentContributorImpl.buildEnvironmentFor(EnvironmentContributorImpl.java:23) at hudson.model.Run.getEnvironment(Run.java:2267) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:905) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1356) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1435) at hudson.model.AbstractProject.poll(AbstractProject.java:1338) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) 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.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) I think it is related to the method hudson.model.Computer.currentComputer() that returns null since Jenkins 1.591: http://javadoc.jenkins-ci.org/hudson/model/Computer.html#currentComputer()
    via by Frantisek Veverka,
  • we recently upgraded Jenkins and It's plugins and we are experiencing an issue with failure to build on git commit events, which prior to the update was working properly. We have confirmed that the issue is this NPE in Jenkins: Poked SocureService-Dev-Static-Checks Jan 21, 2015 7:29:18 AM INFO com.cloudbees.jenkins.GitHubWebHook processGitHubPayload Poked SocureService-Dev-with-tests Jan 21, 2015 7:29:18 AM INFO com.cloudbees.jenkins.GitHubWebHook processGitHubPayload Poked SocureService-Production-Patches Jan 21, 2015 7:29:18 AM INFO com.cloudbees.jenkins.GitHubWebHook processGitHubPayload Poked stage-service Jan 21, 2015 7:29:18 AM SEVERE com.cloudbees.jenkins.GitHubPushTrigger$1 runPolling Failed to record SCM polling java.lang.NullPointerException at org.jenkinsci.plugins.chromedriver.EnvironmentContributorImpl.buildEnvironmentFor(EnvironmentContributorImpl.java:23) at hudson.model.Run.getEnvironment(Run.java:2224) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:905) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:563) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:525) at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:380) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1441) at hudson.model.AbstractProject.poll(AbstractProject.java:1344) at com.cloudbees.jenkins.GitHubPushTrigger$1.runPolling(GitHubPushTrigger.java:81) at com.cloudbees.jenkins.GitHubPushTrigger$1.run(GitHubPushTrigger.java:106) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)
    via by sunil madhu,
  • we recently upgraded Jenkins and It's plugins and we are experiencing an issue with failure to build on git commit events, which prior to the update was working properly. We have confirmed that the issue is this NPE in Jenkins: Poked SocureService-Dev-Static-Checks Jan 21, 2015 7:29:18 AM INFO com.cloudbees.jenkins.GitHubWebHook processGitHubPayload Poked SocureService-Dev-with-tests Jan 21, 2015 7:29:18 AM INFO com.cloudbees.jenkins.GitHubWebHook processGitHubPayload Poked SocureService-Production-Patches Jan 21, 2015 7:29:18 AM INFO com.cloudbees.jenkins.GitHubWebHook processGitHubPayload Poked stage-service Jan 21, 2015 7:29:18 AM SEVERE com.cloudbees.jenkins.GitHubPushTrigger$1 runPolling Failed to record SCM polling java.lang.NullPointerException at org.jenkinsci.plugins.chromedriver.EnvironmentContributorImpl.buildEnvironmentFor(EnvironmentContributorImpl.java:23) at hudson.model.Run.getEnvironment(Run.java:2224) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:905) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:563) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:525) at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:380) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1441) at hudson.model.AbstractProject.poll(AbstractProject.java:1344) at com.cloudbees.jenkins.GitHubPushTrigger$1.runPolling(GitHubPushTrigger.java:81) at com.cloudbees.jenkins.GitHubPushTrigger$1.run(GitHubPushTrigger.java:106) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)
    via by sunil madhu,
    • java.lang.NullPointerException at org.jenkinsci.plugins.chromedriver.EnvironmentContributorImpl.buildEnvironmentFor(EnvironmentContributorImpl.java:23) at hudson.model.Run.getEnvironment(Run.java:2267) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:905) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1356) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1435) at hudson.model.AbstractProject.poll(AbstractProject.java:1338) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) 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.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
    No Bugmate found.