Java Compilation is Failing With java.lang.IllegalArgumentException Error From 12.2 Onward
Last updated on FEBRUARY 27, 2018
Applies to:Oracle Database - Enterprise Edition - Version 126.96.36.199 and later
Information in this document applies to any platform.
*** Checked for relevance on 27th Feb 2018 ***
Java stored procedure that uses server-side SQLJ syntax fails with "java.lang.IllegalArgumentException" when trying to load/compile in Oracle 12.2 version and above. But the same code compiles and works fine in lower versions. For example, the code given below will fail when you try to load it using loadjava utility.
Save the below code as "TestSQLJ.java" and try to load it using the loadjava utility.
Database is upgraded to 188.8.131.52 or above or this is a new implementation in 12.2 and above database.
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