Support Article
Circumstanced section does not render at runtime
SA-53713
Summary
A circumstanced section does not render at runtime.
Error Messages
Error in assembling the rule {pxObjClass=Rule-HTML-Section, pxAspect=Stream, pyClassName=XXX-FW-XXXFW-Work, pyStreamName=YYYYYYY}
Failed to compile generated Java com.pegarules.generated.html_section.ra_stream_YYYYY_dd28a2b585c2ff77ca78a2e68873bb15:
1. ERROR in /com/pegarules/generated/html_section/ra_stream_YYYYY_dd28a2b585c2ff77ca78a2e68873bb15.java (at line 54)
public class ra_stream_YYYYY_dd28a2b585c2ff77ca78a2e68873bb15 extends StreamBuilderSection implements StreamBuilder, FUASupport, FUAReusable, WebAllowable {
Too many constants, the constant pool for ra_stream_YYYYY_dd28a2b585c2ff77ca78a2e68873bb15 would exceed 65536 entries
1 problem (1 error)
Compile failed.
Steps to Reproduce
- Create a section with multiple Repeat Grid layouts with numerous columns
- Create 45 to 50 circumstance versions of the section rule with different repeat grid columns.
- Create a case and render the section at runtime.
Root Cause
As circumstanced sections have multiple dependencies and are assembled in a single Java file, there are multiple references to the constants which exceed the 65536 entries allowed by JVM.
Resolution
An enhancement request, FDBK-25285, is created for consideration by Pega Product Management.
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.