• 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

UnsupportedDataTypeException in mail sendprogram

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

I have a program to send mail.When i try to send its giving the following exception.
Something went wrong sending the message: javax.mail.SendFailedException: Sendin
g failed;
nested exception is:
class javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME ty
pe text/plain; charset=us-ascii
one rmi application is running in my machine and i have a java.policy file for that.
i found if i give
permission java.security.AllPermission;
in my java.policy the mailsend program is working fine.
insted if i specify permission like
permission java.io.FilePermission "d:/xslt/newtradedata.xml", "read,write,delete";
permission java.io.FilePermission "d:/xslt/canceltradedata.xml", "read,write,delete";
permission java.io.FilePermission "d:/xslt/modtradedata.xml", "read,write,delete";
permission java.util.PropertyPermission "*", "read,write";

permission java.net.SocketPermission "*", "accept,listen,connect,resolve";
this program is giving above exception.
Can you please tell me, do i need to set some permission for this in java.policy.
i can not go away with java.policy as i need that for RMI applicatrion.
Please suggest me some solution.
Thanks and Regards
Kiran
[ December 08, 2003: Message edited by: Kiran Baratam ]
[ December 08, 2003: Message edited by: Kiran Baratam ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic