This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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: 128
    
    5

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: JavaMail UnsupportedDataTypeException in custom ClassLoader
 
jQuery in Action, 3rd edition