org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ESB_DB


Solutions on the web

Solution icon of web
Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ESB_DB

Solution icon of stackoverflow
Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/platform75

Solution icon of stackoverflow
Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:mysql:3306//localhost/springcore

Solution icon of stackoverflow
Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc::postgresql://localhost:5432/myapp

Solution icon of stackoverflow
Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:postgresql://localhost :5432/db_name

Solution icon of web
Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:jtds:sqlserver://SERVER/DATABASENAME;domain=DOMAIN

Solution icon of web
Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver

Solution icon of stackoverflow
Could not get JDBC Connection**; nested exception is java.sql.SQLException: Driver:com.mysql.jdbc.Driver@9ff430 returned null for URL:jdbc:mysql//localhost:3306/logsdb

Solution icon of stackoverflow
Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL 'jdbc:mysql://localhost/vf2?autoReconnect=true'

Solution icon of coderanch
Could not get JDBC Connection; nested exception is java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?

Stack trace

org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ESB_DB
	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)[1255:org.apache.servicemix.bundles.spring-jdbc:3.2.12.RELEASE_1]
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:575)[1255:org.apache.servicemix.bundles.spring-jdbc:3.2.12.RELEASE_1]
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:617)[1255:org.apache.servicemix.bundles.spring-jdbc:3.2.12.RELEASE_1]
	at org.apache.camel.component.sql.SqlConsumer.poll(SqlConsumer.java:92)[1256:org.apache.camel.camel-sql:2.15.1.redhat-620133]
	at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
	at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_05]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_05]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_05]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_05]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_05]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_05]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_05]
Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ESB_DB
	at java.sql.DriverManager.getConnection(DriverManager.java:689)[:1.8.0_05]
	at java.sql.DriverManager.getConnection(DriverManager.java:208)[:1.8.0_05]
	at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:173)[1255:org.apache.servicemix.bundles.spring-jdbc:3.2.12.RELEASE_1]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
59 more bugmates