[JIRA] (JENKINS-1144) email-ext plugin causes NullPointerException when sending email for successful build
[ https://issues.jenkins-ci.org/browse/JENKINS-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Slide-O-Mix reassigned JENKINS-1144: Assignee: Slide-O-Mix (was: abayer) email-ext plugin causes NullPointerException when sending email for successful build Key: JENKINS-1144 URL: https://issues.jenkins-ci.org/browse/JENKINS-1144 Project: Jenkins Issue Type: Bug Components: email-ext Affects Versions: current Environment: Platform: All, OS: Linux Reporter: brad_c Assignee: Slide-O-Mix I have Hudson 1.146 and email-ext 1.2 installed. I previously had email notifications working for my job using the email config provided by Hudson. I configured the email-ext plugin to send emails on successful builds, but an NPE is thrown in the hudson.Util.encode() method when it attempts to send the email. I tried this with the option for E-mail Notification checked and with it unchecked, and the NPE occurred for both scenarios. Here is the output from my job ( the email address was xxx'ed out ) - BUILD SUCCESSFUL Total time: 2 minutes 25 seconds Recording fingerprints Recording test results Sending e-mails to: x...@xxx.com FATAL: null java.lang.NullPointerException at hudson.Util.encode(Util.java:400) at hudson.plugins.emailext.ExtendedEmailPublisher.transformText(ExtendedEmailPublisher.java:244) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:195) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:167) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:155) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:124) at hudson.model.Build$RunnerImpl.post2(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:244) at hudson.model.Run.run(Run.java:597) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:66) at hudson.model.Executor.run(Executor.java:62) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-1144) email-ext plugin causes NullPointerException when sending email for successful build
[ https://issues.jenkins-ci.org/browse/JENKINS-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=159178#comment-159178 ] Nitesh Shakya commented on JENKINS-1144: I am using a new version of jenkins and still have similar issue. I am getting following errors: Sending email for trigger: Success ERROR: Could not send email as a part of the post-build publishers. java.lang.NullPointerException at java.util.regex.Matcher.quoteReplacement(Unknown Source) at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:65) at hudson.plugins.emailext.ExtendedEmailPublisher.setSubject(ExtendedEmailPublisher.java:453) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:307) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:255) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:247) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:207) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1453) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Finished: SUCCESS I dont get an error when using test email email-ext plugin causes NullPointerException when sending email for successful build Key: JENKINS-1144 URL: https://issues.jenkins-ci.org/browse/JENKINS-1144 Project: Jenkins Issue Type: Bug Components: email-ext Affects Versions: current Environment: Platform: All, OS: Linux Reporter: brad_c Assignee: kdsweeney I have Hudson 1.146 and email-ext 1.2 installed. I previously had email notifications working for my job using the email config provided by Hudson. I configured the email-ext plugin to send emails on successful builds, but an NPE is thrown in the hudson.Util.encode() method when it attempts to send the email. I tried this with the option for E-mail Notification checked and with it unchecked, and the NPE occurred for both scenarios. Here is the output from my job ( the email address was xxx'ed out ) - BUILD SUCCESSFUL Total time: 2 minutes 25 seconds Recording fingerprints Recording test results Sending e-mails to: x...@xxx.com FATAL: null java.lang.NullPointerException at hudson.Util.encode(Util.java:400) at hudson.plugins.emailext.ExtendedEmailPublisher.transformText(ExtendedEmailPublisher.java:244) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:195) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:167) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:155) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:124) at hudson.model.Build$RunnerImpl.post2(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:244) at hudson.model.Run.run(Run.java:597) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:66) at hudson.model.Executor.run(Executor.java:62) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-1144) email-ext plugin causes NullPointerException when sending email for successful build
[ https://issues.jenkins-ci.org/browse/JENKINS-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=159179#comment-159179 ] Nitesh Shakya commented on JENKINS-1144: I have following specification details Jenkins war org.jenkins-ci.main:jenkins-war:1.451 Jenkins Email Extension Plugin This plugin is a replacement for Jenkins's email publisher 2.18 Sorry for not writing it in my previous comment email-ext plugin causes NullPointerException when sending email for successful build Key: JENKINS-1144 URL: https://issues.jenkins-ci.org/browse/JENKINS-1144 Project: Jenkins Issue Type: Bug Components: email-ext Affects Versions: current Environment: Platform: All, OS: Linux Reporter: brad_c Assignee: kdsweeney I have Hudson 1.146 and email-ext 1.2 installed. I previously had email notifications working for my job using the email config provided by Hudson. I configured the email-ext plugin to send emails on successful builds, but an NPE is thrown in the hudson.Util.encode() method when it attempts to send the email. I tried this with the option for E-mail Notification checked and with it unchecked, and the NPE occurred for both scenarios. Here is the output from my job ( the email address was xxx'ed out ) - BUILD SUCCESSFUL Total time: 2 minutes 25 seconds Recording fingerprints Recording test results Sending e-mails to: x...@xxx.com FATAL: null java.lang.NullPointerException at hudson.Util.encode(Util.java:400) at hudson.plugins.emailext.ExtendedEmailPublisher.transformText(ExtendedEmailPublisher.java:244) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:195) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:167) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:155) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:124) at hudson.model.Build$RunnerImpl.post2(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:244) at hudson.model.Run.run(Run.java:597) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:66) at hudson.model.Executor.run(Executor.java:62) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-1144) email-ext plugin causes NullPointerException when sending email for successful build
[ https://issues.jenkins-ci.org/browse/JENKINS-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nitesh Shakya reopened JENKINS-1144: Assignee: abayer (was: kdsweeney) I am having similar issue again can you help me? email-ext plugin causes NullPointerException when sending email for successful build Key: JENKINS-1144 URL: https://issues.jenkins-ci.org/browse/JENKINS-1144 Project: Jenkins Issue Type: Bug Components: email-ext Affects Versions: current Environment: Platform: All, OS: Linux Reporter: brad_c Assignee: abayer I have Hudson 1.146 and email-ext 1.2 installed. I previously had email notifications working for my job using the email config provided by Hudson. I configured the email-ext plugin to send emails on successful builds, but an NPE is thrown in the hudson.Util.encode() method when it attempts to send the email. I tried this with the option for E-mail Notification checked and with it unchecked, and the NPE occurred for both scenarios. Here is the output from my job ( the email address was xxx'ed out ) - BUILD SUCCESSFUL Total time: 2 minutes 25 seconds Recording fingerprints Recording test results Sending e-mails to: x...@xxx.com FATAL: null java.lang.NullPointerException at hudson.Util.encode(Util.java:400) at hudson.plugins.emailext.ExtendedEmailPublisher.transformText(ExtendedEmailPublisher.java:244) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:195) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:167) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:155) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:124) at hudson.model.Build$RunnerImpl.post2(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:244) at hudson.model.Run.run(Run.java:597) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:66) at hudson.model.Executor.run(Executor.java:62) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira