org.jdom.input.JDOMParseException: Error on line -1: Premature end of file.

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

,

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, 10 months 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.jdom.input.JDOMParseException: Error on line -1: 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.jdom.input.SAXBuilder.build(SAXBuilder.java:370)

Users with the same issue

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

Know the solutions? Share your knowledge to help other developers to debug faster.