[ 
https://issues.apache.org/jira/browse/CAMEL-26190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-26190.
---------------------------------
    Resolution: Fixed

Fixed by https://github.com/apache/camel/pull/29018 (merged to main as 
8002509c386f481a627cfb6e1cd4cf1a951c776b).

_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)

Reply via email to