race.com]
> Sent: Monday, November 02, 2015 6:36 PM
> To: users@camel.apache.org
> Subject: Re: How to access payload from REST 404 reply in cxfrs?
>
> Thanks again, Sergey. I was able to register the provider using:
>
> class="org.codehaus.jackson.jaxrs.J
plication. In
> order to preserve it you can enable stream caching on the route.
>
> Thanks,
> Kalyan
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-access-payload-from-REST-404-reply-in-cxfrs-tp5773325p5773336.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
. In
order to preserve it you can enable stream caching on the route.
Thanks,
Kalyan
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-access-payload-from-REST-404-reply-in-cxfrs-tp5773325p5773336.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Thanks again, Sergey. I was able to register the provider using:
However, it looks like there is no content available via the exception. Using
the code:
InvocationTargetException exception =
exchange.getProperty(Exchange.EXCEPTION_CAUGHT,
InvocationTargetException.class);
NotF
Thanks again, Sergey. I was able to register the provider using:
However, it looks like there is no content available via the exception. Using
the code:
InvocationTargetException exception =
exchange.getProperty(Exchange.EXCEPTION_CAUGHT,
InvocationTargetException.class);
N
As I said you will need to register a JAXRS provider capable of
converting it, though I'm not sure right now what the syntax is with
cxfrs:bean:webService, looks like from
http://camel.apache.org/cxf-bean-component.html
it is something like
cxfrs:bean:webService?providers=#jackson
Cheers, Ser
Thank you very much for your quick help, Sergey!
I tried your solution and now get the following exception:
[Camel (rraaCamelContext) thread #2 - seda://from_rraa] ERROR
org.apache.cxf.jaxrs.utils.JAXRSUtils - No message body reader has been found
for class my.class.path.CrewServiceDeniedError,
Hi
If you can access NotFoundException then what you can do next is to do
ErrorInfo errorInfo = exception.getResponse().readEntity(ErrorInfo.class)
where ErrorInfo is a custom class capturing a JSON error response, you'd
also need to register Jackson or other provider to get it converted. Or
r
I put this up on stackoverflow... if you have cxfrs expertise, could you please
read this?
How to access payload from REST 404 response in Camel cxfrs?
http://stackoverflow.com/q/33445686/240342?sem=2
Thanks,
-Steve