Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.ExceptionInInitializerError when accessing frmall.jar

Juergen MengeDec 21 2018 — edited Jan 10 2019

Hello,
we are using FormsOptimizer, a library of Java Beans and PJC to modernize Forms applications. The sample application includes all the features of the library and runs fine on our desktops with Win7 or Win10 (Forms 12.2.1.3).

The customer is using Windows Server 2012 R2. When running the sample form all the required jar files are loaded into the cache but we get the following error right after the start of the form:

     Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError

We get the same error with the IE11/JPI but also with FSAL. It happens when a class in our jar file tries to import the class oracle.forms.properties.FormAction from frmall.jar.
The only information I found at support.oracle.com is Bug 11926375 : AWT-EVENTQUEUE-2 JAVA.UTIL.PROPERTYPERMISSION JAVA.HOME READ WITH JRE 1.6.0_24. But the recommended workaround to use a java.policy file with grants didn't solve the problem.

So we used the Microsoft ProcessMonitor to log all file operations on jar files. Here is the output of all unsuccesful operations on jar files when running the sample form with FSAL:

Time of Day

Process Name

PID

Operation

Path

Result

11:20:31.3062577 AM

java.exe

6876

QueryDirectory

D:\oracle\Java\jdk1.8.0_181\jre\lib\sunrsasign.jar

NO SUCH FILE

11:20:31.5887285 AM

java.exe

6876

QueryOpen

D:\oracle\Java\jdk1.8.0_181\jre\lib\sunrsasign.jar

NAME NOT FOUND

11:20:31.5896762 AM

java.exe

6876

QueryDirectory

D:\oracle\Java\jdk1.8.0_181\jre\lib\sunrsasign.jar

NO SUCH FILE

11:20:31.5897778 AM

java.exe

6876

QueryOpen

D:\oracle\Java\jdk1.8.0_181\jre\lib\sunrsasign.jar

NAME NOT FOUND

11:20:31.5921263 AM

java.exe

6876

QueryOpen

D:\oracle\Java\jdk1.8.0_181\jre\lib\sunrsasign.jar

NAME NOT FOUND

11:20:31.6020840 AM

httpd.exe

9472

CreateFile

D:\oracle\user_projects\domains\fr_domain\config\fmwconfig\components\OHS\instances\ohs1\htdocs\forms\java\frmall.jar

PATH NOT FOUND

11:20:31.6022170 AM

httpd.exe

9472

QueryOpen

D:\oracle\user_projects\domains\fr_domain\config\fmwconfig\components\OHS\instances\ohs1\htdocs\forms\java\frmall.jar

PATH NOT FOUND

11:20:31.6077545 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\frmopt.jar

BUFFER OVERFLOW

11:20:31.6077672 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\frmopt.jar

BUFFER OVERFLOW

11:20:31.6098517 AM

httpd.exe

9472

CreateFile

D:\oracle\user_projects\domains\fr_domain\config\fmwconfig\components\OHS\instances\ohs1\htdocs\forms\java\frmwebutil.jar

PATH NOT FOUND

11:20:31.6099729 AM

httpd.exe

9472

QueryOpen

D:\oracle\user_projects\domains\fr_domain\config\fmwconfig\components\OHS\instances\ohs1\htdocs\forms\java\frmwebutil.jar

PATH NOT FOUND

11:20:31.6144044 AM

httpd.exe

9472

CreateFile

D:\oracle\user_projects\domains\fr_domain\config\fmwconfig\components\OHS\instances\ohs1\htdocs\forms\java\jacob.jar

PATH NOT FOUND

11:20:31.6145241 AM

httpd.exe

9472

QueryOpen

D:\oracle\user_projects\domains\fr_domain\config\fmwconfig\components\OHS\instances\ohs1\htdocs\forms\java\jacob.jar

PATH NOT FOUND

11:20:31.6190944 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\commons-collections4-4.1.jar

BUFFER OVERFLOW

11:20:31.6191062 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\commons-collections4-4.1.jar

BUFFER OVERFLOW

11:20:31.6213573 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\commons-csv-1.4.jar

BUFFER OVERFLOW

11:20:31.6213691 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\commons-csv-1.4.jar

BUFFER OVERFLOW

11:20:31.6235371 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\commons-io-2.5.jar

BUFFER OVERFLOW

11:20:31.6235484 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\commons-io-2.5.jar

BUFFER OVERFLOW

11:20:31.6260068 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\commons-lang3-3.5.jar

BUFFER OVERFLOW

11:20:31.6260205 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\commons-lang3-3.5.jar

BUFFER OVERFLOW

11:20:31.6284070 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\gson-2.8.0.jar

BUFFER OVERFLOW

11:20:31.6284188 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\gson-2.8.0.jar

BUFFER OVERFLOW

11:20:31.6306274 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\jcalendar-1.4.jar

BUFFER OVERFLOW

11:20:31.6306387 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\jcalendar-1.4.jar

BUFFER OVERFLOW

11:20:31.6328630 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\poi-3.15.jar

BUFFER OVERFLOW

11:20:31.6328742 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\poi-3.15.jar

BUFFER OVERFLOW

11:20:31.6350179 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\poi-ooxml-3.15.jar

BUFFER OVERFLOW

11:20:31.6350296 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\poi-ooxml-3.15.jar

BUFFER OVERFLOW

11:20:31.6372026 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\poi-ooxml-schemas-3.15.jar

BUFFER OVERFLOW

11:20:31.6372138 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\poi-ooxml-schemas-3.15.jar

BUFFER OVERFLOW

11:20:31.6395046 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\poi-scratchpad-3.15.jar

BUFFER OVERFLOW

11:20:31.6395163 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\poi-scratchpad-3.15.jar

BUFFER OVERFLOW

11:20:31.6417704 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\xbean.jar

BUFFER OVERFLOW

11:20:31.6417816 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\xbean.jar

BUFFER OVERFLOW

11:20:31.6440441 AM

httpd.exe

9472

QueryInformationVolume

D:\applications\frmopt\lib\xmlbeans-2.6.0.jar

BUFFER OVERFLOW

11:20:31.6440558 AM

httpd.exe

9472

QueryAllInformationFile

D:\applications\frmopt\lib\xmlbeans-2.6.0.jar

BUFFER OVERFLOW

11:20:31.9851597 AM

java.exe

6876

ReadFile

D:\oracle\frmsal.jar

END OF FILE


It is obvious that a buffer overflow is happening with all our libraries. Not sure if that is the reason for the initialization error but first I tried to resolve these buffer overflow issues.
Increasing the heap size in the webutiljpi.htm had no effect. In FSAL I even do not know where to set the heap size: in the text file or on the command line.
Now I have two questions:
- How to solve the issues with Buffer Overflow ?
- What could be the reason for the initialization error ?

Any help is appreciated.

Juergen

Comments
Post Details
Added on Dec 21 2018
10 comments
579 views