camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steffen Eitelmann (JIRA)" <>
Subject [jira] [Created] (CAMEL-10254) Error may still block mail-consumer
Date Fri, 19 Aug 2016 08:24:20 GMT
Steffen Eitelmann created CAMEL-10254:

             Summary: Error may still block mail-consumer 
                 Key: CAMEL-10254
             Project: Camel
          Issue Type: Bug
          Components: camel-mail
    Affects Versions: 2.17.3, 2.15.3
            Reporter: Steffen Eitelmann

If an error occurs before routing an email (email corrupt), the consumer blocks and does not
process further emails. A similar issue was fixed with CAMEL-7474, but the issue still exists
on another location.

CAMEL-7474 introduced a parameter "skipFailedMessage", which is used in Line 291 of the MailConsumer.
If an error occurs in "createExchanges" (Line 128) the parameter is not evaluated.

Example stacktrace:

2016.08.19 10:10:35.613 DEBUG Camel (camel-1) thread #52 - pop3s:// Error populating
the initial mail message attachments
org.apache.camel.RuntimeCamelException: Error populating the initial mail message attachments
	at org.apache.camel.component.mail.MailMessage.populateInitialAttachments(
	at org.apache.camel.impl.DefaultMessage.createAttachments(
	at org.apache.camel.impl.DefaultMessage.getAttachments(
	at org.apache.camel.component.mail.MailConsumer.createExchanges(
	at org.apache.camel.component.mail.MailConsumer.poll(
	at org.apache.camel.impl.ScheduledPollConsumer.doRun(
	at java.util.concurrent.Executors$
	at java.util.concurrent.FutureTask.runAndReset(
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
	at java.util.concurrent.ScheduledThreadPoolExecutor$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
Caused by: javax.mail.MessagingException: Missing start boundary
	at javax.mail.internet.MimeMultipart.parsebm(
	at javax.mail.internet.MimeMultipart.parse(
	at javax.mail.internet.MimeMultipart.getCount(
	at org.apache.camel.component.mail.MailBinding.extractAttachmentsFromMultipart(
	at org.apache.camel.component.mail.MailBinding.extractAttachmentsFromMail(
	at org.apache.camel.component.mail.MailMessage.populateInitialAttachments(
	... 13 more

Results are the same as described in CAMEL-7474

This message was sent by Atlassian JIRA

View raw message