ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9896] New: - <mail> task throws NullPointerException
Date Sun, 16 Jun 2002 06:06:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9896>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9896

<mail> task throws NullPointerException

           Summary: <mail> task throws NullPointerException
           Product: Ant
           Version: 1.5Beta2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: miha@softhome.net


Following ant definition:
    <target name="sendmail">
        <property name="to"         value="mike"/>
        <property name="from"       value="support"/>
        <property name="subject"    value="Mail Test"/>
        <property name="message"    value="Hello World"/>
        <property name="mailhost"   value="kaori"/>
        <property name="attach"     location=""/>
        
        <mail from="${from}" tolist="${to}" subject="${subject}" 
files="${attach}" message="${message}" mailhost="${mailhost}"/>
    </target>



D:\development\song\dev\song>ant sendmail -Dattach=build.xml
Buildfile: build.xml

sendmail:
Sending email: Mail Test

BUILD FAILED
java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.email.Message.print(Message.java)
        at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java)
        at org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java)

        at org.apache.tools.ant.Task.perform(Task.java)
        at org.apache.tools.ant.Target.execute(Target.java)
        at org.apache.tools.ant.Target.performTasks(Target.java)
        at org.apache.tools.ant.Project.executeTarget(Project.java)
        at org.apache.tools.ant.Project.executeTargets(Project.java)
        at org.apache.tools.ant.Main.runBuild(Main.java)
        at org.apache.tools.ant.Main.start(Main.java)
        at org.apache.tools.ant.Main.main(Main.java)

Total time: 1 second
java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.email.Message.print(Message.java)
        at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java)
        at org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java)

        at org.apache.tools.ant.Task.perform(Task.java)
        at org.apache.tools.ant.Target.execute(Target.java)
        at org.apache.tools.ant.Target.performTasks(Target.java)
        at org.apache.tools.ant.Project.executeTarget(Project.java)
        at org.apache.tools.ant.Project.executeTargets(Project.java)
        at org.apache.tools.ant.Main.runBuild(Main.java)
        at org.apache.tools.ant.Main.start(Main.java)
        at org.apache.tools.ant.Main.main(Main.java)
D:\development\song\dev\song>

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message