Intermittent error SAXParseException: Premature end of file

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

Description:

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.

 

ERROR:

UITrace.log shows

- {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file

SAX_Error.jpg

 

CAUSE:

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.

 

Solution:

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" />
to
<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.
http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html)


3. Start the services.