Support Article
Errors display on creating or updating a function
SA-57985
Summary
Errors display when creating a new function or updating any existing function.
Error Messages
The code for static initializer is exceeding 65535 bytes limit
Steps to Reproduce
- Create a new function in the library containing too many RUFs.
- Add the Java source and save the function
Root Cause
In user's environment, the library has 370 Rule-Utility-Functions (RUFs) defined. So the class generated for this library contains all these function definitions in static blocks whose size exceeds the 65535 byte limit. Hence, the error occurs.
Library is a way to group related RUFs (functions). Creating every RUF together in the same library is similar to a flat structure which results in compilation errors. In general, the number of RUFs per library should always be reasonable.
Resolution
Perform the following local-change:Move some of the RUFs out of the original library to the new one.
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.