Java.lang.IllegalArgumentException At Application Start After Upgrading JDBC Driver in OC4J 10.1.3
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 22.214.171.124.0 and later
Information in this document applies to any platform.
On : 126.96.36.199.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 188.8.131.52 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 184.108.40.206 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