RE: exception handling in karaf differs to my test

2017-09-05 Thread Matthew Shaw
Thanks Mary, yes I did separate it from routing logic and it has fixed my issue, cheers. -Original Message- From: Mary Cochran [mailto:mcoch...@redhat.com] Sent: Wednesday, 6 September 2017 8:03 AM To: users@camel.apache.org Subject: Re: exception handling in karaf differs to my test

Re: exception handling in karaf differs to my test

2017-09-05 Thread Mary Cochran
Have you tried keeping the onException section disconnected from your original route and placing it above the route. So more like this? onException(SoapFault.class).handled(true) .process(new Processor() { @Override public void process(Exchange exchange) throws Except

exception handling in karaf differs to my test

2017-08-28 Thread Matthew Shaw
Hi All, I have a strange error. I am using camel 2.20.1 and I have a test working perfectly for a route which uses onException to handle a known exception from invoking a web service. However, if I deploy this into apache karaf, the onException handler never gets entered into. I am running cxf