Tuesday, 17 July 2012

java.lang.IllegalAccessError: oracle/jdbc/driver/OracleCallableStatement

I received this error when attempting to cast the result of a Connection object's prepareCall method.

Try altering the application to not refer to oracle.jdbc.driver.OracleCallableStatement. It should be oracle.jdbc.OracleCallableStatement.

For Oracle 9i onwards you should use oracle.jdbc.OracleDriver rather than oracle.jdbc.driver.OracleDriver as Oracle have stated that oracle.jdbc.driver.OracleDriver is deprecated and support for this driver class will be discontinued in the next major release.

No comments: