Hi all,
I'm fairly new Camel user, but I'm pretty sure this is an issue:
I'm using a POJO Aggregator to aggregate the response from an Enrich
EAI. The strategy method has two parameters, one for the 'oldExchange'
message body and the other for the 'newExchange' message body; in my
case a Map and an Object respectively.
The problem is that when the response is null, before my aggregation
strategy method is invoked, message body has to be obtained from the
'newExchange' which is not null, but the in-message body is. The
object is extracted with "mandatoryBodyExpression" which throws
exception:
"InvalidPayloadException: No body available of type: java.lang.Object
on: Message: [Body is null]."
Is there a reason to require mandatory body in response? In this case
I guess null responses cannot be handled, so probably it shouldn't.
Regards,
Radu B