ORA-29532: Java call terminated by uncaught Java exception: java.security.AccessControlException
![ORA-29532: Java call terminated by uncaught Java exception: java.security.AccessControlException](https://syedsaadali.com/wp-content/uploads/2023/05/SyedSaadAli_ACE_linkedin-e1685600570483.png)
ERROR
ORA-29532: Java call terminated by uncaught Java exception: java.security.AccessControlException
exception in SendMail =ORA-29532: Java call terminated by uncaught Java exception: The PL/SQL to grant this is dbms_java.grant_permission( ‘APPS’, ‘SYS:java.io.FilePermission’, ‘/XXXXXX/sqlcom/out/MISSING_ATTRIBUTE_ITEMS_2111201409:23:51.xls’, ‘read’ )
SOLUTION
Login as SYS or SYSTEM user and then assign the required permission
$sqlplus / as sysdba
SQL>EXEC DBMS_JAVA.GRANT_PERMISSION(‘APPS’,’SYS:java.io.File/ Permission’,’/XXXXXX/sqlcom/out/*’,’read,write’);
PL/SQL procedure successfully completed.
SQL>commit;
Commit complete.