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

ERROR: Could not send email as a part of the post-build publishers.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • email-ext-plugin
    • None

      Version: 2.63

       Win10 X86

      Jenkin version: 2.121.2

       

      Sending email for trigger: Always
      ERROR: Could not send email as a part of the post-build publishers.
      java.lang.NullPointerException
      at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
      at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
      at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
      at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
      at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
      at hudson.model.Run.execute(Run.java:1845)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Some error occured trying to send the email...check the Jenkins log
      Finished: SUCCESS

          [JENKINS-54363] ERROR: Could not send email as a part of the post-build publishers.

          Huang Echo created issue -
          Huang Echo made changes -
          Description Original: Sending email for trigger: Always
          ERROR: Could not send email as a part of the post-build publishers.
          java.lang.NullPointerException
           at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
           at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
           at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
           at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
           at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
           at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
           at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
           at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
           at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
           at hudson.model.Run.execute(Run.java:1845)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
          Some error occured trying to send the email...check the Jenkins log
          Finished: SUCCESS
          New: |[Email Extension Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin] |

          Version: 2.63

           

          Sending email for trigger: Always
           ERROR: Could not send email as a part of the post-build publishers.
           java.lang.NullPointerException
           at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
           at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
           at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
           at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
           at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
           at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
           at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
           at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
           at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
           at hudson.model.Run.execute(Run.java:1845)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
           Some error occured trying to send the email...check the Jenkins log
           Finished: SUCCESS
          Huang Echo made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Huang Echo made changes -
          Description Original: |[Email Extension Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin] |

          Version: 2.63

           

          Sending email for trigger: Always
           ERROR: Could not send email as a part of the post-build publishers.
           java.lang.NullPointerException
           at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
           at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
           at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
           at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
           at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
           at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
           at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
           at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
           at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
           at hudson.model.Run.execute(Run.java:1845)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
           Some error occured trying to send the email...check the Jenkins log
           Finished: SUCCESS
          New: |[Email Extension Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin] |

          Version: 2.63

           

          Jenkin version: 2.121.2

           

          Sending email for trigger: Always
           ERROR: Could not send email as a part of the post-build publishers.
           java.lang.NullPointerException
           at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
           at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
           at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
           at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
           at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
           at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
           at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
           at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
           at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
           at hudson.model.Run.execute(Run.java:1845)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
           Some error occured trying to send the email...check the Jenkins log
           Finished: SUCCESS
          Huang Echo made changes -
          Description Original: |[Email Extension Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin] |

          Version: 2.63

           

          Jenkin version: 2.121.2

           

          Sending email for trigger: Always
           ERROR: Could not send email as a part of the post-build publishers.
           java.lang.NullPointerException
           at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
           at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
           at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
           at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
           at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
           at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
           at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
           at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
           at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
           at hudson.model.Run.execute(Run.java:1845)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
           Some error occured trying to send the email...check the Jenkins log
           Finished: SUCCESS
          New: |[Email Extension Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin] |

          Version: 2.63

           Win10 X86

          Jenkin version: 2.121.2

           

          Sending email for trigger: Always
           ERROR: Could not send email as a part of the post-build publishers.
           java.lang.NullPointerException
           at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
           at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
           at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
           at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
           at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
           at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
           at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
           at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
           at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
           at hudson.model.Run.execute(Run.java:1845)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
           Some error occured trying to send the email...check the Jenkins log
           Finished: SUCCESS
          Alex Earl made changes -
          Assignee Original: David van Laatum [ davidvanlaatum ] New: Alex Earl [ slide_o_mix ]

          Alex Earl added a comment -

          What version of email-ext?

          Alex Earl added a comment - What version of email-ext?

          anand acharya added a comment -

          Hi

          I also got similar issue just few days back for email extension plugin 2.66.

          Please resolve this issue asap.

          Email was triggered for: Unstable (Test Failures)
          Sending email for trigger: Unstable (Test Failures)
          ERROR: Could not send email as a part of the post-build publishers.
          java.lang.NullPointerException
          at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244)
          at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726)
          at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)
          at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
          at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1098)
          at hudson.model.Run.execute(Run.java:1863)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)

          anand acharya added a comment - Hi I also got similar issue just few days back for email extension plugin 2.66. Please resolve this issue asap. Email was triggered for: Unstable (Test Failures) Sending email for trigger: Unstable (Test Failures) ERROR: Could not send email as a part of the post-build publishers. java.lang.NullPointerException at hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.createSession(ExtendedEmailPublisherDescriptor.java:244) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:726) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1098) at hudson.model.Run.execute(Run.java:1863) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)

          Alex Earl added a comment -

          That corresponds to this line of code: https://github.com/jenkinsci/email-ext-plugin/blob/email-ext-2.66/src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java#L244

          I can add some checking in there to make sure things aren't null.

          Alex Earl added a comment - That corresponds to this line of code: https://github.com/jenkinsci/email-ext-plugin/blob/email-ext-2.66/src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java#L244 I can add some checking in there to make sure things aren't null.

          anand acharya added a comment -

          Hi Alex,

          Can you please confirm when this issue will be resolved?

          Is there any current workaround in Jenkins to trigger emails post build?

          Thanks & Regards,

          Anand Acharya

          anand acharya added a comment - Hi Alex, Can you please confirm when this issue will be resolved? Is there any current workaround in Jenkins to trigger emails post build? Thanks & Regards, Anand Acharya

            slide_o_mix Alex Earl
            echo557 Huang Echo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: