Support Article

Html Rule is not executing

SA-29663

Summary



When running HTML rule 'paymentTxn’, an error occurs.


Error Messages



“Failed to compile generated Java com.pegarules.generated.html.sh_stream_paymenttxn_1884fb6b1119ebf19989c64bd39a237d: ---------- 1. ERROR in /com/pegarules/generated/html/sh_stream_paymenttxn_1884fb6b1119ebf19989c64bd39a237d.java (at line 75) public void execute() { ^^^^^^^^^ The code of method execute() is exceeding the 65535 bytes limit ---------- 1 problem (1 error) Compile failed.”


Steps to Reproduce

  1. Execute HTML Rule 'paymentTxn’.


Root Cause



Tried to reproduce the sme in in-house system and is reproduced successfully.
When we compile a rule, if the generated code exceeds the Java and JSP 64k size limit and we get this error message.

This is because rule is too large to compile that it exceeds the limit. This is not a PRPC issue but a java compiler constraint. We should be able to work around this by simplifying the HTML or by splitting the HTML.

Resolution



Recommended following changes.
  1. Breakdown the HTML rule 'paymentTxn' into another HTML rule.
  2. Include it in current HTML rule.

Published October 27, 2016 - Updated November 5, 2016

Have a question? Get answers now.

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