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 java.lang.InstantiationError: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "java.lang.InstantiationError:" Watch "java.lang.InstantiationError:" New topic


punna Kumar
Ranch Hand

Joined: Feb 28, 2005
Posts: 80
i am getting error when i try to run the procedure from my java program please help me.

java.lang.InstantiationError: oracle.jdbc.driver.OracleCallableStatement
at oracle.jdbc.driver.OracleConnection.privatePrepareCall(
at oracle.jdbc.driver.OracleConnection.prepareCall(
at CommonDAO.prepareCall(Unknown Source)
at TestProcedureDAO.CheckFlag(Unknown Source)

Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
Yoinks! That is not a good error. Something has gone badly wrong here. Possibly you tried something bad like feeding a null into prepareCall? Please put some debugging statements around the offending code so that you can find out exactly what code the problem originates in and what yu are doing at the time.

On the one hand this kind of error is a driver failure in that it should not be throwing that type of exception.... but ultimatley placing blame won't actually help you get your problem resolved. So gather more information about where the problem is happening and what you are doing in your code when it happens.
punna Kumar
Ranch Hand

Joined: Feb 28, 2005
Posts: 80
Thanks for u r replay
punna Kumar
Ranch Hand

Joined: Feb 28, 2005
Posts: 80
thanks for ur replay

this error is happening when ever i am calling stored procedure.and one more thing it's not happening frequently,some times it's happening and some times it's not happening

i am useing WAS version and rsadapter.jar file for connection.

could you please help me out?

this is codeing error or driver mis match error

waiting for ur Quick Replay

thanks for ur assistance

I agree. Here's the link:
subject: java.lang.InstantiationError:
jQuery in Action, 3rd edition