Java.lang.IllegalArgumentException At Application Start After Upgrading JDBC Driver in OC4J 10.1.3 (Doc ID 2032762.1)

Last updated on JULY 22, 2015

Applies to:

Oracle Containers for J2EE - Version 10.1.3.0.0 to 10.1.3.5.0 [Release AS10gR3]
JDBC - Version 11.2.0.4.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.2.0.4.0 version, Thin JDBC driver
       10.1.3.5.0 version, OC4J


J2EE application deployed to OC4J 10.1.3.5 container was running fine. After changing configuration in system-application.xml and server.xml to use JDBC 11.2.0.4 driver, the application fails to start with error.


ERROR
-----------------------
java.lang.IllegalArgumentException: SQLJ programs translated with the option -codegen=oracle must be run under Oracle JDBC 9.0.0 or higher. If the Oracle JDBC driver is wrapped, then the wrapper must implement all of the oracle.jdbc.OracleXxxx interfaces. Alternatively, you can translate SQLJ programs either with -codegen=iso.


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Upgrade JDBC in OC4J to 11.2.0.4 by adding JDBC jar file in server.xml and system-application.xml files per instructions in <Document: 420303.1> How to Use The Latest Thin JDBC Driver Across All Applications For a 10.1.3.x OAS Container.
2. Re-start OC4J.


Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms