One Star

tFileInputMail UnsupportedEncodingException When picking up mail

Hi,
I have created a job which picks up about 400 emails from my mail server, downloads them and then is read by a tFileInputMail these emails are then processed by a few tmaps and placed in tFileOutputExel's.
The problem is when I get to the 362 email the tFileInputMail is throwing the following exception:
Exception in component tFileInputMail_4
java.io.UnsupportedEncodingException: unicode-1-1-utf-7
at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:52)
at java.io.InputStreamReader.<init>(InputStreamReader.java:83)
at com.sun.mail.handlers.text_plain.getContent(text_plain.java:107)
at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:775)
at javax.activation.DataHandler.getContent(DataHandler.java:522)
at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:637)
at icccp.disputesemailretriever_0_1.DisputesEmailRetriever.tPOP_2Process(DisputesEmailRetriever.java:1842)
at icccp.disputesemailretriever_0_1.DisputesEmailRetriever.runJobInTOS(DisputesEmailRetriever.java:3094)
at icccp.disputesemailretriever_0_1.DisputesEmailRetriever.main(DisputesEmailRetriever.java:2962)
Is there a fix for this? How could I go about doing this?
P.S I am using Talend Open Studio fir Data Integration 5.1.1

4 REPLIES
One Star

Re:tFileInputMail UnsupportedEncodingException When picking up mail

One Star

Re:tFileInputMail UnsupportedEncodingException When picking up mail

Thanks for the quick reply. Should I restart once I have applied it? I am working on a development box with 3 other people so it wont be a quick process if so.
EDIT 1: problem sorted I will just use a tLibraryLoad instead of placing it in the jdk directory. Thanks for the help. Ill test it out now.
EDIT 2: Thanks this works perfectly! Smiley Happy

One Star

Re:tFileInputMail UnsupportedEncodingException When picking up mail

Which one did you use?

One Star

Re:tFileInputMail UnsupportedEncodingException When picking up mail

The one on the IBM website worked perfectly thanks. IBM seemed like a safer bet.