NullPointerException in private static class SetNetworkTimeoutCommand - class FBConnection file ./src/main/org/firebirdsql/jdbc/FBConnection.java when using HikariCP [JDBC631] #661
Submitted by: Honza Hubeny (hubeny)
I use Hikari CP together with Jaybird 3. I try to upgrade Jaybird lib to 4. However it is not possible now becouse of following error:
Pool init with max 2 idle connections and 30 seconds timeout
When the hikari pool has more than 2 idle connections for more than 30 second then the class
void quietlyCloseConnection(final Connection connection, final String closureReason)
here is first called asynchronous setNetworkTimeout(connection, SECONDS.toMillis(15));
Unfortunatelly the call connection.getFbDatabase() returns null pointer (connection is already closed by the hikari CP).
The content of FBConnection with the source of error follows
The text was updated successfully, but these errors were encountered:
Commented by: @mrotteveel
Thanks for reporting.
I will fix this in 4.0.1.
Be aware that the exception is caught and logged, so although it will produce annoying logging, the driver will function.
Modified by: @mrotteveel
environment: Linux Ubuntu 20.04 LTS. Bug finded when using Hikari CP 2.4.13 together with latest stable Jaybird 4.0. Both libraries compiled for Java 7. => Linux Ubuntu 20.04 LTS. Bug found when using Hikari CP 2.4.13 together with latest stable Jaybird 4.0. Both libraries compiled for Java 7.