-
Notifications
You must be signed in to change notification settings - Fork 89
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
UnsupportedFeatureError: Proxy class defined by interfaces [interface org.hibernate.query.hql.spi.SqmQueryImplementor ... #324
Comments
@wilkinsona please let me know is this right repository for this issue? |
I think this is caused by some missing configuration in your build. You need to apply the hibernate {
enhancement {
lazyInitialization true
dirtyTracking true
associationManagement true
}
} The above is the Groovy DSL. start.spring.io does not generate this configuration as there was a bug in Hibernate's plugin that stopped it from working with Kotlin. This has now been fixed so I've opened spring-io/start.spring.io#1229. |
Reopen this because I have the same error even after configuration of
Not sure if this the right repository. Probably someone can suggest more appropriate one. |
The issue looks similar to spring-projects/spring-framework#29603 |
I have the same issue - here is the repo with the update porscheinformatik/angular-spring-heroes#339 Hibernate with Spring Boot 3.1.0 and 3.1.1 does not work. |
Added a smoke test that currently fails because of this issue: spring-projects/spring-aot-smoke-tests#183 |
@derkoe Are you sure you have the same issue? @rkudryashov is not using |
@wilkinsona it's the same exception and @rkudryashov is using @scheduled - seems like this is triggered by things called from background |
|
I see it's the same exception but I don't think it's certain that it's the same problem.
|
@wilkinsona okay where should I create the issue with Also: I'm not sure why those Hibernate issues do not arise with Quarkus - they're using the same version. |
I'm not sure yet. I've asked the Spring Data team to take a look. |
Turns out the hibernate metadata for |
Thanks for tracking that down, @christophstrobl. Did you manage to determine why the behaviour differs in |
@wilkinsona unfortunately not. Also talked to @mp911de. |
I'm going to close this because after update to Spring Boot 3.2.0-M2 the issue is not reproduced (you can check https://github.com/rkudryashov/sb-repro) |
That is still a bug when using spring boot 3.1.3+. Forcing build to use version 6.1.1 of hibernate metadata gives another error: And it is not possible to force using both 6.2.0 and 6.1.1 version of metadata. |
Yes, all JPA/Hibernate operations running from The smoke-test is also not merged (yet): spring-projects/spring-aot-smoke-tests#183 |
Describe the bug
Spring Boot native app periodically polls DB using JPA repository; method of the repository throws an error. There is a chance scheduler has nothing to do with the bug.
To Reproduce
The bug can be reproduced using https://github.com/rkudryashov/sb-repro
Logs
Add logs to help explain your problem.
System Info (please complete the following information):
The text was updated successfully, but these errors were encountered: