My interface that is implemented by my impl class looks something like this
@POST
@Path("/callA/{A}")
public FObj invokeA(@PathParam("A") int a,FObj fobj);
And my customRouteBuilder
is routing the request to the above exposed service
.choice().when().simple("${header.operationName} == 'CallA'")
.to("bean:BeanA?method=invokeA")
But when I hit the service from Rest client by setting the object from payload and also path param i get 500 Internal server error.
org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange Caused by: org.apache.camel.InvalidPayloadException: No body available of type: int but has value: com.dev.tp.FObj