java.lang.NullPointerException

Jenkins JIRA | Kohsuke Kawaguchi | 5 years ago
  1. 0

    As discussed in https://wiki.jenkins-ci.org/display/JENKINS/Promoted+Builds+Plugin?focusedCommentId=56459274#comment-56459274, ---- What is "Pending promotion (promotion not queued. Please re-execute promotion)" ? I have set up a job, with Manually Approved promotion, that sends an Editable Email Notification and builds another project upon Promotion. I then did a few builds. When I go to the /server:8080/job/my-job/42/promotion/? page and click the Approve button, I see the message "Pending promotion (promotion queued)". When I refresh the page, then I see "Pending promotion (promotion not queued. Please re-execute promotion)". The email never gets sent and the other job does not get kicked off. I don't see any errors in the system log. Any ideas ? ---- I've got a similar problem.  I've downgraded to 1.11 for the time being, but the logs for the promotion are typically in the main hudson directory under jobs%JobName%\promotions\%promotionName%\builds\%BuildTimestamp%\ For this error the only thing I'm seeing in the logs is: {code} Legacy code started this job.  No cause information is available FATAL: null java.lang.NullPointerException     at hudson.plugins.promoted_builds.Promotion.getUrl(Promotion.java:61)     at hudson.model.Run.getEnvironment(Run.java:1771)     at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:725)     at hudson.plugins.promoted_builds.Promotion.getEnvironment(Promotion.java:74)     at hudson.plugins.promoted_builds.Promotion$RunnerImpl.decideWorkspace(Promotion.java:107)     at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:409)     at hudson.model.Run.run(Run.java:1362)     at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:93)     at hudson.model.ResourceController.execute(ResourceController.java:88)     at hudson.model.Executor.run(Executor.java:145) {code} Though there is a long line of characters before the null pointer exception.  As far as I can see, it looks like one of the targets where it creates the URL is failing, but I'm really not sure.  I'm trying to play around with it a bit more before putting in the ticket, but if anyone has more info, please feel free to share. ----

    Jenkins JIRA | 5 years ago | Kohsuke Kawaguchi
    java.lang.NullPointerException
  2. 0

    As discussed in https://wiki.jenkins-ci.org/display/JENKINS/Promoted+Builds+Plugin?focusedCommentId=56459274#comment-56459274, ---- What is "Pending promotion (promotion not queued. Please re-execute promotion)" ? I have set up a job, with Manually Approved promotion, that sends an Editable Email Notification and builds another project upon Promotion. I then did a few builds. When I go to the /server:8080/job/my-job/42/promotion/? page and click the Approve button, I see the message "Pending promotion (promotion queued)". When I refresh the page, then I see "Pending promotion (promotion not queued. Please re-execute promotion)". The email never gets sent and the other job does not get kicked off. I don't see any errors in the system log. Any ideas ? ---- I've got a similar problem.  I've downgraded to 1.11 for the time being, but the logs for the promotion are typically in the main hudson directory under jobs%JobName%\promotions\%promotionName%\builds\%BuildTimestamp%\ For this error the only thing I'm seeing in the logs is: {code} Legacy code started this job.  No cause information is available FATAL: null java.lang.NullPointerException     at hudson.plugins.promoted_builds.Promotion.getUrl(Promotion.java:61)     at hudson.model.Run.getEnvironment(Run.java:1771)     at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:725)     at hudson.plugins.promoted_builds.Promotion.getEnvironment(Promotion.java:74)     at hudson.plugins.promoted_builds.Promotion$RunnerImpl.decideWorkspace(Promotion.java:107)     at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:409)     at hudson.model.Run.run(Run.java:1362)     at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:93)     at hudson.model.ResourceController.execute(ResourceController.java:88)     at hudson.model.Executor.run(Executor.java:145) {code} Though there is a long line of characters before the null pointer exception.  As far as I can see, it looks like one of the targets where it creates the URL is failing, but I'm really not sure.  I'm trying to play around with it a bit more before putting in the ticket, but if anyone has more info, please feel free to share. ----

    Jenkins JIRA | 5 years ago | Kohsuke Kawaguchi
    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 hudson.plugins.promoted_builds.Promotion.getUrl()
    2. hudson.plugins.promoted_builds
      Promotion.getUrl
      1. hudson.plugins.promoted_builds.Promotion.getUrl(Promotion.java:61)
      1 frame
    3. Hudson
      AbstractBuild.getEnvironment
      1. hudson.model.Run.getEnvironment(Run.java:1771)
      2. hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:725)
      2 frames
    4. hudson.plugins.promoted_builds
      Promotion$RunnerImpl.decideWorkspace
      1. hudson.plugins.promoted_builds.Promotion.getEnvironment(Promotion.java:74)
      2. hudson.plugins.promoted_builds.Promotion$RunnerImpl.decideWorkspace(Promotion.java:107)
      2 frames
    5. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:409)
      2. hudson.model.Run.run(Run.java:1362)
      2 frames
    6. hudson.plugins.promoted_builds
      Promotion.run
      1. hudson.plugins.promoted_builds.Promotion.run(Promotion.java:93)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:145)
      2 frames