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!

multipart/report - Missing Start Boundary - MultiPart.getContent()

843830Dec 9 2005 — edited Feb 8 2010
I am writing to you in regard to an issue that I have been facing recently, and I wanted to see if the JavaMail developers / community could provide any answers.

Does JavaMail support the multipart/report MIME specification (RFC 1892)?

The reason I ask, is that I have seen a strong correlation between errors in JavaMail and this content....

I am getting Missing Start Boundary exceptions when I execute this code on a message that has this Mime Type in it, (multipart/report)

mp = (Multipart)part.getContent();
count = mp.getCount(); // THIS IS WHAT THROWS THE ERROR

An example of this message header, would be
X-Atlas-MailScanner-From: abc@123.com
Content-Type: multipart/report; report-type=delivery-status;
boundary="==IFJRGLKFGIR5607UHRUHIHD"

** NOTE HOW BOUNDARY IS SPECIFIED UNLIKE THE OTHER SECTIONS WHICH LEADS ME TO BELIEVE THE MISSING START BOUNDARY EXCEPTION **

--==IFJRGLKFGIR5607UHRUHIHD
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64
......
--==IFJRGLKFGIR5607UHRUHIHD
Content-Type: message/rfc822

I have seen older posts that talk about other people's problem regarding this Exception; however, have not seen an abstract way for circumventing the issue.

Any insight/future development intentions/experience in dealing with this issue would be greatly appreciated.

RR
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2010
Added on Dec 9 2005
8 comments
1,068 views