org.xml.sax.SAXParseException: Premature end of file.


Samebug tips1

The persistence_2_0.xsd enforces the order of the elements in the xml. Re-ordering them makes then error go away.


Solutions on the web451

Solution icon of googlegroups
via Google Groups by Ashok Nair, 1 year ago
Premature end of file.

Solution icon of googlegroups
via Google Groups by Lochan, 1 year ago
Premature end of file.

Solution icon of googlegroups
via Google Groups by ItaiOr, 1 year ago
Premature end of file.

Solution icon of googlegroups
via Google Groups by Tobias Schmidt, 4 months ago
Premature end of file.

Solution icon of atlassian
via Ecosystem JIRA by Scott Curtis, 3 months ago
Premature end of file.

Solution icon of jenkins
via Jenkins JIRA by John Sillers, 1 year ago
Premature end of file.

Solution icon of jenkins
via Jenkins JIRA by John Sillers, 1 year ago
Premature end of file.

Solution icon of oraclecommunity
via Oracle Community by 772876, 1 year ago
Premature end of file.

Solution icon of oraclecommunity
via Oracle Community by suqunet, 1 year ago
Premature end of file.

Stack trace

org.xml.sax.SAXParseException: Premature end of file.
	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 9 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
50 more bugmates