Support Article
SAXParseException: Content is not allowed in prolog
SA-105467
Summary
When opening rules in Pega Designer Studio or the Case Manager portal, error occurs and the UI or the rules display incorrectly in the Stage environment. Pega application is deployed in the WebSphere Application Server (WAS).
Error Messages
com.pega.pegarules.pub.clipboard.InvalidStreamError: InvalidStream com.pega.pegarules.data.internal.clipboard.XMLStream.newStream(String, StorageStream) sax parse error: Content is not allowed in prolog.
......
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
Steps to Reproduce
- Log in to the application.
- Open the rules to navigate through the system.
Root Cause
HTTP Request is corrupted before it reaches the Pega application. In the HTTP POST body, null characters are received. Hence, the application cannot process the expected response. Therefore, the attachments on the work object are not displayed.
In the PegaRules logs, SAX Parse error or SAXParseException occurred. According to the IBM WebSphere logs, the InputStream is read twice. Hence, when the second read happens, there is no data in the POST body for the Pega Engine to parse the Request. This lead to the SAX Parse Exception in the PegaRules log file.
Resolution
Make the following WAS configuration change to enable the rereading of the POST data.
com.ibm.ws.webcontainer.enableMultiReadOfPostData = true
Published June 3, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.