Home » Developer & Programmer » JDeveloper, Java & XML » Please help.... I am getting java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcCallableStatement
Please help.... I am getting java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcCallableStatement [message #138624] Thu, 22 September 2005 14:11 Go to next message
hphanjra
Messages: 1
Registered: September 2005
Location: US
Junior Member
I am getting JDBCODBCCallabaleStatement Exception
Promptly help is need:

My code is as follows:



dbURL = "jdbc:odbc:orcl";

try {
// Load the jdbc-odbc bridge driver
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String sql = " call user_to_notyfy(?,?,?,?)";
System.out.println("Getting Connection");
conn = DriverManager.getConnection(dbURL, "test", "test"); // user, passwd
System.out.println("Connected..");

OracleCallableStatement myStatement = ( OracleCallableStatement)conn.prepareCall( sql );
myStatement.registerOutParameter
(4,OracleTypes.ARRAY,"SIMPLEARRAY");
myStatement.setString(1,"usr1");
myStatement.setInt(2, 20);
myStatement.setInt(3, 20);
myStatement.execute();
conn.close();
} catch (Exception e){System.out.println(e);}
}










Any help is greatly appreciated ...
Re: Please help.... I am getting java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcCallableStateme [message #138704 is a reply to message #138624] Fri, 23 September 2005 02:14 Go to previous message
kiran
Messages: 503
Registered: July 2000
Senior Member
Have alook at this thread.It has some relative info.

--Kiran.
Previous Topic: I can't control my AppModule
Next Topic: Built-in Alert in 6i
Goto Forum:
  


Current Time: Mon Nov 25 18:10:54 CST 2024