My Oracle Support Banner

java.lang.IllegalAccessException: Class <class name> can not access a member of class oracle.jdbc.driver.OraclePreparedStatementWrapper with modifiers "public" After Upgrading to JDBC 11g (Doc ID 1153487.1)

Last updated on JUNE 24, 2021

Applies to:

JDBC - Version 11.1.0.6 and later
Information in this document applies to any platform.

Symptoms

When using ojdbc14.jar (JDBC 10g driver) , J2EE application works fine.
But, after upgrading to JDBC driver 11g (ojdbc6.jar), the application fails with an illegal access exception.
The same error reproduces from a JDBC standalone application.

The error is:


java.lang.IllegalAccessException: Class framework.utilities.db.MapToDatabase can not access a member of class oracle.jdbc.driver.OraclePreparedStatementWrapper with modifiers "public"

The code where the error occur is :

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.