cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike O'Neil" <>
Subject Fault thrown in Rest In-Interceptor not handled by ExceptionMapper
Date Thu, 17 Dec 2009 19:24:44 GMT
I have an ExceptionMapper which handles exceptions from my Rest
service just fine. However when my "In" Interceptor throws a Fault,
the ExceptionMapper does not handle it. Instead I get the standard
(ugly) XML, e.g.:


Is that the expected behavior? My server is set up like:

<jaxrs:server id="service" address="/rest">
            <bean parent="myService" />
            <ref bean="myInterceptor"/>
            <ref bean="restExceptionMapper"/>

And my interceptor looks like:

public class MyInterceptor extends AbstractPhaseInterceptor<Message> {
    public FormatSettingInterceptor() {

    public void handleMessage(Message message) throws Fault {
            throw new Fault("Not handled by ExceptionMapper!");

Any insight or help would be appreciated.

Much thanks,

View raw message