Getting UnsupportedDataTypeException for MIME type message/delivery-status

From: Akshay Trivedi (Akshay.Trivedi_at_Oracle.com)
Date: 01/28/05

  • Next message: KK.Frank_at_gmail.com: "ant can't work"
    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


  • Next message: KK.Frank_at_gmail.com: "ant can't work"

    Relevant Pages

    • Re: JSP format number
      ... This is the stack trace I'm getting and the code that is causing it is ... I solved my formatting class another way. ... getting a number when he is expecting a String. ... NumberFormat, on the other hand, allows you to parse ...
      (comp.lang.java.help)
    • RE: Load Testing Errors
      ... > An unhandled exception was generated during the execution of the current web ... > be identified using the exception stack trace below. ... > System.Web.UI.DataBinder.GetPropertyValue(Object container, String ... > propName, String format) +11 ...
      (microsoft.public.dotnet.framework.performance)
    • RE: Load Testing Errors
      ... > An unhandled exception was generated during the execution of the current web ... > be identified using the exception stack trace below. ... > System.Web.UI.DataBinder.GetPropertyValue(Object container, String ... > propName, String format) +11 ...
      (microsoft.public.dotnet.general)
    • RE: Load Testing Errors
      ... > An unhandled exception was generated during the execution of the current web ... > be identified using the exception stack trace below. ... > System.Web.UI.DataBinder.GetPropertyValue(Object container, String ... > propName, String format) +11 ...
      (microsoft.public.dotnet.security)
    • Re: Debugging Dotnet Web Application
      ... What a stack trace is .. ... > virtualPath, String inputFile, HttpContext context) ...
      (microsoft.public.dotnet.framework.aspnet.webservices)