Thursday, 31 March 2016

Scenario : What causes the "No suitable driver" error ?


"No suitable driver" is an error that usually occurs during a call to the DriverManager.getConnection method.

Possible causes
  • Fail to load the appropriate JDBC drivers before calling the getConnection method
  • Specifying an invalid JDBC URL which is not recognized by your JDBC driver.
  • When using the JDBC-ODBC Bridge, one or more shared libraries needed by the Bridge cannot be loaded.

Solution
Check your configuration for these mistakes.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.