Getting UnsupportedDataTypeException for MIME type message/delivery-status
From: Akshay Trivedi (Akshay.Trivedi_at_Oracle.com)
Date: 01/28/05
- Previous message: Thomas Kellerer: "Re: Easiest way to create a string with n times character 'x'?"
- Next in thread: Roland: "Re: Getting UnsupportedDataTypeException for MIME type message/delivery-status"
- Reply: Roland: "Re: Getting UnsupportedDataTypeException for MIME type message/delivery-status"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 Jan 2005 19:19:36 +0530
Hi All,
I am having typical code like:
Part p is available
Multipart mp = (Multipart)p.getContent()
mp.getBodyPart(1).getInputStream();
String s = MimeUtility.streamToString(mp.getBodyPart(1).getInputStream(),
"UTF-8");
Top of my stack trace looks like:
Stack Trace is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
message/delivery-status
at javax.activation.DataHandler.getInputStream(DataHandler.java:230)
at javax.mail.internet.MimeBodyPart.getInputStream(MimeBodyPart.java:459)
Can somebody give me direction how do i impliemnt my DataHandler to resolve
this issue?
I have found similar link
http://www.mail-archive.com/server-dev@james.apache.org/msg00660.html
Where person is facing same issue but solution suggested is based on
modifying mailcap file at <JAVA_HOME>/jre/lib. In my environment I do not
see such file available.
Thanks,
Akshay
- Previous message: Thomas Kellerer: "Re: Easiest way to create a string with n times character 'x'?"
- Next in thread: Roland: "Re: Getting UnsupportedDataTypeException for MIME type message/delivery-status"
- Reply: Roland: "Re: Getting UnsupportedDataTypeException for MIME type message/delivery-status"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|