Hi James,
please see inline...
On Thu, Feb 14, 2008 at 03:03:52PM +0100, James Weir wrote:
> Hi,
>
> I have recently ported to Jersey 0.5. All went well, however in the
> circumstances where I am throwing a WebApplicationException (error code
> 500), I receive a 200 code on the client side.
>
> My code on the server side:
>
> try {
> ...some code
> } catch (Exception ex) {
> logger.error("Creating the package",ex);
> throw new WebApplicationException(500);
> }
>
> I receive the following trace on the client side:
> 14:57:18,343 DEBUG [Thread-4] (MyPackageMsg.java:MyPackageMsg:121) -
> Return code from request: 200
>
> I am using the Jersey client to do the request:
> The code:
>
> ResponseInBound ri = r.content(pkg,
> "application/xml").accept("application/xml").post(ResponseInBound.class);
>
> // Set the response and return codes
> super.setHttpResponseCode(ri.getStatus());
> logger.debug("Return code from request: "+ri.getStatus());
>
> Has anyone else seen this behavior ?
Nope.
> I will create a simple example to try and reproduce this problem
It would be nice if you could file it as a bug at [1]
with the example attached as a test case.
Thank you very much,
~Jakub
[1]
https://jersey.dev.java.net/issues/
> Thanks
> James
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>