Which drivers are you using? "-10" is not an error message I'd expect from the Oracle drivers. Usually you get an "ORA-XXXXX" error message. If you are using an older driver such as classes111.zip, your driver may not know what an OracleTypes.CURSOR (or any other
jdbc 2.0 datatype )is, but still be able to support your other jdbc 1.0 code.
Jamie