Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F1D767551 for ; Sat, 24 Sep 2011 08:55:47 +0000 (UTC) Received: (qmail 37621 invoked by uid 500); 24 Sep 2011 08:55:47 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 37579 invoked by uid 500); 24 Sep 2011 08:55:47 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 37569 invoked by uid 99); 24 Sep 2011 08:55:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Sep 2011 08:55:47 +0000 X-ASF-Spam-Status: No, hits=-1999.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Sep 2011 08:55:46 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 24613AFE39 for ; Sat, 24 Sep 2011 08:55:26 +0000 (UTC) Date: Sat, 24 Sep 2011 08:55:26 +0000 (UTC) From: "Nilesh Soni (JIRA)" To: dev@camel.apache.org Message-ID: <1688408213.8931.1316854526129.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CAMEL-4483) Global exception not invoked in case of Exception fired while iterating through File Splitter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Global exception not invoked in case of Exception fired while iterating through File Splitter --------------------------------------------------------------------------------------------- Key: CAMEL-4483 URL: https://issues.apache.org/jira/browse/CAMEL-4483 Project: Camel Issue Type: Bug Affects Versions: 2.8.1 Environment: Windows Reporter: Nilesh Soni Priority: Blocker Hi All, I have written a file route which picks up xml files from a specified location. This file is passed to a splitter (actually an Expression written by me) which returns a custom made Iterator and returns to Camel. When camel is iterating through my iterator, if I throw RuntimeException, it is not getting caught in global exception and hence i am not able to log the error. In actual, my entire code is a test class attached with this mail. Anyone can run it directly. There is one strange behavior also noticed by me. If i throw RuntimeException from the Expression written by me, it is properly caught by the global exception. You can find both the occurance of RuntimeException in the code (the commented one is working properly). Any help will be appreciated. For the source code, check the issue created in forum: http://camel.465427.n5.nabble.com/Global-exception-not-invoked-in-case-of-Exception-fired-while-iterating-through-File-Splitter-tc4826097.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira