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.(OracleStatement.java:791)[ojdbc6-11.2.0.1.0.jar:11.2.0.1.0] at oracle.jdbc.driver.OraclePreparedStatement.(OraclePreparedStatement.java:1203)[ojdbc6-11.2.0.1.0.jar:11.2.0.1.0] at oracle.jdbc.driver.T4CPreparedStatement.(T4CPreparedStatement.java:28)[ojdbc6-11.2.0.1.0.jar:11.2.0.1.0] at oracle.jdbc.driver.T4CDriverExtension.allocatePreparedStatement(T4CDriverExtension.java:67)[ojdbc6-11.2.0.1.0.jar:11.2.0.1.0] at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3346)[ojdbc6-11.2.0.1.0.jar:11.2.0.1.0] at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3232)[ojdbc6-11.2.0.1.0.jar:11.2.0.1.0]

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?!

Outcomes