tFileInputMail UnsupportedEncodingException When picking up mail

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

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.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch