Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaMail UnsupportedDataTypeException in custom ClassLoader

 
Michael Remijan
Author
Ranch Hand
Posts: 131
7
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic