Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA90A4EC5 for ; Fri, 1 Jul 2011 16:07:06 +0000 (UTC) Received: (qmail 93636 invoked by uid 500); 1 Jul 2011 16:07:06 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 93568 invoked by uid 500); 1 Jul 2011 16:07:05 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 93560 invoked by uid 99); 1 Jul 2011 16:07:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 16:07:05 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 16:07:00 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QcgEq-0006dN-0g for users@camel.apache.org; Fri, 01 Jul 2011 09:06:40 -0700 Date: Fri, 1 Jul 2011 09:06:40 -0700 (PDT) From: =?UTF-8?Q?Andr=C3=A8?= To: users@camel.apache.org Message-ID: <1309536400014-4542595.post@n5.nabble.com> In-Reply-To: References: <06139A918ACCA041BF46A0F36940C7FA04871B0D@exch-mbx2.msk.trd.ru> <1309520628684-4541857.post@n5.nabble.com> Subject: Re: Is it possible to propagate an exception to the parent route? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable i=C2=B4m trying that by wrapping an exception in a RuntimeCamelException an= d the exception consumer is dewraping and throwing it again,=20 but at the producer i=C2=B4m getting a nullpointer, so somewhere i=C2=B4m l= oosing the exception, cause i should get the runtimecamelException ... any ideas ?=20 (thx, your answers already helped that much.. ) (Exception producer) =09 =09=09=09 =09=09=09 =09=09=09=09 =09=09=09=09 =09=09=09=09=09org.jboss.security.xacml.sunxacml.ParsingExceptio= n =09=09=09=09=09 =09=09=09=09=09 =09=09=09=09 =09=09=09 (Wrapper) =09public void process(Exchange exchange) throws Exception { =09=09 =09=09Exception e =3D exchange.getException(); =09=09RuntimeCamelException wrapper =3D new RuntimeCamelException(e.getCaus= e()); =09=09wrapper.setStackTrace(e.getStackTrace()); =09=09exchange.setException(wrapper); =09} (Exception consumer) =09=09=09 =09=09=09 =09=09=09 =09=09=09=09 =09=09=09=09 =09=09=09=09=09org.apache.camel.RuntimeCamelException =09=09=09=09=09 =09=09=09=09 =09=09=09 (DeWrapper) =09public void process(Exchange exchange) throws Exception { =09=09throw exchange.getException();=20 } -- View this message in context: http://camel.465427.n5.nabble.com/Is-it-possi= ble-to-propagate-an-exception-to-the-parent-route-tp4541827p4542595.html Sent from the Camel - Users mailing list archive at Nabble.com.