Guillaume Toison (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMGE3Zjk5Yjg0...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16743?atlOrigin=eyJpIjoiMGE3Zj...
) HHH-16743 (
https://hibernate.atlassian.net/browse/HHH-16743?atlOrigin=eyJpIjoiMGE3Zj...
) StackOverflowError when loading a ManyToOne whith @Proxy(lazy=false) (
https://hibernate.atlassian.net/browse/HHH-16743?atlOrigin=eyJpIjoiMGE3Zj...
)
Issue Type: Bug Affects Versions: 6.2.4 Assignee: Unassigned Created: 02/Jun/2023 13:10 PM
Priority: Major Reporter: Guillaume Toison (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
)
This is the same issue as
https://hibernate.atlassian.net/browse/HHH-16553 but with a
better understading of the problem.
I incorrectly assumed that the stackoverflow happened because the graph of entities was
too deep, but the actual problem is that Hibernate tries to load the same entity over and
over again.
This also seems to happen only when the entity is cacheable (and the correspoding entry
must be absent from the cache so a query is necessary).
Maybe the issue is that BatchInitializeEntitySelectFetchInitializer does not handle the
case when the entity is annotated with @Proxy( lazy=false )
(
https://hibernate.atlassian.net/browse/HHH-16743#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16743#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#100225- sha1:e03cc87 )