Re: JCS-244

Thomas Vandahl <[email protected]> Mon, 9 Mar 2026 13:34:00 +0100
Newsgroups gmane.comp.jakarta.commons.devel
Message-ID <[email protected]>
Hi Florin,

> Am 06.03.2026 um 22:21 schrieb Florin Pop <[email protected]>:
> 
> Hi there,
> 
> we have an issue with the LateralTCP cache listener and proposing a fix for
> it via https://github.com/apache/commons-jcs/pull/407
> 
> I need some guidance to finalize this, it is my first contribution to Open
> Source. Can I have a short chat with someone from the team?

Thanks for bringing the issue to our attention and thanks for your contribution. See my comments on the PullRequest and JCS-244.
I prefer to fix the problem a bit closer to its source. The code in IElementSerializer already contained the necessary asserts to handle data integrity issues. I converted the asserts to explicit shows of IOExceptions and added a test to org.apache.commons.jcs4.utils.serialization.StandardSerializerUnitTest. The problem can be reproduced on the stream/channel level. There is no need for a socket.

Bye, Thomas