NullPointerException because JdbcIsolationDelegate.sqlExceptionHelper() returns null

Description

Trying to update my web application to Hibernate 6.4.4, I got this warning during startup:

Looks like others have encountered the same problem -

Not sure what the cause is, but regardless this is very easy to fix.

Please consider the following patch, which I’ve tested and seems to work just fine:

Activity

Show:

Gavin King June 28, 2024 at 7:09 PM

This looks like it might have been introduced by commit d4accd02.

I don’t think it’s really correct to call JdbcResourceLocalTransactionCoordinatorImpl.createIsolationDelegate() before the JdbcEnvironment is fully set up.

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

Created June 28, 2024 at 5:32 PM
Updated August 6, 2024 at 2:53 PM
Resolved July 15, 2024 at 12:49 PM