Re: Unable to handle CXFRS exception using onException

2016-02-24 Thread Sergey Beryozkin
This is I'm not sure about - perhaps a current Camel message/exchange can be accessed via a thread local storage and the exception set there ? Cheers, Sergey On 24/02/16 16:08, M.Ismail wrote: Hi, I have found that I the exception is escaped and in order to handle it i had to create a CXF Exce

Re: Unable to handle CXFRS exception using onException

2016-02-24 Thread M.Ismail
Hi, I have found that I the exception is escaped and in order to handle it i had to create a CXF ExceptionMapper as per the below. Is this a normal behavior? Can I re-throw the exception handled by the ExceptionMapper so that Camel can handle it? public class MyExceptionMapper implements Except

Re: Unable to handle CXFRS exception using onException

2016-02-23 Thread Sergey Beryozkin
Hi The escaped exception can indeed be handled by CXF fault interceptors, but also by JAX-RS ExceptionMapper, and on the client side, by ResponseExceptionMapper. I'm not sure why onException is not triggered (you said below that it actually goes into onException but the subject implies other