users@jersey.java.net

Re: [Jersey] Error handling with Jersey

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 18 Dec 2009 13:48:59 +0100

On Dec 16, 2009, at 9:41 PM, Paul Sandoz wrote:
>>
>> Right. But how come building a Response with a non-200 status message
>> and providing a viewable entity gives an exception?
>>
>
> You found a regression!
>
> The cause is because the status and headers have already been
> written when the output stream is flushed, just before the forward
> to the JSP, and the finish method is not correctly detecting that
> status and headers have already been written. I will fix that
> tomorrow.
>

This is fixed in the trunk.

Paul.