Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    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 web

via Oracle Community by 772876, 1 year ago
Error on line -1: Premature end of file.
via Stack Overflow by Charles Bedford
, 2 years ago
Error on line 1: Attribute name "xml:xml" associated with an element type "xfdf" must be followed by the ' = ' character.
via sourceforge.net by Unknown author, 2 years ago
Error on line -1: Premature end of file.
via Coderanch by selva raja, 1 year ago
Error on line 1: Content is not allowed in prolog.
via GitHub by yawlfoundation
, 2 years ago
Error on line 1: Content is not allowed in prolog.
via Oracle Community by 843834, 1 year ago
Error on line 1: Content is not allowed in prolog.
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.XMLScanner.reportFatalError(Unknown Source)	at org.apache.xerces.impl.XMLDocumentScannerImpl$XMLDeclDispatcher.dispatch(Unknown Source)	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:370)