[hibernate-issues] [JIRA] (HHH-13503) EhCache Java11

JP (JIRA) jira at hibernate.atlassian.net
Wed May 13 12:37:04 EDT 2020


JP ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ebc14d09ce9ee0b89b936c6 ) *commented* on HHH-13503 ( https://hibernate.atlassian.net/browse/HHH-13503?atlOrigin=eyJpIjoiMThjZDY1ZDVkMTcxNDliMmJkZDFiNTVjNWM2MDc5Y2IiLCJwIjoiaiJ9 )

Re: EhCache Java11 ( https://hibernate.atlassian.net/browse/HHH-13503?atlOrigin=eyJpIjoiMThjZDY1ZDVkMTcxNDliMmJkZDFiNTVjNWM2MDc5Y2IiLCJwIjoiaiJ9 )

I have encountered the same issue using java 8, hibernate 5.4.15 and EhCache 3.8.1 as a second level cache.

I've tracked it down by activating the sun.io.serialization.extendedDebugInfo property, which gives the SerializationTrace.txt ( https://hibernate.atlassian.net/secure/attachment/49683/49683_SerializationTrace.txt ) attached

In short, here's what I found:

* The result query cache doesn't work with queries using named parameters on fields which are typed using a javax.persistence.Convert converter
* This is because the the resolved type which is stored inside org.hibernate.cache.spi.QueryKey is an instance of org.hibernate.type.descriptor.converter.AttributeConverterSqlTypeDescriptorAdapter which is not serializable.
* When the key is then stored inside EhCache, it throws the NotSerializableException

I'm reasonably certain that this is not a regression, but something that surfaced when moving to EhCache 3 (never had any issues with EhCache 2)

What I do for now is to disable the result cache for these queries, but I have no real solutions. Any ideas?

( https://hibernate.atlassian.net/browse/HHH-13503#add-comment?atlOrigin=eyJpIjoiMThjZDY1ZDVkMTcxNDliMmJkZDFiNTVjNWM2MDc5Y2IiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13503#add-comment?atlOrigin=eyJpIjoiMThjZDY1ZDVkMTcxNDliMmJkZDFiNTVjNWM2MDc5Y2IiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100126- sha1:dd08494 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200513/1b0a8f5c/attachment.html 


More information about the hibernate-issues mailing list