File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes UnsupportedDataTypeException in mail sendprogram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "UnsupportedDataTypeException in mail sendprogram " Watch "UnsupportedDataTypeException in mail sendprogram " New topic

UnsupportedDataTypeException in mail sendprogram

Kiran Baratam

Joined: Sep 03, 2003
Posts: 27
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
in my java.policy the mailsend program is working fine.
insted if i specify permission like
permission "d:/xslt/newtradedata.xml", "read,write,delete";
permission "d:/xslt/canceltradedata.xml", "read,write,delete";
permission "d:/xslt/modtradedata.xml", "read,write,delete";
permission java.util.PropertyPermission "*", "read,write";

permission "*", "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
[ December 08, 2003: Message edited by: Kiran Baratam ]
[ December 08, 2003: Message edited by: Kiran Baratam ]
I agree. Here's the link:
subject: UnsupportedDataTypeException in mail sendprogram
It's not a secret anymore!