Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNGU1ZmFiM2Ex...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-13929?atlOrigin=eyJpIjoiNGU1Zm...
) HHH-13929 (
https://hibernate.atlassian.net/browse/HHH-13929?atlOrigin=eyJpIjoiNGU1Zm...
) ClassCastException on use of PersistenceUtilHelper when entities use Enhanced Proxies (
https://hibernate.atlassian.net/browse/HHH-13929?atlOrigin=eyJpIjoiNGU1Zm...
)
Issue Type: Bug Affects Versions: 5.4.13 Assignee: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core Created: 05/Apr/2020 14:24 PM Fix Versions: 5.4.14 Priority:
Major Reporter: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
The org.hibernate.jpa.internal.util.PersistenceUtilHelper helper can not deal with
entities which are using the new "Enhanced Proxy" feature; this would result in
a ClassCastException such as
Caused by: java.lang.ClassCastException:
org.hibernate.bytecode.enhance.spi.interceptor.EnhancementAsProxyLazinessInterceptor
cannot be cast to
org.hibernate.bytecode.enhance.spi.interceptor.LazyAttributeLoadingInterceptor
at
org.hibernate.jpa.internal.util.PersistenceUtilHelper.extractInterceptor(PersistenceUtilHelper.java:102)
at
org.hibernate.jpa.internal.util.PersistenceUtilHelper.isInitialized(PersistenceUtilHelper.java:97)
at
org.hibernate.jpa.internal.util.PersistenceUtilHelper.isLoaded(PersistenceUtilHelper.java:83)
at
org.hibernate.jpa.internal.util.PersistenceUtilHelper.isLoadedWithoutReference(PersistenceUtilHelper.java:144)
at
io.quarkus.hibernate.orm.runtime.FastBootHibernatePersistenceProvider$1.isLoadedWithoutReference(FastBootHibernatePersistenceProvider.java:276)
at javax.persistence.Persistence$PersistenceUtilImpl.isLoaded(Persistence.java:145)
at
org.hibernate.validator.internal.engine.resolver.JPATraversableResolver.isReachable(JPATraversableResolver.java:52)
at
org.hibernate.validator.internal.engine.resolver.CachingJPATraversableResolverForSingleValidation.lambda$isReachable$0(CachingJPATraversableResolverForSingleValidation.java:43)
at java.util.HashMap.computeIfAbsent(HashMap.java:1127)
at
org.hibernate.validator.internal.engine.resolver.CachingJPATraversableResolverForSingleValidation.isReachable(CachingJPATraversableResolverForSingleValidation.java:43)
at
org.hibernate.validator.internal.engine.ValidatorImpl.isReachable(ValidatorImpl.java:1307)
Relates to
https://github.com/quarkusio/quarkus/issues/8323
(
https://hibernate.atlassian.net/browse/HHH-13929#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13929#add-comment?atlOrigin=ey...
)
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....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100124- sha1:7217f9f )