-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
Did anybody else experience this? Since update to Jenkins v1.544, we get hit by two errors: 1. Whenever we save some job configuration, the notification-email adress is emptied and can not be stored again. 2. A subsequent run of that job then crashes at the end (when attempting to send email) wit the following exception: ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.NullPointerException at java.util.StringTokenizer.<init>(StringTokenizer.java:199) at java.util.StringTokenizer.<init>(StringTokenizer.java:236) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326) at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175) at hudson.tasks.MailSender.getMail(MailSender.java:168) at hudson.tasks.MailSender.execute(MailSender.java:100) at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:56) at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:829) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566) at hudson.model.Run.execute(Run.java:1678) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) If I compare the config.xml of a still untouched job against a broken job, I can see, that the <recipients>....</recipients> tag has completely vanished in the broken job: <!-- Intact job --> <hudson.maven.reporters.MavenMailer> <recipients>me@my-mail-address</recipients> <dontNotifyEveryUnstableBuild>true</dontNotifyEveryUnstableBuild> <sendToIndividuals>false</sendToIndividuals> <perModuleEmail>true</perModuleEmail> </hudson.maven.reporters.MavenMailer> <!-- Broken job --> <hudson.maven.reporters.MavenMailer> <dontNotifyEveryUnstableBuild>true</dontNotifyEveryUnstableBuild> <sendToIndividuals>false</sendToIndividuals> <perModuleEmail>true</perModuleEmail> </hudson.maven.reporters.MavenMailer> I can fix (sort of) the situation by manually editing the job's config.xml and then using "Read Configuration from Disk" in the "Manage Jenkins" menu. Of course whenever the job gets modified via the GUI again, the job gets broken again. IMHO, in addition to an actual fix of the bug, the mail function should be more tolerant regarding invalid input data. (Perhaps logging a warning like "No recipients - not sending mail"). Cheers -Fritz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlK0B18ACgkQboM4mAMyprBERQCfVVhyyFdvDDy0VSaeAh5Toltu kDEAn2Tbpm7kBaH5opIS4yjDh/5JfEXt =vPE3 -----END PGP SIGNATURE----- -- 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 jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.