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

StackOverflowError and harness creation is failing

SA-37762

Summary



After upgrading to Pega 7.2.2 from Pega 7.1.7 developer is not able to create a new Harness rule or do "save as " of existing harness rules.
In the rule form after clicking Save button the rule is not created and no error message is thrown on the screen.

Error Messages



The following error appears in the PegaRULES log file :-

com.pega.pegarules.pub.PRRuntimeError: PRRuntimeError
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:712)
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:465)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3203)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:391)

Caused by: java.lang.StackOverflowError
at java.util.regex.Pattern$BranchConn.match(Pattern.java:4466)
at java.util.regex.Pattern$Curly.match1(Pattern.java:4185)
at java.util.regex.Pattern$Curly.match(Pattern.java:4134)
at java.util.regex.Pattern$Branch.match(Pattern.java:4502)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4556)
at java.util.regex.Pattern$LazyLoop.match(Pattern.java:4745)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4615)



Steps to Reproduce



Create a new harness or 'save as' an existing harness.


Root Cause



As seen in the PegaRULES log the issue happened due to stackoverflow that reflects the JVM stack size for the Pega application server is not sufficiently set.

Resolution



Increase the JVM stack size with the -Xss40m Java argument.

Published July 6, 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