users@jersey.java.net

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

From: Gili <cowwoc_at_bbs.darktech.org>
Date: Sun, 14 Dec 2008 12:39:45 -0800 (PST)

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.