[Issue 2008] New - NullPointerExceptions when sending notification emails

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 2008] New - NullPointerExceptions when sending notification emails

aklintu
https://hudson.dev.java.net/issues/show_bug.cgi?id=2008
                 Issue #|2008
                 Summary|NullPointerExceptions when sending notification emails
               Component|hudson
                 Version|current
                Platform|Sun
              OS/Version|Solaris
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P1
            Subcomponent|mail
             Assigned to|issues@hudson
             Reported by|aklintu






------- Additional comments from [hidden email] Wed Jul  2 20:29:52 +0000 2008 -------
I am getting NullPointerExceptions (NPEs) when Hudson attempts to send emails.  
It appears that the NPEs are a result of an attempt to send email to the list
of committers.  However, the list of committers is empty since this is a new
project, the build is manually triggered and the SCM (CVS) is not being polled.
The Global Recipient List contains a valid email address, but is NOT inherited
by the triggers.  Below, I have included a two stack traces:

Email was triggered for: Success
There are 1 triggered emails.
Sending email for trigger: Success
FATAL: null
java.lang.NullPointerException
        at hudson.plugins.emailext.plugins.content.HudsonURLContent.getContent
(HudsonURLContent.java:20)
        at
hudson.plugins.emailext.ExtendedEmailPublisher.replaceTokensWithContent
(ExtendedEmailPublisher.java:360)
        at
hudson.plugins.emailext.ExtendedEmailPublisher.replaceTokensWithContent
(ExtendedEmailPublisher.java:362)
        at hudson.plugins.emailext.ExtendedEmailPublisher.transformText
(ExtendedEmailPublisher.java:340)
        at hudson.plugins.emailext.ExtendedEmailPublisher.createMail
(ExtendedEmailPublisher.java:295)
        at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail
(ExtendedEmailPublisher.java:265)
        at hudson.plugins.emailext.ExtendedEmailPublisher._perform
(ExtendedEmailPublisher.java:257)
        at hudson.plugins.emailext.ExtendedEmailPublisher.perform
(ExtendedEmailPublisher.java:215)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep
(AbstractBuild.java:309)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep
(AbstractBuild.java:297)
        at hudson.model.Build$RunnerImpl.post2(Build.java:118)
        at hudson.model.AbstractBuild$AbstractRunner.post
(AbstractBuild.java:282)
        at hudson.model.Run.run(Run.java:796)
        at hudson.model.Build.run(Build.java:85)
        at hudson.model.ResourceController.execute(ResourceController.java:70)
        at hudson.model.Executor.run(Executor.java:85)

=============





Sending email for trigger: Fixed
FATAL: null
java.lang.NullPointerException
        at hudson.plugins.emailext.plugins.content.HudsonURLContent.getContent
(HudsonURLContent.java:20)
        at
hudson.plugins.emailext.ExtendedEmailPublisher.replaceTokensWithContent
(ExtendedEmailPublisher.java:360)
        at
hudson.plugins.emailext.ExtendedEmailPublisher.replaceTokensWithContent
(ExtendedEmailPublisher.java:362)
        at hudson.plugins.emailext.ExtendedEmailPublisher.transformText
(ExtendedEmailPublisher.java:340)
        at hudson.plugins.emailext.ExtendedEmailPublisher.createMail
(ExtendedEmailPublisher.java:295)
        at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail
(ExtendedEmailPublisher.java:265)
        at hudson.plugins.emailext.ExtendedEmailPublisher._perform
(ExtendedEmailPublisher.java:257)
        at hudson.plugins.emailext.ExtendedEmailPublisher.perform
(ExtendedEmailPublisher.java:215)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep
(AbstractBuild.java:309)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep
(AbstractBuild.java:297)
        at hudson.model.Build$RunnerImpl.post2(Build.java:118)
        at hudson.model.AbstractBuild$AbstractRunner.post
(AbstractBuild.java:282)
        at hudson.model.Run.run(Run.java:796)
        at hudson.model.Build.run(Build.java:85)
        at hudson.model.ResourceController.execute(ResourceController.java:70)
        at hudson.model.Executor.run(Executor.java:85)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 2008] NullPointerExceptions when sending notification emails

Kohsuke Kawaguchi
Administrator
https://hudson.dev.java.net/issues/show_bug.cgi?id=2008



User kohsuke changed the following:

                What    |Old value                 |New value
================================================================================
              QA contact|issues@hudson             |markltbaker
--------------------------------------------------------------------------------
            Subcomponent|mail                      |email-ext
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Thu Jul  9 19:15:07 +0000 2009 -------
Reassigning

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]