javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed

Highlighted
Five Stars

javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed

Hi,

I am trying to send the CSV file as an attachment but I am getting this error :

Caused by: class javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;

The code before sending the email is 

String localFile = exchange.getIn().getHeader("CamelFileNameProduced", String.class);
exchange.getIn().addAttachment(localFile, new DataHandler(new FileDataSource(localFile)));

 The content- type in cMail component is set to "text/plain"

This is in Talend 5.3

Please help me out what I am missing.

Thanks

Moderator

Re: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed

Hello,

Are you getting this error when deploy your route kar file into runtime 5.3.1?

Here exists a ESB jira issue about:https://jira.talendforge.org/browse/TESB-5705

Let us know if it is what you are looking for.

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

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

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read