thanks Dan, yes, JAX-RS 2.0 Response.readEntity can do it,
Cheers, Sergey
On 15/11/13 18:29, Daniel Kulp wrote:

On Nov 15, 2013, at 12:55 PM, Ray Chen <[email protected]> wrote:

Hi all,

Currently, we are using the cxf-rt-frontend-jaxrs-2.3.7, jetty-http-7.2.2,

These are ancient versions.  Quite unsupported at this point.   Can you try 
with a more recent version of CXF and see if you still have an issue?

Thanks!
Dan



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


Reply via email to