Re: [2.9.5] body=null after onException(_).handled(false)

2013-02-06 Thread Alex Anderson
Henryk, Sorry for the confusion - my error handler is written in Groovy, and the definition of the exception handler is as follows: // N.B. This method implicitly returns null def exception(Exchange exchange) { System.out.println("Exception: " + exchange.getIn()); } In Java this is eff

Re: [2.9.5] body=null after onException(_).handled(false)

2013-02-06 Thread Alex Anderson
On 5 February 2013 18:39, Henryk Konsek wrote: > Hi Alex, > >> When myBean.slip() throws SpecificException, If I print in.body in >> handleSpecificException(), I can see that it is not null. >> >> If I print it again in handleFailed() it is now null. > > Actually I can't reproduce this problem nei

Re: [2.9.5] body=null after onException(_).handled(false)

2013-02-05 Thread Henryk Konsek
Hi Alex, > When myBean.slip() throws SpecificException, If I print in.body in > handleSpecificException(), I can see that it is not null. > > If I print it again in handleFailed() it is now null. Actually I can't reproduce this problem neither under Camel 2.9.5 nor under Camel 2.10.1. Here is my

[2.9.5] body=null after onException(_).handled(false)

2013-02-05 Thread Alex Anderson
I have a route that looks like so: onCompletion().onFailureOnly().beanRef('myBean', 'handleFailed') from('seda:asdf') .onException(SpecificException) .beanRef('myBean', 'handleSpecificException') .handled(false) .end() .dynamicRouter('myB