Java.lang.IllegalArgumentException At Application Start After Upgrading JDBC Driver in OC4J 10.1.3
(Doc ID 2032762.1)
Last updated on JUNE 24, 2021
Applies to:Oracle Containers for J2EE - Version 10.1.3.0.0 to 10.1.3.5.0 [Release AS10gR3]
JDBC - Version 188.8.131.52.0 and later
Information in this document applies to any platform.
On : 184.108.40.206.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 220.127.116.11 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 18.104.22.168 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.
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