Wednesday, August 8, 2018

Oracle Forms not opening form with AWTPermission

Symptoms: The Forms application does not open another form and freezes any action on the screen.


Cause: As the Forms is powered by Java engine, there are a few policies that need to be implicit allowable on the java configuration.
You can also see the errors when opening the java console right after the application frezes the screen.
This fix might not be enought, so before proceeding with that, make sure you have installed the correct Java version on the client side.


Solution: Find and edit the <<java.policy>> file located into your computer and append the piece of lines below.
You might have several files depending the way you have tools installed, so proceed with the same solution for each file you have.

permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
permission java.awt.AWTPermission "accessClipboard";
permission java.lang.RuntimePermission "accessClassInPackage.sun.java2d";
permission java.lang.RuntimePermission "accessClassInPackage.sun.awt";
permission java.lang.RuntimePermission "*";
permission java.util.PropertyPermission "java.home","read";
permission java.util.PropertyPermission "user.home","read";



No comments:

Post a Comment

Configure the Oracle DB Access Control List to avoid error like ORA-24247: network access denied

Symptoms:  You try to make external connections from the Oracle Database and receive erros like ORA-24247: network access denied by access c...