Support Article
Failed to compile generated Java Stream XML rule for XML Stream
SA-36979
Summary
While executing Connect SOAP, getting a compilation error as below.
The XML stream rule is larger and getting byte limit exceeded for the stream rule.
Error Messages
Failed to compile generated Java com.pegarules.generated.xml.ra_stream_pyanyns_pyanyname_900794c86d705c917fb816ae876e6c42: ----------
1. ERROR in /com/pegarules/generated/xml/ra_stream_pyanyns_pyanyname_900794c86d705c917fb816ae876e6c42.java (at line 71)
public void execute() {
^^^^^^^^^
The code of method execute() is exceeding the 65535 bytes limit
----------
1 problem (1 error)
Compile failed.
Steps to Reproduce
1) Upload a WSDL file with very large request data, so that it could generate a large XML stream.
2) Run the resulting Connect-SOAP rule.
Root Cause
A defect or configuration issue in the operating environment where the xml stream is generating the dynamic java method which is exceeding the 65535 bytes limit. This is Java limitation.
Resolution
Perform the following local-change:
Simplify the rule which is causing this error, so that the resulting Java method size is 65535 or less.
Published May 14, 2017 - 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.