Support Article
Service-SOAP fails to run with byte limit error
SA-17339
Summary
When a user runs a SOAP service, it fails with the compilation error on screen.
Error Messages
Failed to compile generated Java com.pegarules.generated.xml.ra_stream_pyanyns_pyanyname_7cb81bf81dae7e823d472bde0bec0b72: ----------
1. ERROR in /com/pegarules/generated/xml/ra_stream_pyanyns_pyanyname_7cb81bf81dae7e823d472bde0bec0b72.java (at line 72)
public void execute() {
^^^^^^^^^
The code of method execute() is exceeding the 65535 bytes limit
Steps to Reproduce
1) Run a SOAP service.
Root Cause
A defect or configuration issue in the operating environment.
One of the XML stream rule was taking more size which is a limitation at java end. Whenever method size exceeds 65535 bytes limit we see this kind of exception/error.
Resolution
Make the following change to the operating environment:
Split the large XML stream rules into two or more XML stream rules depends on requirement and then call using Apply-Rule mapping mode.
Published January 31, 2016 - 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.