NullPointerException from Hibernate ORM when there is a problem establishing a connection #44645
Labels
area/hibernate-orm
Hibernate ORM
kind/bug-thirdparty
Bugs that are caused by third-party components and not causing a major dysfunction of core Quarkus.
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: