Hi Marc,
thanks for your reply.
So I'm in the configuration screen of the job. When I change any
attributes other than E-Mail Notification Recipients, they get persisted to
the job's config.xml. Whenever I set any recipients, click Apply then
Save, I open up the config.xml for the job, and the only thing I see in the
*reporters* section is:
<reporters>
<hudson.maven.reporters.MavenMailer>
<dontNotifyEveryUnstableBuild>true</dontNotifyEveryUnstableBuild>
<sendToIndividuals>false</sendToIndividuals>
<perModuleEmail>true</perModuleEmail>
</hudson.maven.reporters.MavenMailer>
</reporters>
Obviously it's not persisting the changes to the config.xml, and I do not
see any errors in the log file.
What are some other things I could check ? FYI, I'm running in
embedded/bootstrapped mode (java -jar jenkins.war), Not sure if that makes
a difference or not.
Thanks!
Alessandro Ferrucci
On Tue, Dec 31, 2013 at 2:53 PM, Marc MacIntyre <[email protected]>wrote:
> So there's your problem; not sure how that got left out of the original
> report. Figure out why your config isn't being saved, fix that, and try
> again.
>
>
> On Tue, Dec 31, 2013 at 11:26 AM, Alessandro Ferrucci <
> [email protected]> wrote:
>
>> Marc,
>> that's what I thought, which takes me to a second issue.
>>
>> I have configured a set of recipients in the job configuration. When I
>> click "Apply", then "Save", then go back to the job configuration, the
>> email recipients are not saved (it's blank again).
>>
>>
>>
>>
>> On Tue, Dec 31, 2013 at 2:19 PM, Marc MacIntyre
>> <[email protected]>wrote:
>>
>>> NPE in the tokenizer could be misconfigured email addresses, too.
>>>
>>>
>>> On Tue, Dec 31, 2013 at 11:15 AM, Alessandro Ferrucci <
>>> [email protected]> wrote:
>>>
>>>> I'm testing a build and when the build fails,it's supposed to send an
>>>> email to a list of users.
>>>>
>>>> I can see the NPE originating from the mail sender, and it would look
>>>> like it would be because there are no recipients email addresses configured
>>>> for the job, but I did configure email addresses. I'm using latest stable
>>>> Jenkins build (1.544)
>>>>
>>>> Thanks!
>>>>
>>>> Alessandro Ferrucci
>>>> In the console output I see:
>>>>
>>>> ERROR: Processing failed due to a bug in the code. Please report this to
>>>> [email protected]
>>>> <http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException>
>>>> at java.util.StringTokenizer.<init>(StringTokenizer.java:199)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3E&entity=method>
>>>> at java.util.StringTokenizer.<init>(StringTokenizer.java:236)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3E&entity=method>
>>>> at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMail&entity=method>
>>>> at hudson.tasks.MailSender.createFailureMail(MailSender.java:225)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createFailureMail&entity=method>
>>>> at hudson.tasks.MailSender.getMail(MailSender.java:152)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMail&entity=method>
>>>> at hudson.tasks.MailSender.execute(MailSender.java:100)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.execute&entity=method>
>>>> at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:56)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.reporters.MavenMailer.end&entity=method>
>>>> at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.AbstractMavenBuilder.end&entity=method>
>>>> at
>>>> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:829)
>>>>
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun&entity=method>
>>>> at
>>>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566)
>>>>
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
>>>> at hudson.model.Run.execute(Run.java:1678)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
>>>> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.run&entity=method>
>>>> at hudson.model.ResourceController.execute(ResourceController.java:88)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
>>>> at hudson.model.Executor.run(Executor.java:231)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
>>>> project=hudson.maven.MavenModuleSet@2a94f028[Comet Test]
>>>> project.getModules()=[hudson.maven.MavenModule@2059dcd9[Comet
>>>> Test/comet:Comet][Comet Test/comet:Comet][relativePath:trunk]]
>>>> project.getRootModule()=hudson.maven.MavenModule@2059dcd9[Comet
>>>> Test/comet:Comet][Comet Test/comet:Comet][relativePath:trunk]
>>>> FATAL: nulljava.lang.NullPointerException
>>>> <http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException>
>>>> at java.util.StringTokenizer.<init>(StringTokenizer.java:199)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3E&entity=method>
>>>> at java.util.StringTokenizer.<init>(StringTokenizer.java:236)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3E&entity=method>
>>>> at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMail&entity=method>
>>>> at hudson.tasks.MailSender.createFailureMail(MailSender.java:225)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createFailureMail&entity=method>
>>>> at hudson.tasks.MailSender.getMail(MailSender.java:152)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMail&entity=method>
>>>> at hudson.tasks.MailSender.execute(MailSender.java:100)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.execute&entity=method>
>>>> at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:56)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.reporters.MavenMailer.end&entity=method>
>>>> at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.AbstractMavenBuilder.end&entity=method>
>>>> at
>>>> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:829)
>>>>
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun&entity=method>
>>>> at
>>>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566)
>>>>
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
>>>> at hudson.model.Run.execute(Run.java:1678)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
>>>> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.run&entity=method>
>>>> at hudson.model.ResourceController.execute(ResourceController.java:88)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
>>>> at hudson.model.Executor.run(Executor.java:231)
>>>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Jenkins Users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>>
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> --
>>> Marc MacIntyre
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Jenkins Users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/jenkinsci-users/DFSWgKgs1r8/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Signed,
>> Alessandro Ferrucci
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Marc MacIntyre
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/DFSWgKgs1r8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
Signed,
Alessandro Ferrucci
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.