Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 66321 invoked from network); 22 Feb 2010 04:03:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2010 04:03:36 -0000 Received: (qmail 54661 invoked by uid 500); 22 Feb 2010 04:03:35 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 54611 invoked by uid 500); 22 Feb 2010 04:03:35 -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 54601 invoked by uid 99); 22 Feb 2010 04:03:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Feb 2010 04:03:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.217.211 as permitted sender) Received: from [209.85.217.211] (HELO mail-gx0-f211.google.com) (209.85.217.211) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Feb 2010 04:03:24 +0000 Received: by gxk3 with SMTP id 3so5587gxk.13 for ; Sun, 21 Feb 2010 20:03:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=qBIXjWF/PjhceRL8/XKtALRR6KaHq9fxwMnksIU/j6o=; b=Lq+hd8PxU9LaduIcD9EGGwYmAg/5TkZK/zdt9EzMohvLBqmgEPq3SuHIKICRwG0Uce BAIjmS5dyK1Pwh37FvG7k3LQFbWnJdZhSNRvppxQNnLyr4w/OkbdyVhIjnuJIjoegbgr 4FgRzyMnuUdGWd5brvGjlGq9UvvV6yTlWIRcI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=p5C0ipVLA91c4GaOKFWqjNT6t03LE3I8rWXVoAhbWNNiz535ppi0mPmsyeIoAQjARN awT0vKUQZYF8D2ZLTVR6WAWwXLQiUZOwhlRb6fO4hOkR4O7rjTEreSAFxGSMJ7VBf+bX sglQKvnuetcPQm4I+IlUFejB1e8D2QFAT4+c8= Received: by 10.101.44.19 with SMTP id w19mr257457anj.82.1266811382918; Sun, 21 Feb 2010 20:03:02 -0800 (PST) Received: from ?192.168.0.158? ([123.116.36.127]) by mx.google.com with ESMTPS id 16sm2915308gxk.5.2010.02.21.20.02.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 21 Feb 2010 20:03:00 -0800 (PST) Message-ID: <4B8201F0.2050006@gmail.com> Date: Mon, 22 Feb 2010 12:02:56 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: onException not returning a response References: <27629416.post@talk.nabble.com> <27637394.post@talk.nabble.com> <5380c69c1002180349n414d85ah95cd6c82b170b921@mail.gmail.com> <27647741.post@talk.nabble.com> <5380c69c1002190123y28c4f51ew1dd7b9b2cd3561d3@mail.gmail.com> In-Reply-To: <5380c69c1002190123y28c4f51ew1dd7b9b2cd3561d3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, It may relate to the stream cache strategy, and you need to consider to switch to Fuse version that Claus suggested, it will more easy for you when you upgrade the version of SMX :). Willem Claus Ibsen wrote: > On Fri, Feb 19, 2010 at 12:40 AM, raulvk.soa wrote: >> Hi Claus, >> >> In our recent tests, we introduced a TraceInterceptor stategy, and all of a >> sudden it worked like a charm! (it sent the response back to the client). >> Nothing else was changed. We couldn't believe what was going on, so we tried >> removing it and putting it back again several times with exactly the same >> results! Why do you think this is? >> > > Hard to tell. Restarting SMX may also be an issue. And or if cache / > data folders has been wiped out as well etc. > >> Is this is related to the servicemix-camel component? Any issues that come >> to mind which have been resolved since the 2009.01 version, that could >> justify this behaviour? >> > > Sorry I don't track that component closely. You gotta ask at the SMX > forum about it. > > I still think its a bit "insane" running in production with these old > Apache releases of SMX. > > You should consider switching to use the FUSE releases as we release > much more often than Apache. > They are free of charge and you can download them freely at our > website. And they are also published to our maven repo. > > > >> Thanks >> Ra�l. >> >> >> >> Claus Ibsen-2 wrote: >>> On Thu, Feb 18, 2010 at 12:38 PM, raulvk.soa wrote: >>>> Any clues on what could be happening? >>>> >>>> >>>> raulvk.soa wrote: >>>>> Hi, >>>>> >>>>> We are having trouble migrating from Camel 1.4.0 (bundled with >>>>> ServiceMix >>>>> 3.2.2) to Camel 1.6.0 (SMix 3.3.1). Our only difficulty is with the >>>>> exception handling. >>>>> >>>>> Before calling a Camel validator, we have the following exception >>>>> handling >>>>> logic: >>>>> >>>>> onException(ValidationException.class).handled(false) >>>>> >>>>> .setProperty("errorCode").constant("A001").setProperty("description").constant("Validation >>>>> Error") >>>>> .setProperty("system").constant("ServiceMix") >>>>> >>>>> .to("log:ReceiveOrders.ValidationError?level=WARN&showAll=true") >>>>> .convertBodyTo(String.class).to("xslt:createExceptionMessageForClient.xsl").convertBodyTo(DOMSource.class) >>>>> >>>>> .to("log:ReceiveOrders.ReturnedMessage?level=WARN&showAll=true") >>>>> >>>>> .to("direct:transformResponse").convertBodyTo(DOMSource.class) >>>>> >>>>> .to("direct:wrapResponse").convertBodyTo(DOMSource.class) >>>>> >>>>> .to("log:ReceiveOrders.RouteFinished?level=WARN&showAll=true"); >>>>> >>>>> We need the message to be sent back on to the JBI Bus (the route starts >>>>> with a from("jbi:...") endpoint), but it is being sucked up by the >>>>> DeadLetterQueue, and the JBI client times out. With Camel 1.4.0 it >>>>> worked >>>>> like a charm (of course, we had no "handled" instruction because it >>>>> wasn't >>>>> supported back then), but now we can't get it to unwind the stack and >>>>> return the response to the client. >>>>> >>>>> There is no errorHandler declared, only another >>>>> onException(Exception.class), which handles all unmanaged exceptions. >>>>> >>>>> Having tried numerous configurations to make it work, we resort to the >>>>> wonderful & active Camel forum to shed some light on this case. Some of >>>>> the combinations we have attempted with no luck are: >>>>> >>>>> 1. errorHandler(noErrorHandler()) >>>>> 2. putting a processor at the end to copy the in message to the out >>>>> message >>>>> 3. encapsulating all the routing logic into another direct: route, >>>>> and >>>>> calling that from within the onException. >>>>> 4. tuning the handled parameter >>>>> 5. putting transform() at the end. >>>>> >>>>> Can someone give us a hand? >>>>> >>> Have you tried with the latest SMX 3.3 code? eg 3.3-SNAPSHOT >>> >>> Frankly Apache ServiceMix is not very often released and I would >>> suggest to consider using the FUSE based distributions. >>> We release far more often SMX versions. >>> >>> For example you can see the release notes which has the latest release >>> from about 1 month ago. >>> http://fusesource.com/wiki/display/ProdInfo/FUSE+ESB+v3.3+Release+Notes >>> >>> I know there are fixed in there for servicemix-camel which improves >>> the integration between the two of them, also in relation to error >>> handling. >>> You can check the release notes yourself and see. >>> >>> >>> >>> >>>>> Many thanks! >>>>> Raul. >>>>> >>>> -- >>>> View this message in context: >>>> http://old.nabble.com/onException-not-returning-a-response-tp27629416p27637394.html >>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>> >>>> >>> >>> >>> -- >>> Claus Ibsen >>> Apache Camel Committer >>> >>> Author of Camel in Action: http://www.manning.com/ibsen/ >>> Open Source Integration: http://fusesource.com >>> Blog: http://davsclaus.blogspot.com/ >>> Twitter: http://twitter.com/davsclaus >>> >>> >> -- >> View this message in context: http://old.nabble.com/onException-not-returning-a-response-tp27629416p27647741.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> > > >