Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us