There is no change in XML as well as Java parsing code. If input stream is not closed properly then this exception may happen.
This code has been working for ages (7 years), only after recent server crash, we faced this problem on one of the servers. Does it work if you create the Input Source from a File Input Stream instead of a File Reader?
i.e if read 2nd time from same input stream in single operation then 2nd call will get this exception.
SAXParse Exception: cvc-type.3.1.1: Element 'body' is a simple type, so it cannot have attributes, excepting those whose namespace name is identical to ' and whose [local name] is one of 'type', 'nil', 'schema Location' or 'no Namespace Schema Location'.
Reads the instance document from different validation sources. Notice that, if no error handler is set, then both errors and fatal errors throw an exception and thus are reported by the validator.
This is different from DTD validation where errors, and in particular, validation errors, are not reported.
You're now ready to take a deeper look at the process of XML Schema validation.
Although a full treatment of XML Schema is beyond the scope of this tutorial, this section shows you the steps you take to validate an XML document using an XML Schema definition.