Claus Ibsen created CAMEL-26190:
-----------------------------------
Summary: camel-jgroups - a stream body fails with
NotSerializableException of the stream cache, with no hint to convert it first
Key: CAMEL-26190
URL: https://issues.apache.org/jira/browse/CAMEL-26190
Project: Camel
Issue Type: Bug
Components: camel-jgroups
Reporter: Claus Ibsen
Fix For: 4.24.0
Found while adding the catalog body types of jgroups and jgroups-raft
(CAMEL-24961, PR #28413).
h4. 1. A stream body fails with NotSerializableException
{{JGroupsProducer.process}} (main 2a465aa4814c, line 74 to 88) wraps the body
as is in an {{ObjectMessage}}. A stream body (with stream caching, a stream
cache class) is not Serializable and the send fails with a
NotSerializableException naming the stream cache class, with no hint that the
body should be converted (for example to byte[]) first. Checked on
4.24.0-SNAPSHOT with local JGroups channels.
Proposed: convert a stream body to byte[] before sending, or fail with an error
that says the body must be Serializable.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)