[
https://issues.apache.org/jira/browse/CAMEL-26190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18136893#comment-18136893
]
Claus Ibsen commented on CAMEL-26190:
-------------------------------------
PR: https://github.com/apache/camel/pull/29018
A stream (stream cache, InputStream, Reader), a file from the file component
and a Path are now sent as a byte[] of their content. Any other body that is
not Serializable fails with an InvalidPayloadException that says to convert it
first. Serializable bodies, including java.io.File, are sent as before.
_Claude Code on behalf of Claus Ibsen (davsclaus)_
> 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
> Assignee: Claus Ibsen
> Priority: Minor
> 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)