java.lang.NullPointerException

Jenkins JIRA | Julien Carsique | 9 months ago
  1. 0

    [JIRA] [jira-plugin] (JENKINS-33551) Error updating JIRA issues

    Google Groups | 9 months ago | jcarsique@java.net (JIRA)
    java.lang.NullPointerException
  2. 0

    An NPE is raised while updating JIRA issues. The comment is wrote on JIRA but the NPE makes the plugin continuously write the same comment and remember the issues for the next build. {code}Error updating JIRA issues. Saving issues for next build. java.lang.NullPointerException at hudson.plugins.jira.Updater.submitComments(Updater.java:177) at hudson.plugins.jira.Updater.perform(Updater.java:128) at hudson.plugins.jira.JiraIssueUpdater.perform(JiraIssueUpdater.java:64) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {code} That seems to happen on {{labels.isEmpty()}} even if I can't figure how: {code}172 session.addComment( 173 issue.id, 174 createComment(build, useWikiStyleComments, jenkinsRootUrl, recordScmChanges, issue), 175 groupVisibility, roleVisibility 176 ); 177 if (!labels.isEmpty()) { 178 session.addLabels(issue.id, labels); 179 }{code}

    Jenkins JIRA | 9 months ago | Julien Carsique
    java.lang.NullPointerException
  3. 0

    An NPE is raised while updating JIRA issues. The comment is wrote on JIRA but the NPE makes the plugin continuously write the same comment and remember the issues for the next build. {code}Error updating JIRA issues. Saving issues for next build. java.lang.NullPointerException at hudson.plugins.jira.Updater.submitComments(Updater.java:177) at hudson.plugins.jira.Updater.perform(Updater.java:128) at hudson.plugins.jira.JiraIssueUpdater.perform(JiraIssueUpdater.java:64) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {code} That seems to happen on {{labels.isEmpty()}} even if I can't figure how: {code}172 session.addComment( 173 issue.id, 174 createComment(build, useWikiStyleComments, jenkinsRootUrl, recordScmChanges, issue), 175 groupVisibility, roleVisibility 176 ); 177 if (!labels.isEmpty()) { 178 session.addLabels(issue.id, labels); 179 }{code}

    Jenkins JIRA | 9 months ago | Julien Carsique
    java.lang.NullPointerException
  4. 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 hudson.plugins.jira.Updater.submitComments()
    2. Hudson JIRA plugin
      JiraIssueUpdater.perform
      1. hudson.plugins.jira.Updater.submitComments(Updater.java:177)
      2. hudson.plugins.jira.Updater.perform(Updater.java:128)
      3. hudson.plugins.jira.JiraIssueUpdater.perform(JiraIssueUpdater.java:64)
      3 frames
    3. Hudson
      AbstractBuild$AbstractBuildExecution.performAllBuildSteps
      1. hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      2. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      4. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      4 frames
    4. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.post2
      1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047)
      1 frame
    5. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      2. hudson.model.Run.execute(Run.java:1763)
      2 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:410)
      2 frames