Hi camel users,

 

we are using the camel mail component to fetch mails from a mailserver. For
some mails the polling fails due to a IOException (see below). 

 

I attached the mail that causes the problem to this mail (slightly changed).
The mail has an empty body, so one could argue the exception is correct. But
for other mails with empty body there is no exception thrown. 

 

I found this post which seems to be the same problem, but without a
solution:

http://camel.465427.n5.nabble.com/IMAP-No-content-td5725535.html

 

Anyone else came across this problem?

 

Thanks in advance

Best regards,

Manuel

 

 

Caused by: java.io.IOException: No content

                at
javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.jav
a:115)

                at
com.sun.mail.handlers.text_plain.getContent(text_plain.java:80)

                at
javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:79
5)

                at
javax.activation.DataHandler.getContent(DataHandler.java:542)

                at
javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:657)

                at
org.apache.camel.component.mail.MailBinding.extractHeadersFromMail(MailBindi
ng.java:614)

                at
com.sap.esb.camel.mail.endpoint.configurator.mail.binding.CustomMailBinding.
extractHeadersFromMail(CustomMailBinding.java:24)

                at
com.sap.esb.camel.security.cms.smime.SMimeMailBinding.extractHeadersFromMail
(SMimeMailBinding.java:292)

                at
com.sap.esb.camel.mail.endpoint.configurator.mail.impl.trace.TraceMailBindin
gWithDelegation.extractHeadersFromMail(TraceMailBindingWithDelegation.java:4
2)

                at
org.apache.camel.component.mail.MailMessage.populateInitialHeaders(MailMessa
ge.java:116)

                ... 27 common frames omitted

Caused by: javax.mail.MessagingException: No content

                at
com.sun.mail.imap.IMAPBodyPart.getContentStream(IMAPBodyPart.java:206)

                at
javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.jav
a:99)

                ... 36 common frames omitted

 

<placeholder for removed headers>
Content-Type: multipart/mixed; boundary="B_3635935644_1394162719"
MIME-Version: 1.0

--B_3635935644_1394162719
Content-Type: multipart/alternative; boundary="B_3635935644_1482547693"

--B_3635935644_1482547693
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

 


--B_3635935644_1482547693
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8">
<meta content=3D"MSHTML 6.00.2900.2180" name=3D"GENERATOR">
<style></style>
</head>
<body bgcolor=3D"#ffffff">
<div>&nbsp;</div>
</body>
</html>


--B_3635935644_1482547693--

--B_3635935644_1394162719
Content-Type: application/vnd.ms-excel; name="myfile1.XLS";
        x-mac-creator=4F50494D; x-mac-type=584C5338
Content-ID: <860b8c998fce2b4cb4db4beb4c119...@outlook.com>
Content-Disposition: attachment; filename="myfile1.XLS"
Content-Transfer-Encoding: base64


<placeholer for replaced content>

--B_3635935644_1394162719
Content-Type: application/vnd.ms-excel; name="myfile2.XLS";
        x-mac-creator=4F50494D; x-mac-type=584C5338
Content-ID: <349e91b00e69bb4aa7fd6ad40222d...@outlook.com>
Content-Disposition: attachment; filename="myfile2.XLS"
Content-Transfer-Encoding: base64


<placeholer for replaced content>

--B_3635935644_1394162719
Content-Type: application/vnd.ms-excel; name="myfile3.XLS";
        x-mac-creator=4F50494D; x-mac-type=584C5338
Content-ID: <1f027f84da005447b7bf5a8a6cc37...@outlook.com>
Content-Disposition: attachment; filename="myfile3.XLS"
Content-Transfer-Encoding: base64


<placeholer for replaced content>

--B_3635935644_1394162719
Content-Type: application/vnd.ms-excel; name="myfile4.XLS";
        x-mac-creator=4F50494D; x-mac-type=584C5338
Content-ID: <8e011fdb5e02ce41a5eb632306c00...@outlook.com>
Content-Disposition: attachment; filename="myfile4.XLS"
Content-Transfer-Encoding: base64

<placeholer for replaced content>

--B_3635935644_1394162719--

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to