File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes not able to connect to oracle DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "not able to connect to oracle DB" Watch "not able to connect to oracle DB" New topic

not able to connect to oracle DB

rk sharma
Ranch Hand

Joined: Jun 25, 2011
Posts: 63

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


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:
subject: not able to connect to oracle DB
It's not a secret anymore!