Java Code Fails With ORA-29532 When Permission Is Been Granted By '*' At IP Subnet
(Doc ID 2398415.1)
Last updated on MARCH 04, 2022
Applies to:
Oracle Database Cloud Schema Service - Version N/A and laterOracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.
Symptoms
Executing a Java code from Database fails with
ORA-29532: java call terminated by uncaught java exception
java.security.AccessControlException: the Permission (java.net.SocketPermission 10.23.198.253:80 connect,resolve) has not been granted to SCOTT.
The PL/SQL to grant this is dbms_java.grant_permission( 'SCOTT', 'SYS:java.net.SocketPermission', '10.23.198.253:80', 'connect,resolve' )
Though permissions are already granted as below
exec dbms_java.grant_permission( 'SCOTT', 'SYS:java.net.SocketPermission', '10.23.198.*:80', 'connect,resolve' );
Changes
Permission is been granted by Asterisk ('*') at IP subnet level which is not left most position.
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 |
References |