MessageBodyWriterInterceptor not getting invoked when an ExceptionMapper is executed

Solution Verified - Updated -


  • I am using a RESTEasy service and wanted to capture both raw input and output from and to the service. I have a MessageBodyWriterInterceptor that I'd like to be invoked for every response, but I've discovered that if one of my ExceptionMappers creates a response, the MessageBodyWriterInterceptor is not invoked. How can I make the MessageBodyWriterInterceptors be invoked in this scenario?


  • JBoss Enterprise SOA Platform 5.x
  • JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content