I am using MariaDB 5.5, I tested the auto reconnect feature of the server by setting wait_timeout parameter in the my.ini file. From my code, I created a connection string with autoreconnect option. It is worked fine with mysql jdbc connector. But using drizzle jdbc, it shows an error.
Error log is
SQLException information
Error msg: Could not ping: Incomplete read! Expected 4, got -1
SQLSTATE: 08
Error code: -1
java.sql.SQLNonTransientConnectionException: Could not ping: Incomplete read! Expected 4, got -1
at org.drizzle.jdbc.internal.SQLExceptionMapper.get(SQLExceptionMapper.java:97)
at org.drizzle.jdbc.DrizzleConnection.isValid(DrizzleConnection.java:950)
I am using MariaDB 5.5, I tested the auto reconnect feature of the server by setting wait_timeout parameter in the my.ini file. From my code, I created a connection string with autoreconnect option. It is worked fine with mysql jdbc connector. But using drizzle jdbc, it shows an error.
Error log is
SQLException information Error msg: Could not ping: Incomplete read! Expected 4, got -1 SQLSTATE: 08 Error code: -1 java.sql.SQLNonTransientConnectionException: Could not ping: Incomplete read! Expected 4, got -1 at org.drizzle.jdbc.internal.SQLExceptionMapper.get(SQLExceptionMapper.java:97) at org.drizzle.jdbc.DrizzleConnection.isValid(DrizzleConnection.java:950)