Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The blow code in the HolderOutInterceptor will throw the OOM error when the inObjects is same with the outObjects.
Although this issue only happens when the Camel route set a wrong response message body, but it could be helpful if CXF can write some error log for it and prevent the OOM error.
if (!Boolean.TRUE.equals(message.get(Message.REQUESTOR_ROLE))) { List<MessagePartInfo> parts = op.getOutput().getMessageParts(); MessageContentsList inObjects = MessageContentsList.getContentsList(exchange.getInMessage()); if (inObjects != null) { for (int x = 0; x < inObjects.size(); x++) { Object o = inObjects.get(x); if (o instanceof Holder) { outObjects.set(x + 1, o); } } } ...... }
Attachments
Issue Links
- relates to
-
CAMEL-4113 Create a new message content list for the CXF response
- Resolved