DriverManager.getConnection() has thrown a SQLException

java.sql.SQLException
Javadoc

An exception that provides information on a database access error or other errors.

Each SQLException provides several kinds of information:

  • a string describing the error. This is used as the Java Exception message, available via the method getMesasge.
  • a "SQLstate" string, which follows either the XOPEN SQLstate conventions or the SQL:2003 conventions. The values of the SQLState string are described in the appropriate spec. The DatabaseMetaData method getSQLStateType can be used to discover whether the driver returns the XOPEN type or the SQL:2003 type.
  • an integer error code that is specific to each vendor. Normally this will be the actual error code returned by the underlying database.
  • a chain to a next Exception. This can be used to provide additional error information.
  • the causal relationship, if any for this SQLException.
at java.sql.DriverManager.getConnection
(source)
at java.sql.DriverManager.getConnection
(source)

Typical Exception Messages

  1. No suitable driver
  2. The url cannot be null
  3. Cannot open connection
  4. No suitable driver found for
  5. No suitable driver found for jdbc:mysql://localhost:3306/test
  6. <No message>
  7. No suitable driver found for jdbc:mysql://localhost:3306/
  8. No suitable driver found for jdbc:oracle:thin:@<ip_address>:1521:<sid_name>
  9. Error calling DriverManager#getConnection
  10. No suitable driver found for jdbc:oracle:thin:@localhost:1521:xe

Origin

Unable to find suitable driver to create connection with database server

java.sql.SQLException
java.sql.DriverManager.getConnection
1024Web pages
1Solution

Similar

Specific cases

External results for this pattern (965)

  1. Nashe Chiuvia Google Groups1 month ago
    No suitable driver found for jdbc:postgresql://mypostgres:5432/databsename?user=username&password=password
    Show stack trace
  2. Yogesh Jagtapvia Google Groups1 month ago
    Mondrian Error:Internal error: Error while creating SQL connection: Jdbc=jdbc:optiq:model=file:/home/yogesh/optiq/mongodb/target/test-classes/mongo-zips-model.json
    Show stack trace
  3. Juan Rodríguez Hortalávia Google Groups1 month ago
    Mondrian Error:Internal error: Error while creating SQL connection: Jdbc=jdbc:optiq:model=file:/home/cloudera/Sistemas/optiq/mongodb/target/test-classes/mongo-zips-model-juanrh.json; JdbcUser=admin; JdbcPassword=admin
    Show stack trace
  4. Andrewvia Google Groups1 month ago
    No suitable driver found for jdbc:mysql:// >> localhost:3306/abmyers
    Show stack trace
  5. holgerbrandlvia GitHub1 month ago
    No suitable driver found for ***jdbc cluster connection string ****
    Show stack trace
  6. claudio-rosativia GitHub2 months ago
    Cannot connect to database, No suitable driver found for jdbc:mysql://172.16.107.12/alarm
    Show stack trace
  7. srgvia Google Groups2 months ago
    java.sql. SQLException: No suitable driver found for jdbc:postgresql: //localhost:5433/mydb
    Show stack trace
  8. jfmonteilvia GitHub2 months ago
    No suitable driver found for jdbc:mysql://localhost:3306/telefonica
    Show stack trace
  9. 643155via Oracle Community2 months ago
  10. pyongjoovia GitHub2 months ago
    No suitable driver found for jdbc:mysql://localhost:3306/tpch1g
    Show stack trace