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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Content Type = message/delivery-status

843830Nov 10 2005 — edited Nov 10 2005
Hi,
i'm facing the problem of managing MimeMultiPart in a java webmail whose content type = message/delivery-status I
tried with
String bodyPrevious = (String) part.getContent();
because i suppose that the part contains the previous mail but i get a ClassCastException
Any help? Piece of code?

Comments

DrClap
Start with
System.out.println(part.getContent().getClass().getName());
so you see what class you are actually getting. It isn't uncommon to get an InputStream instead of a String.
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 8 2005
Added on Nov 10 2005
1 comment
90 views