Skip to content

getReference fails with Bytecode Enahncements enabled #1891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DavideD opened this issue Apr 23, 2024 · 0 comments · Fixed by #1892
Closed

getReference fails with Bytecode Enahncements enabled #1891

DavideD opened this issue Apr 23, 2024 · 0 comments · Fixed by #1892
Assignees
Labels
bug Something isn't working
Milestone

Comments

@DavideD
Copy link
Member

DavideD commented Apr 23, 2024

Caused by: org.hibernate.reactive.event.impl.UnexpectedAccessToTheDatabase: Unexpected access to the database
	at app//org.hibernate.reactive.event.impl.DefaultReactiveLoadEventListener.onLoad(DefaultReactiveLoadEventListener.java:112)
	at app//org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:138)
	at app//org.hibernate.internal.SessionImpl.fireLoadNoChecks(SessionImpl.java:1225)
	at app//org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1213)
	at app//org.hibernate.loader.internal.IdentifierLoadAccessImpl.getReference(IdentifierLoadAccessImpl.java:185)
	at app//org.hibernate.loader.internal.IdentifierLoadAccessImpl.doGetReference(IdentifierLoadAccessImpl.java:131)
	at app//org.hibernate.loader.internal.IdentifierLoadAccessImpl.lambda$getReference$0(IdentifierLoadAccessImpl.java:88)
	at app//org.hibernate.loader.internal.IdentifierLoadAccessImpl.perform(IdentifierLoadAccessImpl.java:112)
	at app//org.hibernate.loader.internal.IdentifierLoadAccessImpl.getReference(IdentifierLoadAccessImpl.java:88)
	at app//org.hibernate.internal.SessionImpl.getReference(SessionImpl.java:2535)
@DavideD DavideD self-assigned this Apr 23, 2024
@DavideD DavideD added the bug Something isn't working label Apr 23, 2024
@DavideD DavideD added this to the 2.3.0.Final milestone Apr 23, 2024
DavideD added a commit to DavideD/hibernate-reactive that referenced this issue Apr 23, 2024
Test `session.getReference` with Bytecode Enhancements enabled
DavideD added a commit to DavideD/hibernate-reactive that referenced this issue Apr 23, 2024
ORM 6.5 doesn't create a proxy factory unless is needed.
When we upgraded we missed a small change to the flow because
we didn't have tests for it (`getReference` with Bytecode Enhancements
enabled).
DavideD added a commit to DavideD/hibernate-reactive that referenced this issue Apr 23, 2024
Test `session.getReference` with Bytecode Enhancements enabled
DavideD added a commit that referenced this issue Apr 23, 2024
ORM 6.5 doesn't create a proxy factory unless is needed.
When we upgraded we missed a small change to the flow because
we didn't have tests for it (`getReference` with Bytecode Enhancements
enabled).
DavideD added a commit that referenced this issue Apr 23, 2024
Test `session.getReference` with Bytecode Enhancements enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant