Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javax.mail.MessagingException: Missing start boundary

843830Sep 4 2002 — edited Feb 3 2005
Hi there -

i'm basically using the demo msgShow class
to try and display mime/multipart messages,
i've tried numerous variations to get this to work -
following the suggestions posted in this forum.
But i always end up with an exception like this:

javax.mail.MessagingException: Missing start boundary
at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:284)
at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:158)
at com.anam.jmail.sender.MailRetriever.dumpPart(MailRetriever.java:312)

the code where the problem is:

if (message.isMimeType("multipart/*")) {

Multipart mp = (Multipart)message.getContent();
int count = mp.getCount();
for (int i = 0; i < count; i++)
dumpPart(mp.getBodyPart(i));
}

the getCount() throws the exception.
Its not a casting problem (i think)
& i have the activation.jar in my path.

Any suggestions?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2005
Added on Sep 4 2002
4 comments
2,582 views