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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "JavaMail UnsupportedDataTypeException in custom ClassLoader    " Watch "JavaMail UnsupportedDataTypeException in custom ClassLoader    " New topic
Author

JavaMail UnsupportedDataTypeException in custom ClassLoader

Michael Remijan
Ranch Hand

Joined: May 29, 2002
Posts: 103

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?



<a href="http://www.linkedin.com/in/mjremijan" rel="nofollow">
<img src="http://www.linkedin.com/img/webpromo/btn_viewmy_160x25.png" border="0" >
</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaMail UnsupportedDataTypeException in custom ClassLoader
 
Similar Threads
Java Mail - UnsupportedDataTypeException
javaMail question ( the same as previous topic with source code)
UnsupportedDataTypeException in mail sendprogram
Not able to send mail using Servlet and JSP
Java mail