Error processing payload using SAX parser: Premature end of file errorIssue A working MID server might suddenly stop executing jobs and start showing Fatal Errors in the agent log such as: 05/20/20 10:29:08 (493) ECCSender.1 WARNING *** WARNING *** Error processing payload using SAX parser: Premature end of file.; reverting to using DOM parser 05/20/20 10:29:08 (493) ECCSender.1 WARNING *** WARNING *** org.xml.sax.SAXParseException; Premature end of file. 05/20/20 10:29:08 (555) ECCSender.1 Sending ecc_queue.172316877130000001.xml 05/20/20 10:29:08 (555) ECCSender.1 SEVERE *** ERROR *** Premature end of file. org.xml.sax.SAXParseException; Premature end of file. at ... In the wrapper log would show repeatedly: 2020/05/20 10:29:08 | [Fatal Error] :-1:-1: Premature end of file. And later this other error: 2020/05/20 10:29:08 | [Fatal Error] :1:145796: XML document structures must start and end within the same entity. Then we check the timestamp of the first occurrence of the error "2020/05/20 10:29:08 | [Fatal Error] :-1:-1: Premature end of file." on the wrapper log and we look around the same time on the agent log we can find a message like this: 2020-05-16 12:01:23 | java.util.logging.ErrorManager: 22020-05-16 12:01:26 | java.io.IOException: There is not enough space on the disk2020-05-16 12:01:26 | at java.io.FileOutputStream.writeBytes(Native Method)ReleaseAll versionsCauseThe XML being processed is too big for the available space and gets truncated, therefore the error "XML document structures must start and end within the same entity."ResolutionTo solve the issue provide more disk space to the mid server and restart the service.