-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
NullPointerException from Hibernate ORM when there is a problem establishing a connection #44645
Comments
I think the most likely cause would be either the Quoting keycloak/keycloak#35014 (comment) :
We probably need, at least, to check in Hibernate ORM that |
Also, thanks for creating the bug report @shawkins :) |
I think this issue may be related to https://hibernate.atlassian.net/browse/HHH-17872 that should have been fixed in Hibernate 6.4.5 |
discussing with @marko-bekhta we probably found the cause of the issue. |
can I work on this @yrodiere ? or is it already fixed ? |
@elmodeer Thanks for your proposal, but the problem is in Hibernate ORM as indicated in the previous comment, and it's already being worked on: hibernate/hibernate-orm#9464 |
Describe the bug
In some circumstances hibernate fails to report a meaningful error message and instead shows a nullpointerexception:
See keycloak/keycloak#35181 - this error also appears in other Keycloak and Quarkus issues, such as #31842
Expected behavior
A meaningful exception.
Actual behavior
A nullpointerexception.
How to Reproduce?
Keycloak is using a persistence.xml, I'm not sure if that's a requirement to reproduce this. If you then misconfigure the datasource, such as an invalid password, you should see the null pointer exception.
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.8.5
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: