i am getting the following exception after a Jdbc driver upgrade.
Caused by: java.lang.ClassCastException: weblogic.jdbc.rmi.SerialPreparedStatement_weblogic_jdbc_rmi_internal_PreparedStatementStub_weblogic_jdbc_rmi_internal_PreparedStatementImpl_weblogic_jdbc_wrapper_PreparedStatement_oracle_jdbc_driver_OraclePreparedStatementWrapper_921_WLStub
Current Env : Weblogic 9.2.1, JDBC ojdbc5.jar
Can some help here ?
Please assign it to the interface PreparedStatement instead of specific class (OraclePreparedStatement).
The connection.prepareStatement acts like a factory for your prepared statement. That means you are not aware, and should not, which kind of object is returned from this method invocation, but you know the interface.