RE: Fault thrown in Rest In-Interceptor not handled by ExceptionMapper

2009-12-18 Thread Sergey Beryozkin
users@cxf.apache.org Subject: Re: Fault thrown in Rest In-Interceptor not handled by ExceptionMapper Thanks all. CustomOutFaultInterceptor + ResponseHandler handles all use cases nicely for me. But, I notice the incoming Message to both is missing most properties. In particular, QUERY_STRING is not set. I

Re: Fault thrown in Rest In-Interceptor not handled by ExceptionMapper

2009-12-18 Thread Mike O'Neil
gt;>>         >>>> >>>> >>>> >>>> And my interceptor looks like: >>>> >>>> public class MyInterceptor extends AbstractPhaseInterceptor { >>>>     public FormatSettingInterceptor() { >>>>         super(Pha

Re: Fault thrown in Rest In-Interceptor not handled by ExceptionMapper

2009-12-17 Thread vickatvuuch
ks like: >>> >>> public class MyInterceptor extends AbstractPhaseInterceptor { >>>     public FormatSettingInterceptor() { >>>         super(Phase.PRE_STREAM); >>>     } >>> >>>     @Override >>>     public void h

Re: Fault thrown in Rest In-Interceptor not handled by ExceptionMapper

2009-12-17 Thread vickatvuuch
gt;>> >>> public class MyInterceptor extends AbstractPhaseInterceptor { >>>     public FormatSettingInterceptor() { >>>         super(Phase.PRE_STREAM); >>>     } >>> >>>     @Override >>>     public void handle

RE: Fault thrown in Rest In-Interceptor not handled by ExceptionMapper

2009-12-17 Thread Sergey Beryozkin
filter and override a Response returned by the default mapper Sergey -Original Message- From: Mike O'Neil [mailto:mton...@gmail.com] Sent: 17 December 2009 21:12 To: users@cxf.apache.org Subject: Re: Fault thrown in Rest In-Interceptor not handled by ExceptionMapper Thanks for

Re: Fault thrown in Rest In-Interceptor not handled by ExceptionMapper

2009-12-17 Thread Mike O'Neil
PRE_STREAM); >>     } >> >>     @Override >>     public void handleMessage(Message message) throws Fault { >>             throw new Fault("Not handled by ExceptionMapper!"); >>     } >> } >> >> Any insight or help would be appreciated. >> >> Much thanks, >> Mike >> >> > > -- > View this message in context: > http://old.nabble.com/Fault-thrown-in-Rest-In-Interceptor-not-handled-by-ExceptionMapper-tp26833555p26834406.html > Sent from the cxf-user mailing list archive at Nabble.com. > >

Re: Fault thrown in Rest In-Interceptor not handled by ExceptionMapper

2009-12-17 Thread vickatvuuch
uot;Not handled by ExceptionMapper!"); > } > } > > Any insight or help would be appreciated. > > Much thanks, > Mike > > -- View this message in context: http://old.nabble.com/Fault-thrown-in-Rest-In-Interceptor-not-handled-by-ExceptionMapper-tp26833555p26834406.html Sent from the cxf-user mailing list archive at Nabble.com.

Fault thrown in Rest In-Interceptor not handled by ExceptionMapper

2009-12-17 Thread Mike O'Neil
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.: error message Is that the expected behavior? My server is set up like: