java.lang.NullPointerException

Jenkins JIRA | Jonathan Langevin | 12 months ago
  1. 0

    Jenkins stable release Github plugins 1.14.1 Running a build with the set build status in build step (and the post-build had another status setter), resulted in the following: {code:java} 14:38:58 ERROR: Build step failed with exception 14:38:58 java.lang.NullPointerException 14:38:58 at com.cloudbees.jenkins.GitHubSetCommitStatusBuilder.perform(GitHubSetCommitStatusBuilder.java:52) 14:38:58 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 14:38:58 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) 14:38:58 at hudson.model.Build$BuildExecution.build(Build.java:205) 14:38:58 at hudson.model.Build$BuildExecution.doRun(Build.java:162) 14:38:58 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) 14:38:58 at hudson.model.Run.execute(Run.java:1741) 14:38:58 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 14:38:58 at hudson.model.ResourceController.execute(ResourceController.java:98) 14:38:58 at hudson.model.Executor.run(Executor.java:408) 14:38:58 Build step 'Set build status to "pending" on GitHub commit' marked build as failure 14:38:59 Skipped archiving because build is not successful 14:38:59 ERROR: Build step failed with exception 14:38:59 java.lang.NullPointerException 14:38:59 at com.cloudbees.jenkins.GitHubCommitNotifier.updateCommitStatus(GitHubCommitNotifier.java:127) 14:38:59 at com.cloudbees.jenkins.GitHubCommitNotifier.perform(GitHubCommitNotifier.java:105) 14:38:59 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 14:38:59 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) 14:38:59 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) 14:38:59 at hudson.model.Build$BuildExecution.post2(Build.java:185) 14:38:59 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) 14:38:59 at hudson.model.Run.execute(Run.java:1766) 14:38:59 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 14:38:59 at hudson.model.ResourceController.execute(ResourceController.java:98) 14:38:59 at hudson.model.Executor.run(Executor.java:408) 14:38:59 Build step 'Set build status on GitHub commit' marked build as failure {code}

    Jenkins JIRA | 12 months ago | Jonathan Langevin
    java.lang.NullPointerException
  2. 0

    Jenkins stable release Github plugins 1.14.1 Running a build with the set build status in build step (and the post-build had another status setter), resulted in the following: {code:java} 14:38:58 ERROR: Build step failed with exception 14:38:58 java.lang.NullPointerException 14:38:58 at com.cloudbees.jenkins.GitHubSetCommitStatusBuilder.perform(GitHubSetCommitStatusBuilder.java:52) 14:38:58 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 14:38:58 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) 14:38:58 at hudson.model.Build$BuildExecution.build(Build.java:205) 14:38:58 at hudson.model.Build$BuildExecution.doRun(Build.java:162) 14:38:58 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) 14:38:58 at hudson.model.Run.execute(Run.java:1741) 14:38:58 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 14:38:58 at hudson.model.ResourceController.execute(ResourceController.java:98) 14:38:58 at hudson.model.Executor.run(Executor.java:408) 14:38:58 Build step 'Set build status to "pending" on GitHub commit' marked build as failure 14:38:59 Skipped archiving because build is not successful 14:38:59 ERROR: Build step failed with exception 14:38:59 java.lang.NullPointerException 14:38:59 at com.cloudbees.jenkins.GitHubCommitNotifier.updateCommitStatus(GitHubCommitNotifier.java:127) 14:38:59 at com.cloudbees.jenkins.GitHubCommitNotifier.perform(GitHubCommitNotifier.java:105) 14:38:59 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 14:38:59 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) 14:38:59 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) 14:38:59 at hudson.model.Build$BuildExecution.post2(Build.java:185) 14:38:59 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) 14:38:59 at hudson.model.Run.execute(Run.java:1766) 14:38:59 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 14:38:59 at hudson.model.ResourceController.execute(ResourceController.java:98) 14:38:59 at hudson.model.Executor.run(Executor.java:408) 14:38:59 Build step 'Set build status on GitHub commit' marked build as failure {code}

    Jenkins JIRA | 12 months ago | Jonathan Langevin
    java.lang.NullPointerException
  3. 0

    GitHub comment 6#165105110

    GitHub | 12 months ago | jan-cerny
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHubCommitNotifier is throwing a (very helpful) exception which causes the build to fail. This started this morning without things being changed on our end. At first I thought it was due to the upgrade to 1.570 but even after downgrading to 1.569 it did not resolve the issue. The exception that is being thrown in the console is: {quote} 15:09:57 Publishing Clover coverage report... 15:09:57 Publishing Clover XML report... 15:09:57 Publishing Clover coverage results... 15:09:57 Recording test results 15:09:58 ERROR: Publisher com.cloudbees.jenkins.GitHubCommitNotifier aborted due to exception 15:09:58 java.lang.NullPointerException 15:09:58 at com.cloudbees.jenkins.GitHubCommitNotifier.perform(GitHubCommitNotifier.java:53) 15:09:58 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 15:09:58 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) 15:09:58 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) 15:09:58 at hudson.model.Build$BuildExecution.post2(Build.java:183) 15:09:58 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) 15:09:58 at hudson.model.Run.execute(Run.java:1757) 15:09:58 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 15:09:58 at hudson.model.ResourceController.execute(ResourceController.java:88) 15:09:58 at hudson.model.Executor.run(Executor.java:234) {quote}

    Jenkins JIRA | 2 years ago | Frank K
    java.lang.NullPointerException

    1 unregistered visitors
    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.cloudbees.jenkins.GitHubCommitNotifier.updateCommitStatus()
    2. com.cloudbees.jenkins
      GitHubCommitNotifier.perform
      1. com.cloudbees.jenkins.GitHubCommitNotifier.updateCommitStatus(GitHubCommitNotifier.java:127)
      2. com.cloudbees.jenkins.GitHubCommitNotifier.perform(GitHubCommitNotifier.java:105)
      2 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      4. hudson.model.Build$BuildExecution.post2(Build.java:185)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      6. hudson.model.Run.execute(Run.java:1766)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:408)
      9 frames