Intermittent error SAXParseException: Premature end of file

Document ID : KB000028812
Last Modified Date : 14/02/2018
Show Technical Document Details


Intermittent errors are seen when trying to create SSRM reservations.

If the reservation attempt is cancelled the next attempt to create one will most likely succeed with no error.



UITrace.log shows

- {}stackTrace:org.xml.sax.SAXParseException: Premature end of file




The AJP Connector element in the tomcat sever.xml file represents a Connector component that communicates with a web connector via the AJP protocol.
This is used where Tomcat is integrated into an existing (or new) Apache installation.
Problems with the default value have been reported when sending packets.



Increase the default packet size for Tomcat

1. Stop tomcat and apache
2. take backup of server.xml which is under '...\CA\SpectrumAM\tomcat\conf'

- Modify the line
<Connector port="8009" enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />
<Connector port="8009" enableLookups="false" redirectPort="8443"
packetSize="xxxx' protocol="AJP/1.3" />

(Default size is 8192 and max is 65536 so pick a size you are ok with.

3. Start the services.