Hi,
due to lazy creation of Out message in DefaultExchange.getOut()
implementation, HazelcastComponentHelper.copyHeaders() method inadvertently
creates an Out message if one has not been set yet, which then creates
problems in CamelInvocationHandler.getBody() which then returns null as a
result.
There should be a check in copyHeaders() to see if Out exists, e.g.:
// set out headers
if (ex.hasOut()) {
ex.getOut().setHeaders(headers);
}
Tomislav
--
View this message in context:
http://camel.465427.n5.nabble.com/HazelcastComponentHelper-copyHeaders-issue-tp4825799p4825799.html
Sent from the Camel - Users mailing list archive at Nabble.com.