cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaun Elliott (JIRA)" <>
Subject [jira] [Created] (CXF-3617) Automatic Type Converters for Restful Clients
Date Fri, 24 Jun 2011 12:39:47 GMT
Automatic Type Converters for Restful Clients

                 Key: CXF-3617
             Project: CXF
          Issue Type: Improvement
          Components: JAX-RS
            Reporter: Shaun Elliott

Given the following interface:
@Path( "execute" )
@Produces( "application/json" )
MyObject execute( MyObject myObject );

One must provide MessageBodyReader\Writer or face the following exception:
Exception in thread "main" org.apache.cxf.interceptor.Fault: .No message body writer found
for class : class
    at org.apache.cxf.jaxrs.client.ClientProxyImpl$BodyWriter.handleMessage(
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
    at org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(
    at org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(
    at $Proxy13.execute(Unknown Source)

Other competing libraries (such as Restlet) support automatic type mapping out of the box
via XStream and Jackson. Given CXF's compliance to JAX-RS it would be helpful if this boilerplate
type code were given out of the box too.

See here for more information:

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message