Hi Can you post more details such as your route etc. I cannot reproduce the issue from the snippet you have posted so far.
On Mon, Oct 1, 2012 at 8:50 PM, SteveSmall <st...@xfact.com> wrote: > Current Camel version: 2.10.1 > > We are currently seeing an issue with the doTry/doCatch camel routing in our > Spring XML configuration. The following is an example of our usage: > > <camel:doTry> > <camel:to uri="direct:routeA"/> > > <camel:doCatch> > <camel:exception>java.lang.Exception</camel:exception> > <camel:inOnly uri="direct:routeB"/> > </camel:doCatch> > </camel:doTry> > > When an exception occurs in "routeA" it correctly comes back to the > "doCatch" section: > * > DEBUG org.apache.camel.processor.TryProcessor - The exception is handled: > true for the exception: org.apache.camel.RuntimeCamelException caused by: > org.apache.cxf.interceptor.Fault: Could not send Message. > DEBUG org.apache.camel.processor.SendProcessor - >>>> > Endpoint[direct://routeB] Exchange[JmsMessage[JmsMessageID: > ID:abc.xyz.com-46816-1349114497632-4:238:1:1:1]]* > > We see this coming back in logs. However, nothing in "routeB" gets executed. > The routing just dies. It seems like it "says" it's routing to the endpoint, > but never does. > > I came across https://issues.apache.org/jira/browse/CAMEL-5356 which looks > similar to this issue, but I tried throwing different exceptions and > received the same result indicating it's not specific to CXF. Is there > something wrong with the implementation above? > > I reverted back to version 2.8.3 and do not see this issue anymore (with any > kind of exception), so it looks like it's new to recent releases. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Issue-with-doTry-doCatch-not-routing-correctly-tp5720325.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen