Re: UnsupportedEncodingException - er.javamail
Re: UnsupportedEncodingException - er.javamail
- Subject: Re: UnsupportedEncodingException - er.javamail
- From: Kieran Kelleher <email@hidden>
- Date: Sat, 10 Oct 2009 15:09:18 -0400
Try setting the encoding to UTF-8 for javamail. Put the following in
your Application's Properties file and try again. Maybe the default
ascii/latin1/iso-8859-1 is not supported by your current OS/language/
environment...
er.javamail.defaultEncoding = utf-8
On Oct 10, 2009, at 2:33 PM, glycopolis wrote:
I used the all-in-one installer (with Eclipse).
On Oct 10, 2009, at 11:32 AM, Kieran Kelleher wrote:
On second thoughts, what version of Wonder are you using ...... I
sincerely hope u did not just download the SourceForge version
which is ancient
On Oct 10, 2009, at 1:35 PM, glycopolis wrote:
I am new to programming WebObjects, could someone please help me
with the following exception. I believe it is encoding-related,
but with scarce background I have yet with WebObjects I can't
figure my way out.
java.io.UnsupportedEncodingException: null
at
sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:
42)
at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:83)
at com.sun.mail.handlers.text_plain.writeTo(text_plain.java:149)
at
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:
869)
at javax.activation.DataHandler.writeTo(DataHandler.java:302)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:
636)
at er.javamail.ERMailSender._sendMessageNow(ERMailSender.java:189)
at er.javamail.ERMailSender.run(ERMailSender.java:293)
at java.lang.Thread.run(Thread.java:637)
Oct 10 03:22:09 Registration[5555] ERROR er.javamail.ERMailSender
- General mail error: javax.mail.MessagingException: IOException
while sending message;
nested exception is:
java.io.UnsupportedEncodingException: null
UnsupportedEncodingException: null
at
sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:
42)
at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:83)
at com.sun.mail.handlers.text_plain.writeTo(text_plain.java:149)
at
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:
869)
at javax.activation.DataHandler.writeTo(DataHandler.java:302)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:
636)
at er.javamail.ERMailSender._sendMessageNow(ERMailSender.java:189)
at er.javamail.ERMailSender.run(ERMailSender.java:293)
... skipped 1 stack elements
Thanks!
glycopolis
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden