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 3B87E4860 for ; Thu, 7 Jul 2011 14:21:44 +0000 (UTC) Received: (qmail 82009 invoked by uid 500); 7 Jul 2011 14:21:43 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 81968 invoked by uid 500); 7 Jul 2011 14:21:43 -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 81960 invoked by uid 99); 7 Jul 2011 14:21:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2011 14:21:43 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.210.45 as permitted sender) Received: from [209.85.210.45] (HELO mail-pz0-f45.google.com) (209.85.210.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2011 14:21:38 +0000 Received: by pzk30 with SMTP id 30so324632pzk.32 for ; Thu, 07 Jul 2011 07:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=rysQd5bWVQvQimMsCMRCSg2BG63kWxZ8G6ECjp2mXdY=; b=vcmxB6/pOd8vewAhF9S66SzLMrQO3r84KmxVwC82uf9pBClQQOIKRekqhJXj/UDFJU RWrneTqVOqdz/oVz/R5fW6IUoyFYTnM8p4ROGcbCMLpHi4a6y8jpCbW/enMbZH7DmxIY WcSkIZybK8U4sB4l9+t7FqneM5C82E1PElHoo= Received: by 10.68.52.133 with SMTP id t5mr1222495pbo.303.1310048478178; Thu, 07 Jul 2011 07:21:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.62.10 with HTTP; Thu, 7 Jul 2011 07:20:57 -0700 (PDT) In-Reply-To: References: <1308908170429-4520468.post@n5.nabble.com> <1309168638519-4527689.post@n5.nabble.com> <1309192213710-4528996.post@n5.nabble.com> <1309507985745-4541328.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 7 Jul 2011 16:20:57 +0200 Message-ID: Subject: Re: intercept using adviceWith() To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The JIRA is https://issues.apache.org/jira/browse/CAMEL-4184 And I am currently testing a possible fix. Keep an eye on the JIRA ticket for updates. And when/if a commit with a fix is committed then please give a test on your system with the latest source code. On Thu, Jul 7, 2011 at 12:27 PM, Claus Ibsen wrote: > Hi > > I have reproduced the issue. The problem is when you use context > scoped onException. > If you define the onException on each route, then it works. > > I will log a JIRA and see what can be done. > > > > On Fri, Jul 1, 2011 at 10:13 AM, woggle23 wrot= e: >> Hi Claus >> >> I tried moving the adviceWith() to the actual test method, still no joy = I'm >> afraid. It still works fine with a single interceptor, adding the 2nd st= ill >> causes problems though; the message is still intercepted but the error >> handling doesn't work (as before). >> >> Did you try running this yourself? If so, what version of Camel were you >> using? The above error description relates to version 2.7.0. Running wit= h >> version 2.8-SNAPSHOT yields the following stackdump: >> >> java.lang.NoSuchMethodError: >> org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/O= bject;)Ljava/lang/String; >> =A0 =A0 =A0 =A0at org.slf4j.impl.Log4jLoggerAdapter.debug(Log4jLoggerAda= pter.java:223) >> =A0 =A0 =A0 =A0at >> org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.= java:609) >> =A0 =A0 =A0 =A0at >> org.woggle23.DatabaseErrorTest.createCamelContext(DatabaseErrorTest.java= :69) >> =A0 =A0 =A0 =A0at org.apache.camel.test.CamelTestSupport.setUp(CamelTest= Support.java:115) >> =A0 =A0 =A0 =A0at junit.framework.TestCase.runBare(TestCase.java:132) >> =A0 =A0 =A0 =A0at org.apache.camel.test.TestSupport.runBare(TestSupport.= java:65) >> =A0 =A0 =A0 =A0at junit.framework.TestResult$1.protect(TestResult.java:1= 10) >> =A0 =A0 =A0 =A0at junit.framework.TestResult.runProtected(TestResult.jav= a:128) >> =A0 =A0 =A0 =A0at junit.framework.TestResult.run(TestResult.java:113) >> =A0 =A0 =A0 =A0at junit.framework.TestCase.run(TestCase.java:124) >> =A0 =A0 =A0 =A0at junit.framework.TestSuite.runTest(TestSuite.java:232) >> =A0 =A0 =A0 =A0at junit.framework.TestSuite.run(TestSuite.java:227) >> =A0 =A0 =A0 =A0at >> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.jav= a:83) >> =A0 =A0 =A0 =A0at >> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.jav= a:62) >> =A0 =A0 =A0 =A0at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe= t(AbstractDirectoryTestSuite.java:140) >> =A0 =A0 =A0 =A0at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstr= actDirectoryTestSuite.java:127) >> =A0 =A0 =A0 =A0at org.apache.maven.surefire.Surefire.run(Surefire.java:1= 77) >> =A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Me= thod) >> =A0 =A0 =A0 =A0at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:39) >> =A0 =A0 =A0 =A0at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:25) >> =A0 =A0 =A0 =A0at java.lang.reflect.Method.invoke(Method.java:597) >> =A0 =A0 =A0 =A0at >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Suref= ireBooter.java:345) >> =A0 =A0 =A0 =A0at >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java= :1009) >> >> Updated test case: >> http://camel.465427.n5.nabble.com/file/n4541328/unittestissue.zip >> unittestissue.zip >> >> Cheers >> >> Matt >> >> -- >> View this message in context: http://camel.465427.n5.nabble.com/intercep= t-using-adviceWith-tp4520468p4541328.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> > > > > -- > Claus Ibsen > ----------------- > FuseSource > Email: cibsen@fusesource.com > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ > --=20 Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/