users@jersey.java.net

Re: [Jersey] Problem: Jersey swallows all JAXP exceptions silently !

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 27 Jul 2009 10:14:22 +0200

On Jul 24, 2009, at 5:31 PM, Morten wrote:

> --- Den fre 24/7/09 skrev Paul Sandoz <Paul.Sandoz_at_Sun.COM>:
>>> Would it be helpful if I instead create a small
>>> hello-world-style example that reproduce the problem for you
>>> (I can properly do so in a day or so if needed) ?
>>
>> Yes, that would be most useful.
>
> Done (I work fast under weekend pressure apparently :-))
>
> See "https://jersey.dev.java.net/issues/show_bug.cgi?id=337". It
> comes with a zip with a netbeans project that reproduce the problem.
>
> Can you try it and let me know if you can reproduce it and check if
> this is information enough for you to try to have it fixed ?
>

Thanks, that was helpful.

The bug you logged is now fixed. Any IOException is logged and a 500
response status code is set. If one or more
bytes of a response entity has been written then setting the status
code will not have any effect but the response will be prematurely
terminated.

Paul.