Some cache objects aren't implement Serializable interface

Description

Hello Team,

I already described this issue in https://hibernate.atlassian.net/browse/HHH-15064 but it was closed. The issue is still reproduceable with Hibernate 6.0.1.

I'm trying to integrate Redisson project with Hibernate 6.0.0 CR1, but getting errors in attached log file.

org.hibernate.query.internal.QueryParameterBindingsImpl$ParameterBindingsMementoImpl is still doesn’t implement Serializable interface.

Log file with error attached.

Attachments

2
  • 13 May 2022, 06:33 AM
  • 12 May 2022, 01:21 PM

Activity

Show:

Christian BeikovMay 13, 2022 at 10:57 AM

Thanks a lot, I’ll look into this as soon as possible!

Nikita KoksharovMay 13, 2022 at 6:37 AM
Edited

I attached the test - redisson-hibernate-6.zip. To run it start h2 database and Redis database and then test.cmd. The problem is that key object passed to org.hibernate.cache.spi.support.StorageAccess#getFromCache method can’t be serialized completely and this causes the exception.

Could you please make org.hibernate.query.internal.QueryParameterBindingsImpl.ParameterBindingsMementoImpl serializable? or even better org.hibernate.cache.spi.QueryKey.ParameterBindingsMemento interface.

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created May 12, 2022 at 1:21 PM
Updated May 25, 2022 at 9:47 AM
Resolved May 13, 2022 at 11:39 AM

Flag notifications