• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Javamail - type exception

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've written a program that uses the javax.mail jar to send email. The program works fine on my desktop computer - but when moved to another station, the Transport.send() method throws an Unsupported Type Exception. Saying therei s no DCH object for my MIME object.
I've seen several posts around with similar problems - the only suggestions are to check the class path. I'm using a jar with all of my mail jars inside, so I don't do any class path setting.
Does anyone know of any hardware problems that could cause this? I was able to open outlook on the other station and send a message.
Here is a cropped portion of the code...

 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No DataContentHandler, well the only solution to that is to check your classpath... That's almost always the problem, regardless of how sure you are, I really would go and check it again.

I think in one of the jars somewhere there will be a META-INF/mime.types or mime.defaults file, which IIRC tells you the supported mime-types. Perhaps you have conflicting mime.types files due to the installation of java on that 2nd machine.
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic