2 Replies Latest reply on Dec 11, 2003 6:16 PM by Jon Barnett

    Getting java.lang.ClassCastException when casting prepareCal

    singhindresh Newbie

      Oracle generate java.lang.ClassCastException when casting prepareCall to OracleCallableStatement.

      oracle.jdbc.OracleCallableStatement callable_statement;

      callable_statement = (oracle.jdbc.OracleCallableStatement) connection.prepareCall(ProcedureCall_Statement);

      I am getting exception at the above statement, I want to used this becasue i want to use Oracle Collection API setORAData to register input parameter for procedure call.

      Any help is Welcome and thanks in advance.