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

Exception in opening Listview rules

SA-30091

Summary



Exception in opening Listview rules - The code of method execute() is exceeding the 65535 bytes limit.


Error Messages



[ WebContainer : 10] [TABTHREAD0] [ CCORSBWFC:01.02.01] ( internal.mgmt.Executable) ERROR _P1 - Exception
com.pega.pegarules.pub.PRRuntimeException: Failed to compile generated Java com.pegarules.generated.listview.ra_stream_distributionswbfinalqc_all_b237aac072ca0363a5147c33fc1071ec: ----------
1. ERROR in /com/pegarules/generated/listview/ra_stream_distributionswbfinalqc_all_b237aac072ca0363a5147c33fc1071ec.java (at line 72)
public void execute() {
^^^^^^^^^
The code of method execute() is exceeding the 65535 bytes limit
----------
1 problem (1 error)
Compile failed.

at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:4087)
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:3888)
at com.pegarules.generated.activity.ra_action_displayview_2ae72eb33d5f0e642832b88fe5ad4f53.step5_circum0(ra_action_displayview_2ae72eb33d5f0e642832b88fe5ad4f53.java:604)
at com.pegarules.generated.activity.ra_action_displayview_2ae72eb33d5f0e642832b88fe5ad4f53.perform(ra_action_displayview_2ae72eb33d5f0e642832b88fe5ad4f53.java:140)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3527)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10674)
at com.pegarules.generated.activity.ra_action_process_6784f205a8cbc80df1edfbf10fc28535.step36_circum0(ra_action_process_6784f205a8cbc80df1edfbf10fc28535.java:3672)
at com.pegarules.generated.activity.ra_action_process_6784f205a8cbc80df1edfbf10fc28535.perform(ra_action_process_6784f205a8cbc80df1edfbf10fc28535.java:753)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3527)
at com.pegarules.generated.activity.ra_action_showview_35b594c54a8709e1cb73202c8ccb0050.step8_circum0(ra_action_showview_35b594c54a8709e1cb73202c8ccb0050.java:965)
at com.pegarules.generated.activity.ra_action_showview_35b594c54a8709e1cb73202c8ccb0050.perform(ra_action_showview_35b594c54a8709e1cb73202c8ccb0050.java:188)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3527)
at com.pega.pegarules.jsptags.ListViewTag.doEndTag(ListViewTag.java:289)
at com.pegarules.generated.html_section.ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.property_Assign_WorkBasket_ListView(ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.java:720)
at com.pegarules.generated.html_section.ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.field_ListView_1(ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.java:791)
at com.pegarules.generated.html_section.ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.layoutBody_1(ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.java:815)
at com.pegarules.generated.html_section.ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.pzLayoutBodyWrapper_1(ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.java:462)
at com.pegarules.generated.html_section.ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.pzLayout_1(ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.java:828)
at com.pegarules.generated.html_section.ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.execute(ra_stream_embeddeddistributionswbfinalqc_684693b1c6a32b762e6ed168d3cb0604.java:119)
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:4060)
at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuleRuntime.getSectionStream(AutoStreamRuleRuntime.java:149)
at com.pegarules.generated.html_harness.ra_stream_distributionswbfinalqcharness_c1f6c0e815821368f7d74f17e864c1e0.includeSectionBody_1(ra_stream_distributionswbfinalqcharness_c1f6c0e815821368f7d74f17e864c1e0.java:2936)
at com.pegarules.generated.html_harness.ra_stream_distributionswbfinalqcharness_c1f6c0e815821368f7d74f17e864c1e0.generatePegaHarnessDiv_1(ra_stream_distributionswbfinalqcharness_c1f6c0e815821368f7d74f17e864c1e0.java:2657)
at com.pegarules.generated.html_harness.ra_stream_distributionswbfinalqcharness_c1f6c0e815821368f7d74f17e864c1e0.execute(ra_stream_distributionswbfinalqcharness_c1f6c0e815821368f7d74f17e864c1e0.java:707)
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:4060)
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:3888)
at com.pegarules.generated.activity.ra_action_displayharnesswithclass_4cc9f9e9cb9b892dd9c83273e3c08a6c.step4_circum0(ra_action_displayharnesswithclass_4cc9f9e9cb9b892dd9c83273e3c08a6c.java:495)
at com.pegarules.generated.activity.ra_action_displayharnesswithclass_4cc9f9e9cb9b892dd9c83273e3c08a6c.perform(ra_action_displayharnesswithclass_4cc9f9e9cb9b892dd9c83273e3c08a6c.java:120)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3527)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10674)
at com.pegarules.generated.activity.ra_action_uiactiondisplayharness_ecc44a1b5f3f465052e21e0d2e62e637.step4_circum0(ra_action_uiactiondisplayharness_ecc44a1b5f3f465052e21e0d2e62e637.java:578)
at com.pegarules.generated.activity.ra_action_uiactiondisplayharness_ecc44a1b5f3f465052e21e0d2e62e637.perform(ra_action_uiactiondisplayharness_ecc44a1b5f3f465052e21e0d2e62e637.java:123)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3527)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10674)


Steps to Reproduce

  1. Create a ListView report with 20+ columns having large amount of data.
  2. Run the report and observe the exception.


Root Cause

The root cause of this problem is due to list view having a large enough number of columns and enabling sorting and filtering causes the generated code to exceed the Java 64K bytecode limit.
 
Prior to PRPC 7.1, most of the section content used to reside in a single execute() method due to JSP based generation. In PRPC 7.x onwards, We have converted the generation from JSP to Java methods.
 
There is a JAVA limititation of not creating a JAVA byte code of more than 65353 bytes. If applied sorting and filtering with large number of fields to be displayed in ListView report, the internal java code generated is exceeding 65535 bytes limit.
 

Resolution



Local Change:-
  1. Remove unnecessary fields from the list view. 
  2. Enable sorting for the list view to be within the Java 64K bytecode limit.
  3. Upgrade ListView to Report Definition.

List View is deperecated as per 7.2 release notes under the “Updating from Prior Versions” tab.
 
https://pdn.pega.com/release-notes?version=17261&topic=0
Suggest Edit

Published November 10, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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