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 May 10, 2017 - Updated July 6, 2017

Have a question? Get answers now.

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