org.xml.sax.SAXParseException: Content is not allowed in prolog.

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 oxygenxml.com by Unknown author, 1 year ago
via oxygenxml.com by Unknown author, 1 year ago
via Server Fault by rvdginste
, 1 year ago
Content is not allowed in prolog.
via Stack Overflow by Gendaful
, 2 years ago
An invalid XML character (Unicode: 0x5c) was found in the public identifier.
via Atlassian JIRA by Bogdan Dziedzic [Atlassian], 1 year ago
The entity name must immediately follow the '&' in the entity reference.
via Atlassian JIRA by Bogdan Dziedzic [Atlassian], 1 year ago
The entity name must immediately follow the '&' in the entity reference.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
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.XMLScannerXerces.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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)
at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:397)
at net.sf.saxon.event.Sender.send(Sender.java:156)
at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:32)
at org.apache.fop.cli.InputHandlerFOP.transformTo(Unknown Source)
at org.apache.fop.cli.InputHandlerFOP.renderTo(Unknown Source)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:197)

Users with the same issue

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
5 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
52 more bugmates

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