Support Article
Fail to Checkout / Save As an HTML Frag after Pega 7 Upgrade
Summary
After an upgrade to Pega 7.1.7, user is unable to checkout or Save As an HTML fragment rule. The HTML fragment rule has <div> elements that contain a long list of attributes.
If some of these attributes are dropped, the HTML fragment rule is saved successfully.
Error Messages
Caused by: java.lang.StackOverflowError
at java.util.regex.Pattern$5.isSatisfiedBy(Pattern.java:5151)
at java.util.regex.Pattern$5.isSatisfiedBy(Pattern.java:5151)
at java.util.regex.Pattern$CharProperty.match(Pattern.java:3694)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4615)
at java.util.regex.Pattern$Loop.match(Pattern.java:4692)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4615)
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)
Steps to Reproduce
1. Open an HTML Fragment rule in Designer Studio that has <div> elements with a long list of attributes.
2. Click "Check Out" or "Save As".
Root Cause
The issue is due to a StackOverflowError as displayed in the PegaRULES log file.
Resolution
In this case, increasing the JVM stack size by setting the Java Options as -Xss40m helped resolve the issue.
Published October 1, 2015 - 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.