aspose file tools*
The moose likes Java in General and the fly likes JavaMail UnsupportedDataTypeException in custom ClassLoader    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "JavaMail UnsupportedDataTypeException in custom ClassLoader    " Watch "JavaMail UnsupportedDataTypeException in custom ClassLoader    " New topic
Author

JavaMail UnsupportedDataTypeException in custom ClassLoader

Michael Remijan
Author
Ranch Hand

Joined: May 29, 2002
Posts: 110

I have an application which is giving a UnsupportedDataTypeException: no object DCH for MIME type text/plain error. Now, what's important to know is that the application runs fine if I execute it from the command line like a regular Java application. So I know the code works fine with all the JAR files I have. However, I normally do not run the application like this. What I usually do is start the application withing an already running JVM, however I create a new ClassLoader and start the application within that new ClassLoader (similar to how each Tomcat webapp application has it's own separate ClassLoader). I'm getting the below exception when running inside this new ClassLoader. Anyone have any ideas why? How to fix it?



Java EE Evangelist — Author, EJB 3 in Action 2nd Edition — Java Community Process Member
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaMail UnsupportedDataTypeException in custom ClassLoader
 
Similar Threads
UnsupportedDataTypeException in mail sendprogram
Java Mail - UnsupportedDataTypeException
Not able to send mail using Servlet and JSP
Java mail
javaMail question ( the same as previous topic with source code)