ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44009] New: - MailLogger failed to send e-mail
Date Mon, 03 Dec 2007 10:11:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44009>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44009

           Summary: MailLogger failed to send e-mail
           Product: Ant
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: faujdar@gmail.com


I tried using the Maillogger but continuously get 
MailLogger failed to send e-mail!
java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:2
06)
        at org.apache.tools.ant.listener.MailLogger.sendMimeMail(MailLogger.java
:271)
        at org.apache.tools.ant.listener.MailLogger.buildFinished(MailLogger.jav
a:139)
        at org.apache.tools.ant.Project.fireBuildFinished(Project.java:2008)
        at org.apache.tools.ant.Main.runBuild(Main.java:718)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

-----------------------------------------------------------------
As the initial analysis it appears the following code is playing foul.

	for (Iterator iter = headers.iterator(); iter.hasNext();) {
	    Header h = (Header) iter.next();
            msg.addHeader(h.getName(), h.getValue());
	}

The settings i used for maillogger:
MailLogger.mailhost=exchange.usa.net
MailLogger.user=<Removed>
MailLogger.password=<Removed>
MailLogger.from=<Removed>
MailLogger.failure.to=<Removed>
MailLogger.success.to=<Removed>
MailLogger.failure.subject=BuildFailed
MailLogger.success.subject=successful

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message