Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-31636

Token Macro Plugin is throwing NPE's after upgrading Jenkins from 1.624 -> 1.638

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The Token Macro Plugin is throwing NPE's after upgrading Jenkins from 1.624 -> 1.638

      We are seeing the following NPE when the Editable Email Plugin attempts to do its thing.

      Nov 18, 2015 12:05:37 AM hudson.plugins.emailext.plugins.ContentBuilder transformText
      SEVERE: null
      java.lang.NullPointerException
          at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:180)
          at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:233)
          at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:72)
          at hudson.plugins.emailext.ExtendedEmailPublisher.getContent(ExtendedEmailPublisher.java:659)
          at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:538)
          at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:306)
          at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:297)
          at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:244)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
          at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
          at hudson.model.Run.execute(Run.java:1785)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
      

      I also see the following when I create a free style job and try to click the tokenizer help

      Email Extension Plugin: 2.39
      I know that 2.40.5 exists I could try that one out tonight when people are not running jobs.

      Token Macro Plugin: 1.11
      I know that 1.12 exists I could try that one out tonight when people are not running jobs.

        Attachments

          Activity

          Hide
          slide_o_mix Alex Earl added a comment -

          In 2.39 I think global debug mode was broken, so that wouldn't help. Please definitely try upgrading to the latest versions of the plugins. You are NOT wasting my time.

          Show
          slide_o_mix Alex Earl added a comment - In 2.39 I think global debug mode was broken, so that wouldn't help. Please definitely try upgrading to the latest versions of the plugins. You are NOT wasting my time.
          Hide
          dankirkd Daniel Kirkdorffer added a comment -

          Thanks Justin Field and Alex Earl.

          Show
          dankirkd Daniel Kirkdorffer added a comment - Thanks Justin Field and Alex Earl .
          Hide
          dankirkd Daniel Kirkdorffer added a comment -

          Upgrading plugins fixed the problem.

          Show
          dankirkd Daniel Kirkdorffer added a comment - Upgrading plugins fixed the problem.
          Hide
          feuchtcc Calla Feucht added a comment -

          How was this determined not to be a defect? We are seeing this issue now on version 1.625.3.1 of CloudBees Jenkins with version 2.40.5 of the email-ext plugin and version 1.11 of the token-macro plugin.

          Show
          feuchtcc Calla Feucht added a comment - How was this determined not to be a defect? We are seeing this issue now on version 1.625.3.1 of CloudBees Jenkins with version 2.40.5 of the email-ext plugin and version 1.11 of the token-macro plugin.
          Hide
          feuchtcc Calla Feucht added a comment -

          Please disregard my last comment. I see now that upgrading the plugins to their latest versions should resolve. I'll follow up if we see the issue persisting following upgrades.

          Show
          feuchtcc Calla Feucht added a comment - Please disregard my last comment. I see now that upgrading the plugins to their latest versions should resolve. I'll follow up if we see the issue persisting following upgrades.

            People

            Assignee:
            slide_o_mix Alex Earl
            Reporter:
            dankirkd Daniel Kirkdorffer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: