This content has been marked as final.
Show 2 replies
-
1. Re: http response is getting to null immediately in camel route
davsclaus Jun 9, 2016 10:50 AM (in response to sonyjop)1 of 1 people found this helpfulMaybe the response is stream based and then you can only read it once, unless you turn on stream caching, or convert the body to a String type
-
2. Re: http response is getting to null immediately in camel route
sonyjop Jun 10, 2016 6:54 AM (in response to davsclaus)Thanks a lot Claus Isben,
Infact I forgot to update this ticket as solved. I made a mistake by keeping a log before the unmarshalling of the response. As you mentioned this cuased the stream to go NULL and hence the problem.
Also, I have noticed that the Stream goes NULL if we enable the trace in the Hawtio console.