Bug 399720 - hudson.tasks.Mailer causes Exception in MavenModuleSetBuild which prevents all other steps to be done
Summary: hudson.tasks.Mailer causes Exception in MavenModuleSetBuild which prevents al...
Status: ASSIGNED
Alias: None
Product: Hudson
Classification: Technology
Component: Plugins (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows Server 2008
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Winston Prakash CLA
QA Contact: Geoff Waymark CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-01 05:58 EST by Waldemar Tribus CLA
Modified: 2013-02-01 12:08 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Waldemar Tribus CLA 2013-02-01 05:58:04 EST
Hallo,

After Upgrade from 2.x to 3.0.0 the mailer plugin causes an exception. We didnt get any mails since upgrade. We had to remove the email notifications on fail in order to get the builds done, because this Exceptions prevents all other steps after email notification to be skipped because of "FAILURE" status.

The job in this case is not a maven job, it is a freestyle job wich uses windows batch files to compile some CPP-code.

Again, i am not sure if it's a problem of hudson itself or a problem of the mail plugin.

11:32:23  Archiviere Artefakte
11:32:36  ERROR: Publisher hudson.tasks.Mailer aborted due to exception
11:32:36  java.util.NoSuchElementException
11:32:36  	at java.util.AbstractList$Itr.next(Unknown Source)
11:32:36  	at hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:227)
11:32:36  	at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:197)
11:32:36  	at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:191)
11:32:36  	at hudson.maven.FilteredChangeLogSet.<init>(FilteredChangeLogSet.java:51)
11:32:36  	at hudson.maven.MavenBuild.getChangeSet(MavenBuild.java:172)
11:32:36  	at hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:319)
11:32:36  	at hudson.model.AbstractProject.hasParticipant(AbstractProject.java:1674)
11:32:36  	at hudson.model.User.getProjects(User.java:384)
11:32:36  	at hudson.scm.MailAddressResolverImpl.findMailAddressFor(MailAddressResolverImpl.java:43)
11:32:36  	at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:88)
11:32:36  	at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:538)
11:32:36  	at hudson.tasks.mail.impl.BaseBuildResultMail.buildCulpritList(BaseBuildResultMail.java:245)
11:32:36  	at hudson.tasks.mail.impl.BaseBuildResultMail.createEmptyMail(BaseBuildResultMail.java:155)
11:32:36  	at hudson.tasks.mail.impl.BackToNormalBuildMail.getMail(BackToNormalBuildMail.java:46)
11:32:36  	at hudson.tasks.MailSender.getMail(MailSender.java:147)
11:32:36  	at hudson.tasks.MailSender.execute(MailSender.java:74)
11:32:36  	at hudson.tasks.Mailer.perform(Mailer.java:112)
11:32:36  	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:34)
11:32:36  	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)
11:32:36  	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:624)
11:32:36  	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:600)
11:32:36  	at hudson.model.Build$RunnerImpl.post2(Build.java:163)
11:32:36  	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:566)
11:32:36  	at hudson.model.Run.run(Run.java:1414)
11:32:36  	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
11:32:36  	at hudson.model.ResourceController.execute(ResourceController.java:81)
11:32:36  	at hudson.model.Executor.run(Executor.java:137)
11:32:36  CIFS: Current build result is [FAILURE], not going to run.
11:32:36  Finished: FAILURE

PS. can you please point me to the right place for source code of the current hudson 3.0.0 release?

https://github.com/hudson/legacy-maven-support.git
http://git.eclipse.org/gitroot/hudson/org.eclipse.hudson.plugins.git
http://git.eclipse.org/gitroot/hudson/org.eclipse.hudson.core.git
are this URLs correct for hudson 3.0.0?
Comment 1 Winston Prakash CLA 2013-02-01 12:02:35 EST
I will take a  look at it. By any chance do you use JDK 7? We hear Hudson mailer is broken on JDK 7, which we are looking to fix.

Only the core sources http://git.eclipse.org/gitroot/hudson/org.eclipse.hudson.core.git are used from Eclipse

For now, all plugins are outside of Eclipse at https://github.com/hudson3-plugins
Comment 2 Winston Prakash CLA 2013-02-01 12:02:52 EST
Mark it to be fixed for 3.0.1
Comment 3 Waldemar Tribus CLA 2013-02-01 12:08:08 EST
Copy&Paste from hudson systemInfo page:

java.home	C:\Program Files\Java\jre6
...
java.runtime.version	1.6.0_29-b11
...
java.specification.version	1.6
...
java.version	1.6.0_29

so i would say we are running hudson on JRE 1.6.