Support Article

Failed to compile generated Java Stream XML rule for XML Stream



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/ (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.


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 April 24, 2017 - Updated May 14, 2017

Have a question? Get answers now.

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