How to get WebApplicationException from custom abstractphaseinterceptor ?
Issue
-
I've written a custom
abstractphaseinterceptorto perform some validation on aJSONpayload coming back from acxfclient call. When the schema validation fails, I am throwing aSchemaValidationExceptionbut this seems to be getting either bypassed or swallowed up, so the chain moves on to the next interceptor and attempts to unmarshal my data (which isn't the expected type). This causes me to instead get aResponseProcessingExceptionin my Exception handler on my route instead. -
I would expect if I throw a fault it would be intercepted and handled. I also tried setting handleFault to true on my dsl route without any success.
Environment
- Red Hat JBoss Fuse
- 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
