-
Notifications
You must be signed in to change notification settings - Fork 41.2k
When using HSQLDB, Hikari logs a warning message about the driver class name when the first connection is retrieved from the pool #23036
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
Comments
Spring Boot will auto-configure a |
Hi @wilkinsona, <dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<version>2.3.2.RELEASE</version>
</dependency> The output when application start like this: 2020-08-13 09:18:08.837 INFO 2034 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2020-08-13 09:18:08.848 INFO 2034 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-08-13 09:18:08.848 INFO 2034 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.37]
2020-08-13 09:18:08.912 INFO 2034 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2020-08-13 09:18:08.912 INFO 2034 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 872 ms
2020-08-13 09:18:09.032 INFO 2034 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2020-08-13 09:18:09.037 WARN 2034 --- [ main] com.zaxxer.hikari.util.DriverDataSource : Registered driver with driverClassName=org.hsqldb.jdbcDriver was not found, trying direct instantiation.
2020-08-13 09:18:09.675 INFO 2034 --- [ main] com.zaxxer.hikari.pool.PoolBase : HikariPool-1 - Driver does not support get/set network timeout for connections. (feature not supported)
2020-08-13 09:18:09.678 INFO 2034 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2020-08-13 09:18:09.907 INFO 2034 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-08-13 09:18:10.257 INFO 2034 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path '' With the debug mode, I found the Hikari using the exact driver class name to compare when get the driver. |
Thanks, that additional log output is helpful. I can see that you also have a dependency on Tomcat (presumably via |
|
WARN message in startup:
[ main] com.zaxxer.hikari.util.DriverDataSource : Registered driver with driverClassName=org.hsqldb.jdbcDriver was not found, trying direct instantiation.
Founds:
HSQLDB registered the JDBC Driver as
org.hsqldb.jdbc.JDBCDriver
to DriverManager now.In
org.springframework.boot.jdbc.EmbeddedDatabaseConnection
, the driver class name isorg.hsqldb.jdbcDriver
This maybe the mismatch cause
HikariCP
cannot get the driver due to below code:So we got the WARN message from HikariCP?
The text was updated successfully, but these errors were encountered: