Hi all,
Currently, we are using the cxf-rt-frontend-jaxrs-2.3.7, jetty-http-7.2.2,
and jsr311-api-1.1.1 for handling the rest call.
But when exception happens, we could not recover the json payload from the
ServerWebApplicationException.
public <T> T invoke(String httpMethod, Object body, Class<T>
responseClass)
{
Response r = doInvoke(httpMethod, body, responseClass, responseClass);
if ((r.getStatus() >= 400) && (responseClass != null)) {
throw new ServerWebApplicationException(r);
}
return responseClass.cast(r.getEntity());
}
I wonder if anyone experience the similar things like that.
Thanks very much for your time to look at it.
Ray