ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From josh <jo...@speakeasy.net>
Subject Re: Failed to initialise MIME mail (newbie warning)
Date Fri, 28 Jun 2002 22:53:33 GMT
Hi!

I had to put my ant mime mail problem on hold a while back, but it
never got solved.  And it's still not.

So, again, to recap for those of you who haven't been waiting around
just *dying* to find out what happened to my ant build problem:

ant -version     = 1.5beta2 (binary release)
java -version    = 1.4.0_01 Sun Hotspot jdk on Linux
OS               = Linux, like I said up there ^^^^^
mail.jar         = in ant/lib/optional
activation.jar   = likewise
Sunspot activity = very low

I can send regular mail like this:

  <mail
    mailhost="localhost"
    tolist="me@here.com"
    from="me@localhost"
    subject="the update task"
    message="cvs update logs">
    files="cvs.log"
  />

That works dandy.  Great.  One might even say it works spectacularly
well.  However, when I try to get it to send cvs.log as an
attachment thusly:

  <mail
    mailhost="localhost"
    tolist="me@here.com"
    from="me@localhost"
    subject="the update task"
    message="cvs update logs">
    <fileset dir=".">
      <include name="*.log"/>
    </fileset>
  </mail>

I get a horrible, ugly error, to wit:
  mail
  Failed to initialise MIME mail
  Sending email: nv build
  java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.email.Message.print(Message.java)
        at org.apache.tools.ant.taskdefs.email.PlainMailer.send(PlainMailer.java)
        at org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java)
        [...]


Ok, that's about it.  I've attached the full error log in case anyone
cares about it.  Thanks for any enlightenment you may be able to
provide.

- josh
Mime
View raw message