My Oracle Support Banner

Java Compilation is Failing With java.lang.IllegalArgumentException Error From 12.2 Onward (Doc ID 2310077.1)

Last updated on DECEMBER 12, 2019

Applies to:

Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 12.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.
*** Checked for relevance on 28-May-2019 ***

Symptoms

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.

 

Changes

Database is upgraded to 12.2.0.1 or above or this is a new implementation in 12.2 and above database.

Cause

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
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.