java.lang.NullPointerException

Jenkins JIRA | Björn Pedersen | 1 year 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

    In my test install I can not trigger jobs anymore: I always get a null-pointer exception in BuildChooser (see log below). {code}Manually triggered by user pedersen for Gerrit: https://<hostname>/review/3200 [lockable-resources] acquired lock on [Test1] [EnvInject] - Loading node environment variables. Baue auf Master in Arbeitsbereich /usr/local/jenkins/jobs/ResiSingleCounterMulti/workspace > /usr/local/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/local/bin/git config remote.origin.url ssh://<hostname>:29418/<project> # timeout=10 Fetching upstream changes from ssh://<hostname>:29418/<project> > /usr/local/bin/git --version # timeout=10 using GIT_SSH to set credentials > /usr/local/bin/git fetch --tags --progress ssh://<hostname>:29418/<project> refs/changes/00/3200/2 > /usr/local/bin/git rev-parse efa17ba464d2392714029effc904c9fb8612e255^{commit} # timeout=10 Checking out Revision efa17ba464d2392714029effc904c9fb8612e255 (master) > /usr/local/bin/git config core.sparsecheckout # timeout=10 > /usr/local/bin/git checkout -f efa17ba464d2392714029effc904c9fb8612e255 > /usr/local/bin/git rev-parse FETCH_HEAD^{commit} # timeout=10 > /usr/local/bin/git rev-list b8aa077a767bace642bbe5cbd88cae7eef3cab14 # timeout=10 Polling SCM changes on master Using strategy: Gerrit Trigger [poll] Last Built Revision: Revision efa17ba464d2392714029effc904c9fb8612e255 (refs/changes/00/3200/2) > /usr/local/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repositories > /usr/local/bin/git config remote.origin.url ssh://<hostname>:29418/<project>.git # timeout=10 Fetching upstream changes from ssh://<hostname>:29418/<project>.git > /usr/local/bin/git --version # timeout=10 using GIT_ASKPASS to set credentials > /usr/local/bin/git fetch --tags --progress ssh://<hostname>:29418/<project>.git refs/changes/00/3200/2 --depth=1 Polling for changes in ERROR: Build step failed with exception java.lang.NullPointerException at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser$GetGerritEventRevision.invoke(GerritTriggerBuildChooser.java:217) at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser$GetGerritEventRevision.invoke(GerritTriggerBuildChooser.java:212) at hudson.plugins.git.GitSCM$BuildChooserContextImpl.actOnBuild(GitSCM.java:864) at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getCandidateRevisions(GerritTriggerBuildChooser.java:107) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:663) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:528) at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:381) at hudson.scm.SCM.poll(SCM.java:398) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1468) at hudson.model.AbstractProject._poll(AbstractProject.java:1438) at hudson.model.AbstractProject.poll(AbstractProject.java:1349) at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.getScmChange(MultiJobBuilder.java:173) at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:243) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:136) at hudson.model.Run.execute(Run.java:1738) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Build step 'MultiJob Phase' marked build as failure [BFA] Scanning build for known causes... [BFA] No failure causes found [BFA] Done. 0s {code}

    Jenkins JIRA | 1 year ago | Björn Pedersen
    java.lang.NullPointerException
  2. 0

    In my test install I can not trigger jobs anymore: I always get a null-pointer exception in BuildChooser (see log below). {code}Manually triggered by user pedersen for Gerrit: https://<hostname>/review/3200 [lockable-resources] acquired lock on [Test1] [EnvInject] - Loading node environment variables. Baue auf Master in Arbeitsbereich /usr/local/jenkins/jobs/ResiSingleCounterMulti/workspace > /usr/local/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/local/bin/git config remote.origin.url ssh://<hostname>:29418/<project> # timeout=10 Fetching upstream changes from ssh://<hostname>:29418/<project> > /usr/local/bin/git --version # timeout=10 using GIT_SSH to set credentials > /usr/local/bin/git fetch --tags --progress ssh://<hostname>:29418/<project> refs/changes/00/3200/2 > /usr/local/bin/git rev-parse efa17ba464d2392714029effc904c9fb8612e255^{commit} # timeout=10 Checking out Revision efa17ba464d2392714029effc904c9fb8612e255 (master) > /usr/local/bin/git config core.sparsecheckout # timeout=10 > /usr/local/bin/git checkout -f efa17ba464d2392714029effc904c9fb8612e255 > /usr/local/bin/git rev-parse FETCH_HEAD^{commit} # timeout=10 > /usr/local/bin/git rev-list b8aa077a767bace642bbe5cbd88cae7eef3cab14 # timeout=10 Polling SCM changes on master Using strategy: Gerrit Trigger [poll] Last Built Revision: Revision efa17ba464d2392714029effc904c9fb8612e255 (refs/changes/00/3200/2) > /usr/local/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repositories > /usr/local/bin/git config remote.origin.url ssh://<hostname>:29418/<project>.git # timeout=10 Fetching upstream changes from ssh://<hostname>:29418/<project>.git > /usr/local/bin/git --version # timeout=10 using GIT_ASKPASS to set credentials > /usr/local/bin/git fetch --tags --progress ssh://<hostname>:29418/<project>.git refs/changes/00/3200/2 --depth=1 Polling for changes in ERROR: Build step failed with exception java.lang.NullPointerException at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser$GetGerritEventRevision.invoke(GerritTriggerBuildChooser.java:217) at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser$GetGerritEventRevision.invoke(GerritTriggerBuildChooser.java:212) at hudson.plugins.git.GitSCM$BuildChooserContextImpl.actOnBuild(GitSCM.java:864) at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getCandidateRevisions(GerritTriggerBuildChooser.java:107) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:663) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:528) at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:381) at hudson.scm.SCM.poll(SCM.java:398) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1468) at hudson.model.AbstractProject._poll(AbstractProject.java:1438) at hudson.model.AbstractProject.poll(AbstractProject.java:1349) at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.getScmChange(MultiJobBuilder.java:173) at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:243) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:136) at hudson.model.Run.execute(Run.java:1738) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Build step 'MultiJob Phase' marked build as failure [BFA] Scanning build for known causes... [BFA] No failure causes found [BFA] Done. 0s {code}

    Jenkins JIRA | 1 year ago | Björn Pedersen
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser$GetGerritEventRevision.invoke()
    2. com.sonyericsson.hudson
      GerritTriggerBuildChooser$GetGerritEventRevision.invoke
      1. com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser$GetGerritEventRevision.invoke(GerritTriggerBuildChooser.java:217)
      2. com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser$GetGerritEventRevision.invoke(GerritTriggerBuildChooser.java:212)
      2 frames
    3. Hudson GIT plugin
      GitSCM$BuildChooserContextImpl.actOnBuild
      1. hudson.plugins.git.GitSCM$BuildChooserContextImpl.actOnBuild(GitSCM.java:864)
      1 frame
    4. com.sonyericsson.hudson
      GerritTriggerBuildChooser.getCandidateRevisions
      1. com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getCandidateRevisions(GerritTriggerBuildChooser.java:107)
      1 frame
    5. Hudson GIT plugin
      GitSCM.compareRemoteRevisionWith
      1. hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:663)
      2. hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:528)
      2 frames
    6. Hudson
      AbstractProject.poll
      1. hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:381)
      2. hudson.scm.SCM.poll(SCM.java:398)
      3. hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1468)
      4. hudson.model.AbstractProject._poll(AbstractProject.java:1438)
      5. hudson.model.AbstractProject.poll(AbstractProject.java:1349)
      5 frames
    7. com.tikal.jenkins
      MultiJobBuilder.perform
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuilder.getScmChange(MultiJobBuilder.java:173)
      2. com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:243)
      2 frames
    8. Hudson
      AbstractBuild$AbstractBuildExecution.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      3. hudson.model.Build$BuildExecution.build(Build.java:205)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:162)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      5 frames
    9. com.tikal.jenkins
      MultiJobBuild$MultiJobRunnerImpl.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:136)
      1 frame
    10. Hudson
      Run.execute
      1. hudson.model.Run.execute(Run.java:1738)
      1 frame
    11. com.tikal.jenkins
      MultiJobBuild.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
      1 frame
    12. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:410)
      2 frames