Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 53249 invoked from network); 18 Oct 2009 16:21:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Oct 2009 16:21:34 -0000 Received: (qmail 25214 invoked by uid 500); 18 Oct 2009 16:21:34 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 25159 invoked by uid 500); 18 Oct 2009 16:21:34 -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 25147 invoked by uid 99); 18 Oct 2009 16:21:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Oct 2009 16:21:33 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.220.207 as permitted sender) Received: from [209.85.220.207] (HELO mail-fx0-f207.google.com) (209.85.220.207) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Oct 2009 16:21:30 +0000 Received: by fxm3 with SMTP id 3so2836126fxm.20 for ; Sun, 18 Oct 2009 09:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=1XpS3y2kA3QDtXGssdp891321C/wf1/QaB7qXp+LW50=; b=rnwcoUlQTdqdBinq1VaVFHTOcivbIXIUi0tsuH/kQtOTCS2CX5rMGVnggvhUtfxfpT vnEBMEeKzVDVDRDXb7TJqG4fZ29Bub1FHNYXys4iqMPycz/UR2uAEykEkzbENxeSIVlm q5quqS5gGJUhNkFv8uLN5VwjcoJ5RC7IOvXN4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=Nv/anCjTK1tx3PD0xa925zZSOksujez47mFtzr7oFPXNCo3l84CkiAMJ3uRzPYthFJ tixhW97r17EjvyA7Q4nSR9Nw5l3QCjtjV57U7Ou3mlAArz+0RpvDJ6i+T46Y8GU03rvo 9HOKTeTHY4WU9TEekSzDY0ZKHpfuI8Jqf+zMU= MIME-Version: 1.0 Received: by 10.204.152.154 with SMTP id g26mr3685025bkw.54.1255882869158; Sun, 18 Oct 2009 09:21:09 -0700 (PDT) In-Reply-To: <5380c69c0909030555u15f157ceg25cefb5794aeb480@mail.gmail.com> References: <5380c69c0908260218h150b255an580e33d7d1a4ba2d@mail.gmail.com> <5380c69c0909030555u15f157ceg25cefb5794aeb480@mail.gmail.com> From: Claus Ibsen Date: Sun, 18 Oct 2009 18:20:49 +0200 Message-ID: <5380c69c0910180920g30960eaau6c00f866a5bc7976@mail.gmail.com> Subject: Re: Global Error Handler Question. To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Really weird. We have unit tests running for ages in camel-spring testing t= his. But today they started failing after upgrading junit recently. Anyway I tracked down the issue with setting the global error handler and will fix it in short time. On Thu, Sep 3, 2009 at 2:55 PM, Claus Ibsen wrote: > Hi > > Is this still an issue for you? I am super bust and havent got time to > drill down. > As we got many error handling and global / route based tests I would > be surprised if something was wrong in camel. > > > > On Wed, Aug 26, 2009 at 12:18 PM, Bach > Christian wrote: >> Sure, I really appreciate your help. >> >> I had to take some (more or less sensitive :) ) snippets out, but this i= s essentially what it looks like : >> >> >> > =A0 =A0 =A0 =A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >> =A0 =A0 =A0 =A0xsi:schemaLocation=3D" >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0http://www.springframework.org/schema/bea= ns http://www.springframework.org/schema/beans/spring-beans-2.5.xsd >> =A0 =A0 =A0 =A0http://camel.apache.org/schema/spring http://camel.apache= .org/schema/spring/camel-spring.xsd"> >> >> =A0 =A0 =A0 =A0 >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0uri=3D"..= ......" /> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0...... >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0...... >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0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A0 =A0 =A0 =A0 >> >> =A0 =A0 =A0 =A0 >> >> =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 >> >> =A0 =A0 =A0 =A0.......... =A0 =A0 =A0some processor beans ........ >> >> >> =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 >> >> =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0${= SOME_HOME}/etc/config/log4j/log4j.properties >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >> =A0 =A0 =A0 =A0 >> >> >> I end up having a DeadLetterChannel error handler in the seda:bondfloorP= ricePipeline (the one which has set the error handler at route level) and t= he DefaultErrorHandler anywhere else, which is not what we would expect, ri= ght ? (The routes themselves are working nicely without error handling conf= igured.) >> >> Thank you, Christian. >> >> -----Original Message----- >> From: Claus Ibsen [mailto:claus.ibsen@gmail.com] >> Sent: Mittwoch, 26. August 2009 11:18 >> To: users@camel.apache.org >> Subject: Re: Global Error Handler Question. >> >> Hi >> >> It should really work as we got a ton of unit tests in relation to >> error handling. >> >> Could you post your spring xml file with the camel context and routes >> that you cannot get working? >> >> >> On Wed, Aug 26, 2009 at 11:02 AM, Bach >> Christian wrote: >>> Heya guys >>> >>> I am trying to install a global error handler by setting : >>> >>> >> errorHandlerRef=3D"deadLetterErrorHandler"> >>> >>> in the camelContext, according to >>> http://camel.apache.org/error-handler.html the error handler is expecte= d >>> to be inherited and being applicable in all the routes, ya ? >>> >>> But it is not, when inspecting stack traces I see the >>> DefaultErrorHandler still being applied in all my routes. When >>> configuring individual routes, like: >>> >>> >>> >>> things are working nicely and my stack traces for the particular route >>> do have the DeadLetterChannel installed. >>> >>> I must be doing something wrong in my attempt of globally configuring >>> matter. The Camel version used is 2.0.0 and the deadLetterErrorHandler >>> is configured like this: >>> >>> >> class=3D"org.apache.camel.builder.DeadLetterChannelBuilder"> >>> =A0 =A0 =A0 =A0 >>> =A0 =A0 =A0 =A0 >>> >>> >>> Any help appreciated, thx, Christian. >>> >>> This message is for the named person's use only. It may contain confide= ntial, proprietary or legally privileged information. If you receive this m= essage in error, please notify the sender urgently and then immediately del= ete the message and any copies of it from your system. Please also immediat= ely destroy any hardcopies of the message. >>> The sender's company reserves the right to monitor all e-mail communica= tions through their networks. >>> >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus > --=20 Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus