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.

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

Reason
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.

1 comment:

Asava Samuel said...

This is a reasonable priced SFTP Library you can use with VB.NET:
https://www.kellermansoftware.com/p-41-net-sftp-library.aspx