No suitable driver error.

No suitable driver error.

What causes the "No suitable driver" error?

View Answers

November 13, 2010 at 3:25 PM

Hi friends,

"No suitable driver" is an error that usually occurs during a call to the DriverManager.getConnection method. The cause can be failing to load the appropriate JDBC drivers before calling the getConnection method, or it can be specifying an invalid JDBC URL--one that isn't recognized by your JDBC driver. Your best bet is to check the documentation for your JDBC driver or contact your JDBC driver vendor if you suspect that the URL you are specifying is not being recognized by your JDBC driver.

In addition, when you are using the JDBC-ODBC Bridge, this error can occur if one or more the the shared libraries needed by the Bridge cannot be loaded. If you think this is the cause, check your configuration to be sure that the shared libraries are accessible to the Bridge.

Thanks.









Related Tutorials/Questions & Answers:
No suitable driver error.
No suitable driver error.  What causes the "No suitable driver" error
No suitable driver found for jdbc:mysql://localhost:3306/TEST
No suitable driver found for jdbc:mysql://localhost:3306/TEST  hii, I.... ava.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/TEST... giving above error. I have aaded mysql jar files to web-INf/lib,in project build
Advertisements
error in driver
error in driver  i have done connection settings for oraclethin driver in netbeans ide 6.9.1. and i was able to view tables of my database.but when i am trying to access tables from my java class i was getting error
error in driver connection
error in driver connection  String driver = "org.gjt.mm.mysql.Driver"; Class.forName(driver).newInstance(); //error at this line Connection con=null; ResultSet rst=null; Statement stmt=null
Showing error in the driver declaration.Please suggest
Showing error in the driver declaration.Please suggest  ... driver = "org.gjt.mm.mysql.Driver" 13: //String connectionURL = "jdbc:mysql...: Class.forName(driver).newInstance(); 16: Connection con=null; 17
java run time error in loading the driver - JDBC
java run time error in loading the driver  when i mrunning the program in oracle using type 4 driver it is giving the error as Error... JDBC driver's JAR file in your classpath and check it Thanks
ModuleNotFoundError: No module named 'suitable'
library, ModuleNotFoundError: No module named 'suitable' error...ModuleNotFoundError: No module named 'suitable'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.  String sql = "UPDATE emp_details SET empEname = ?, emailId = ?, guid =?, proximityCard =?, managerEmailId = ?, reviewerEmailId
error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
need suitable package - Development process
need suitable package  i want to take source code in html file. Example if i have enter html file in my java project. The output is print one text file it contain html code. how to take source code only. please any one send how
Driver
Driver  can u send type4 jdbc driver class name and url for microsoft sql server 2008
Find Suitable Service Provider, How to Find a Suitable Company for Outsourcing
How to find a suitable outsourcing vendor Introduction:  Finding the right kind of outsourcing vendor is very critical to the success of the company that is outsourcing. The outsourcer should have a clear mind as to what
error
error  while iam compiling iam getting expected error
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
Error
Error  I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower
error
error  java.lang.unsupportedclassversionerror:bad major version at offset 6 how to solve this????   Hi, Please check the version of framework used and also the JDK version.ADS_TO_REPLACE_1 This type error also comes
error
error
error
error  When I deploye the example I have this message cannot Deploy HelloWorld Deployment Error for module: HelloWorld: Error occurred during deployment: Exception while deploying the app [HelloWorld
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5
error
"+it); } } this is my program i am getting an error saying cannot find symbol class stringADS
error
error  whats the error.............. import java.util.Scanner; public class g { public static void main(String[] args) { Scanner s=new Scanner(System.in); int d,x,y; System.out.println("Enter the first number
no driver - JDBC
the program: run: SQL Exception: No suitable driver found for jdbc:db2... { try { //Loads Type 2 Driver Class.forName...) { System.err.println("Could not load DB2 driver! \n"); System.err.println(e.getMessage
Suitable Outsourcing Vendor,Suitable Consultant for Outsourcing,How to Find Suitable Outsourcing Vendor
How to find a suitable outsourcing vendor Introduction: Finding the right kind of outsourcing vendor is very critical to the success of the company that is outsourcing. The outsourcer should have a clear mind as to what to expect
error please send me the solution
java.sql.SQLException: No suitable driver found for jdbc:mysql//localhost:3306/mysql...error please send me the solution  HTTP Status 500 - type Exception report message description The server encountered an internal error
error please send me the solution
java.sql.SQLException: No suitable driver found for jdbc:mysql//localhost:3306/mysql...error please send me the solution  HTTP Status 500 - type Exception report message description The server encountered an internal error
ModuleNotFoundError: No module named 'driver'
, ModuleNotFoundError: No module named 'driver' error will be solved. Thanks...ModuleNotFoundError: No module named 'driver'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named
runtime error
runtime error  still i am getting runtime error as:the specified dsn contains an architecture mismatch between the driver and application   Hi, This error is related to some OS related problem.ADS_TO_REPLACE_1 "dsn
Java program to create a frame with 4 fields;name,sreet,city,pin;with suitable table
Java program to create a frame with 4 fields;name,sreet,city,pin;with suitable table  Java program to create a frame with 4 fields;name,street,city,pin;with suitable table. Also add a button "OK". whe it is clicked
jdbc driver
jdbc driver  hello, can we create a own jdbc driver? how can we create
To write a Java program To create a frame with 4 fields;name,street,city,pin;with suitable table
To write a Java program To create a frame with 4 fields;name,street,city,pin;with suitable table  I want to write a Java program To create a frame with 4 fields;name,street,city,pin;with suitable table
ModuleNotFoundError: No module named 'aquasystems-driver'
named 'aquasystems-driver' error? Thanks   Hi, In your..., ModuleNotFoundError: No module named 'aquasystems-driver' error will be solved...ModuleNotFoundError: No module named 'aquasystems-driver'  Hi, My
ModuleNotFoundError: No module named 'check-driver'
;check-driver' error? Thanks   Hi, In your python...-driver' error will be solved. Thanks...ModuleNotFoundError: No module named 'check-driver'  Hi, My Python
ModuleNotFoundError: No module named 'clickhouse-driver'
named 'clickhouse-driver' error? Thanks   Hi, In your...: No module named 'clickhouse-driver' error will be solved. Thanks...ModuleNotFoundError: No module named 'clickhouse-driver'  Hi, My
ModuleNotFoundError: No module named 'lcu-driver'
-driver' error? Thanks   Hi, In your python environment you...ModuleNotFoundError: No module named 'lcu-driver'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'linkedin_driver'
'linkedin_driver' error? Thanks   Hi, In your python... named 'linkedin_driver' error will be solved. Thanks...ModuleNotFoundError: No module named 'linkedin_driver'  Hi, My
ModuleNotFoundError: No module named 'makerbot_driver'
'makerbot_driver' error? Thanks   Hi, In your python... named 'makerbot_driver' error will be solved. Thanks...ModuleNotFoundError: No module named 'makerbot_driver'  Hi, My
ModuleNotFoundError: No module named 'marionette-driver'
named 'marionette-driver' error? Thanks   Hi, In your...: No module named 'marionette-driver' error will be solved. Thanks...ModuleNotFoundError: No module named 'marionette-driver'  Hi, My
ModuleNotFoundError: No module named 'nanodb_driver'
'nanodb_driver' error? Thanks   Hi, In your python...;nanodb_driver' error will be solved. Thanks...ModuleNotFoundError: No module named 'nanodb_driver'  Hi, My
ModuleNotFoundError: No module named 'omnibus-driver'
'omnibus-driver' error? Thanks   Hi, In your python... 'omnibus-driver' error will be solved. Thanks...ModuleNotFoundError: No module named 'omnibus-driver'  Hi, My
ModuleNotFoundError: No module named 'researchgate_driver'
: No module named 'researchgate_driver' error? Thanks   Hi..., ModuleNotFoundError: No module named 'researchgate_driver' error...ModuleNotFoundError: No module named 'researchgate_driver'  Hi, My
ModuleNotFoundError: No module named 'supy-driver'
;supy-driver' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'supy-driver'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'wolphin-driver'
'wolphin-driver' error? Thanks   Hi, In your python... 'wolphin-driver' error will be solved. Thanks...ModuleNotFoundError: No module named 'wolphin-driver'  Hi, My

Ads