Situation:

I'm using jquery forms to submit a multipart to a JAX-RS service. So,
JQuery is using an iframe, and as a result error responses disappear.
All I get to see is the entity.

If I make a mistake such that CXF generates a WebApplicationException

e.g.

2011-11-23 21:59:09,885 [http-bio-15000-exec-30] WARN
org.apache.cxf.jaxrs.utils.JAXRSUtils - No multipart with content id
btArch found, request content type :
multipart/form-data;boundary=----WebKitFormBoundary1JsUh4wyAbhxFGfC
2011-11-23 21:59:09,885 [http-bio-15000-exec-30] WARN
org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper -
WebApplicationException has been caught : no cause is available

then there's no entity.

Is there some sort of exception mapper I can use to add some payload
to this case to indicate the error?

Reply via email to