users@jersey.java.net

Re: [Jersey] Response.status() always throws UnsupportedOperationException?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 15 Dec 2008 12:11:46 +0100

Hi Gili,

To clarify this is when the client side is utilized independently of
the server side.

Yes, we need to support the response builder in such circumstances.
Could you log an issue?

Thanks,
Paul.

On Dec 14, 2008, at 9:39 PM, Gili wrote:

>
> Paul,
>
> When Jersey-Multipart can't find a MessageBodyWrite it invokes:
>
> throw new WebApplicationException(new IllegalArgumentException("No
> MessageBodyWriter for body part of type '" +
> bodyEntity.getClass().getName()
> + "' and media type '" + bodyMediaType + "'"));
>
> Under the hood this invokes:
>
> Response.status() which invokes ResponseBuilder.newInstance() which
> invokes:
> RuntimeDelegate.getInstance().createResponseBuilder()
>
> where RuntimeDelegate.getInstance() returns
> com.sun.ws.rs.ext.RuntimeDelegateImpl and sure enough
> createResponseBuilder() always throws UnsupportedOperationException().
>
> I assume you plan on implementing this method in the near future?
>
> Thanks,
> Gili
> --
> View this message in context: http://n2.nabble.com/Response.status%28%29-always-throws-UnsupportedOperationException--tp1655528p1655528.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>