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 to [Release AS10gR3]
JDBC - Version and later
Information in this document applies to any platform.


On : version, Thin JDBC driver version, OC4J

J2EE application deployed to OC4J container was running fine. After changing configuration in system-application.xml and server.xml to use JDBC driver, the application fails to start with 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.

The issue can be reproduced at will with the following steps:
1. Upgrade JDBC in OC4J to 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.


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