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

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

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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