maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: JAX-RS handling an exception in the middle of an output writer
Date Tue, 26 Feb 2013 15:18:21 GMT
That's true. I obviously wasn't awake.

On Tue, Feb 26, 2013 at 9:15 AM, Stephen Connolly
<stephen.alan.connolly@gmail.com> wrote:
> This is not a Maven problem...
>
>
> On 26 February 2013 14:08, Benson Margulies <bimargulies@gmail.com> wrote:
>
>> So, I've absently-constructed the following problem.
>>
>> I've got a JAX-RS service that does, essentially, all of its work in a
>> StreamingOutput object. It also has an error mapper that produces a
>> Json body to go with the 400 status code in the error response.
>>
>> You can see where this goes: the code succeeds in writing *some* of
>> the output, encounters an exception, and then sets up the error
>> response. CXF dutifully serializes it, resulting in a mess consisting
>> of the beginning of the original output followed by the error output.
>>
>> Is this a CXF problem? Does the standard offer any guidance?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message