|
INTERVIEW QUESTIONS
J2EE
JDBC
DETAILS
Question: What causes the "No suitable driver" error?
Answer: "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.
|
|
|
Category |
JDBC Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 6505 users |
Added on |
9/12/2014 |
Views |
70810 |
Rate it! |
|
|
Question:
What causes the "No suitable driver" error?
Answer:
"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. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Are there any ODBC drivers that do not work with the JDBC-ODBC Bridge?
|
View Answer
|
|
How can I use the JDBC API to access a desktop database like Microsoft Access over the network?
|
View Answer
|
|
How to update a resultset programmatically?
|
View Answer
|
|
How to move the cursor in scrollable resultset ?
|
View Answer
|
|
How to move the cursor in scrollable resultset ?
|
View Answer
|
|
What is new in JDBC 2.0?
|
View Answer
|
|
How do I start debugging problems related to the JDBC API?
|
View Answer
|
|
Can the JDBC-ODBC Bridge be used with applets?
|
View Answer
|
|
What's the JDBC 3.0 API?
|
View Answer
|
|
What is JDBC?
|
View Answer
|
|
what is different between tier and 3 tier?
|
View Answer
|
|
What is the difference between a Driver and a DataSource (in Java JDBC)?
|
View Answer
|
|
How can we make objects of connection when connection is an interface.e.g. Connection conn = DriverManager.getConnection ????
|
View Answer
|
|
How to Retrieve Warnings?
|
View Answer
|
|
What are the two major components of JDBC?
|
View Answer
|
|
What are batch updates
|
View Answer
|
|
How can you retrieve data from the ResultSet?
|
View Answer
|
|
How do you implement Connection Pooling
|
View Answer
|
|
What are the steps for connecting to the database using JDBC
|
View Answer
|
|
While in CallableStatament using in the oracle my procedure is return no.of columns so in java
|
View Answer
|