AnsweredAssumed Answered

java.lang.IllegalAccessError on oracle.jdbc.driver classes

Question asked by Bennnnnnn on Jan 4, 2014
Latest reply on Jan 9, 2014 by richardsgreen

Trying to instrument introscope 9.5 on a standalone jvm. The app fails with the following error ONLY when the agent is instrumented on the jvm. The error does not occur when the agent is not present.

Caused by: java.lang.IllegalAccessError: tried to access method oracle.jdbc.driver.OracleSql.(Loracle/jdbc/driver/DBConversion;)V from class oracle.jdbc.driver.OracleStatement at oracle.jdbc.driver.OracleStatement.([ojdbc6-] at oracle.jdbc.driver.OraclePreparedStatement.([ojdbc6-] at oracle.jdbc.driver.T4CPreparedStatement.([ojdbc6-] at oracle.jdbc.driver.T4CDriverExtension.allocatePreparedStatement([ojdbc6-] at oracle.jdbc.driver.PhysicalConnection.prepareStatement([ojdbc6-] at oracle.jdbc.driver.PhysicalConnection.prepareStatement([ojdbc6-]

I assume I could disable any directives for oracle.jdbc.driver.* but I'm not sure if that will work. Also I don't understand why the app would fail on this error when the agent is on. The app must still be invoking that class without the agent running. So why would it fail when the agent is on.

Any ideas?!