Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3293A200B6A for ; Mon, 22 Aug 2016 18:08:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 31B40160A87; Mon, 22 Aug 2016 16:08:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 68091160AC3 for ; Mon, 22 Aug 2016 18:08:24 +0200 (CEST) Received: (qmail 44640 invoked by uid 500); 22 Aug 2016 16:08:23 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 44325 invoked by uid 99); 22 Aug 2016 16:08:23 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2016 16:08:23 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E86FB2C0151 for ; Mon, 22 Aug 2016 16:08:22 +0000 (UTC) Date: Mon, 22 Aug 2016 16:08:22 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-10254) Error may still block mail-consumer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 22 Aug 2016 16:08:25 -0000 [ https://issues.apache.org/jira/browse/CAMEL-10254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-10254. --------------------------------- Resolution: Fixed Assignee: Claus Ibsen > Error may still block mail-consumer > ------------------------------------ > > Key: CAMEL-10254 > URL: https://issues.apache.org/jira/browse/CAMEL-10254 > Project: Camel > Issue Type: Bug > Components: camel-mail > Affects Versions: 2.15.3, 2.17.3 > Reporter: Steffen Eitelmann > Assignee: Claus Ibsen > Fix For: 2.18.0, 2.17.4 > > > 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 at 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: > {code} > 2016.08.19 10:10:35.613 DEBUG Camel (camel-1) thread #52 - pop3s://dev1@dev.de) 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(MailMessage.java:131) > at org.apache.camel.impl.DefaultMessage.createAttachments(DefaultMessage.java:216) > at org.apache.camel.impl.DefaultMessage.getAttachments(DefaultMessage.java:281) > at org.apache.camel.component.mail.MailConsumer.createExchanges(MailConsumer.java:328) > at org.apache.camel.component.mail.MailConsumer.poll(MailConsumer.java:121) > at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) > at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > Caused by: javax.mail.MessagingException: Missing start boundary > at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:882) > at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:503) > at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:244) > at org.apache.camel.component.mail.MailBinding.extractAttachmentsFromMultipart(MailBinding.java:304) > at org.apache.camel.component.mail.MailBinding.extractAttachmentsFromMail(MailBinding.java:293) > at org.apache.camel.component.mail.MailMessage.populateInitialAttachments(MailMessage.java:128) > ... 13 more > {code} > Results are the same as described in CAMEL-7474 -- This message was sent by Atlassian JIRA (v6.3.4#6332)