cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Mazza <gma...@talend.com>
Subject Re: response_code 500 ignored when set in JAXRSOutInterceptor.handleWriteException
Date Mon, 27 Feb 2012 19:39:21 GMT
Can you give a very generic version of that interceptor that would 
duplicate/demonstrate the problem?

Glen

On 02/27/2012 02:36 PM, Benji Shults wrote:
> I have a scenario where the call to writer.writeTo in
> JAXRSOutInterceptor.serializeMessage throws an exception.
>
> Before throwing the exception, the writer writes to the message's
> outputStream.
>
> When write.writeTo throws the exception, handleWriteException calls
> message.put(Message.RESPONSE_CODE, 500).
>
> However, my HTTP client is seeing the response come back with HTTP
> response code 200.
>
> The following is appended to the response that the writer put into the
> message's outputStream:
>
> Error serializing the response, please check the server logs, response
> class : UsageResponse.
>
> Benji
>


-- 
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza


Mime
View raw message