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
class com.sun.proxy.$Proxy cannot be cast to class org.hibernate.engine.spi.SessionImplementor #29155
Comments
Not with such limited information I'm afraid. It's not clear if this is a misconfiguration or a bug and if there is a problem it's not clear if it's with Spring Boot, Hibernate or something else. I would suggest asking on stackoverflow.com and providing a small project that replicates the issue. |
@philwebb it sounds like the same problem as this one spring-projects/spring-framework#26090 |
Thanks @qhr-slava! @xiaoquanWu, you might want to try the latest Spring Boot version to see if it's fixed. |
@philwebb happens in 2.6.2, just checked |
@qhr-slava Are you able to provide a sample project that shows the issue? It looks like we've marked spring-projects/spring-framework#26090 as fixed so perhaps this is something else. |
Arguably, this is a bug in Hibernate. It assumes that a I think you can work around this by unwrapping. Rather than passing |
@philwebb @wilkinsona just figured that I need to check versions for hibernate-search-orm in my app, didn't do it yesterday. One of parent's pom there has [INFO] | - org.hibernate:hibernate-search-orm:jar:5.9.0.Final:compile and according to spring-projects/spring-framework#26090 I need at least 5.11.6 for Hibernate Search to work. I assume that @xiaoquanWu has similar issue.
|
Springboot version: 2.6.2
I use this like:
I get a error:
Can you give me some advice?
Thanks,
The text was updated successfully, but these errors were encountered: