oracle.jdbc.OracleCallableStatement cast exception
问题 I have a problem about casting a CallableStatement to OracleCallableStatement . It gives ClassCastException like this: java.lang.ClassCastException: oracle.jdbc.driver.OracleCallableStatementWrapper cannot be cast to oracle.jdbc.driver.OracleCallableStatement And the code is: Connection conn = qdbDataSource.getConnection(); PreparedStatement pstmt = null; Connection conn2 = ((WLConnection)conn).getVendorConnection(); try { CallableStatement cs = conn2.prepareCall("{ ?=call asr.bsc(?,?,?,?,?,?