Support Article
Failed to compile generated Java
SA-15883
Summary
The code of method execute() fails to compile when exceeding the 65535 bytes limit.
Error Messages
com.pegarules.generated.html_section.sh_stream_pyuserworklist_gridlayout_6f62380c2e693b2e23ec9bcfe1612099: ---------- 1. ERROR in com/pegarules/generated/html_section/sh_stream_pyuserworklist_gridlayout_6f62380c2e693b2e23ec9bcfe1612099.java (at line 81) public void execute() { ^^^^^^^^^ The code of method execute() is exceeding the 65535 bytes limit ---------- 1
Steps to Reproduce
Create section
Drag Grid layout and refer Page list
Enable Sorting
sorting for each Property in grid
Root Cause
An issue in the custom application code or rules. The Java limit for the size of a method in a class is 65535 bytes. This problem is with with section/grid layout. Similar problem previously encountered with ListView and DecisionTable rules.
Resolution
Splitting up rules and chaining them together as need be. Please also review the following PDN article for the same:
https://pdn.pega.com/performance/issue-java-64k-method-size-limit
Published January 31, 2016 - 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.