Hi, I'm using Camel 2.12.0 in OSGI container. I am using cxfrs as a consumer but I can't handle javax.xml.stream.XMLStreamException which is thrown by cxfrs in case failure to parse the request.
If I throw the exception XMLStreamException it goes to onException though. I read that cxf can use fault interceptors. Should I create a fault interceptor and forget about handling XMLStreamException using onException? Please, advise. <camelContext id="camel" xmlns="http://camel.apache.org/schema/blueprint" autoStartup="true" trace="false"> <onException> <exception>javax.xml.stream.XMLStreamException</exception> <handled> <constant>true</constant> </handled> <log message="\n\n******** Inside exception handler *******\n\n"/> <transform> <constant>{ "message":"failure" } </constant> </transform> </onException> <route id="notification_prod" streamCache="true"> <from uri="cxfrs://bean://rsNotificationServer?headerFilterStrategy=#dropAllMessageHeadersStrategy&bindingStyle=SimpleConsumer&throwExceptionOnFailure=false&loggingFeatureEnabled=true&httpClientAPI=true" /> <to uri="log:body?level=INFO" /> <setHeader headerName="Accept"> <constant>application/json</constant> </setHeader> <to uri="bean:notifyUtil?method=getNotifyIndividualResponse&synchronous=true" /> <removeHeaders pattern="Content-Length*" /> </route> </camelContext> -- View this message in context: http://camel.465427.n5.nabble.com/Unable-to-handle-CXFRS-exception-using-onException-tp5778104.html Sent from the Camel - Users mailing list archive at Nabble.com.