Two Laptop Bag
The moose likes JDBC and the fly likes not able to connect to oracle DB Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "not able to connect to oracle DB" Watch "not able to connect to oracle DB" New topic
Author

not able to connect to oracle DB

rk sharma
Ranch Hand

Joined: Jun 25, 2011
Posts: 50



the error is wel known ClassCastException"
1.i attached the corresponding jar file ojdbc14.jar
2.no other errors, this is one particular program


Regards,

RK
Philip Grove
Ranch Hand

Joined: Aug 18, 2009
Posts: 68

I cannot see any reason for a ClassCastException, please post the complete stack trace so we can see what happens.

BTW: Catching Exception is generally a bad idea as you might hide useful information
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not able to connect to oracle DB
 
Similar Threads
To show the Error message at the login.jsp page using servlet
Problem in returning the username
Help with this code!
java.sql.SQLException: Parameter index out of range (5 > number of parameters, which is 4).
Error in JDBC ODBC