The log with showAll=true provides following... Exchange[Id: ID-PG85238-43050-1395997134260-0-2, ExchangePattern: InOut, Properties: {CamelCreatedTimestamp=Fri Mar 28 14:30:18 IST 2014, CamelMessageHistory=[DefaultMessageHistory[routeId=httpRequest, node=to1]], CamelToEndpoint=log://?showAll=true}, Headers: {breadcrumbId=ID-PG85238-43050-1395997134260-0-1, CamelAcceptContentType=*/*, CamelCxfMessage=org.apache.cxf.message.XMLMessage@84f9cd67, CamelCxfRsOperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@5ce5ef67], CamelCxfRsResponseClass=class javax.ws.rs.core.Response, CamelCxfRsResponseGenericType=class javax.ws.rs.core.Response, CamelHttpCharacterEncoding=ISO-8859-1, CamelHttpMethod=POST, CamelHttpPath=/orders/4001/delta, CamelHttpUri=/orders/4001/delta, connection=keep-alive, Content-Length=100, content-type=application/json, Host=localhost:42107, operationName=createDelta, orderId=4001}, BodyType: org.apache.cxf.message.MessageContentsList, Body: [], Out: null: ]
Also the log before the exception was throw... 2014-03-28T14:30:18.000399+0530 [qtp1885697564-37] ERROR org.apache.camel.util.CamelLogger:215 log Failed delivery for (MessageId: ID-PG85238-43050-1395997134260-0-1 on ExchangeId: ID-PG85238-43050-1395997134260-0-2). Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException Message History --------------------------------------------------------------------------------------------------------------------------------------- RouteId ProcessorId Processor Elapsed (ms) [httpRequest ] [httpRequest ] [cxfrs://bean://restServer?bindingStyle=SimpleConsumer ] [ 62] [httpRequest ] [to1 ] [log:?showAll=true ] [ 6] [httpRequest ] [process3 ] [ref:processRequest ] [ 6] Exchange --------------------------------------------------------------------------------------------------------------------------------------- Exchange[ Id ID-PG85238-43050-1395997134260-0-2 ExchangePattern InOut Headers {breadcrumbId=ID-PG85238-43050-1395997134260-0-1, CamelAcceptContentType=*/*, CamelCxfMessage=org.apache.cxf.message.XMLMessage@84f9cd67, CamelCxfRsOperationResourceInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@5ce5ef67], CamelCxfRsResponseClass=class javax.ws.rs.core.Response, CamelCxfRsResponseGenericType=class javax.ws.rs.core.Response, CamelHttpCharacterEncoding=ISO-8859-1, CamelHttpMethod=POST, CamelHttpPath=/orders/4001/delta, CamelHttpUri=/orders/4001/delta, CamelRedelivered=false, CamelRedeliveryCounter=0, connection=keep-alive, Content-Length=100, content-type=application/json, Host=localhost:42107, operationName=createDelta, orderId=4001} BodyType org.apache.cxf.message.MessageContentsList Body [] ] Stacktrace --------------------------------------------------------------------------------------------------------------------------------------- java.lang.NullPointerException: null *RestServices.java* @Path("/orders/{orderId}") public class RestServices { @POST @Consumes("application/json") @Produces("application/json") @Path("/delta") public Response createDelta() { return null; } } -- View this message in context: http://camel.465427.n5.nabble.com/Issues-with-cxfrs-using-json-tp5749474p5749486.html Sent from the Camel - Users mailing list archive at Nabble.com.