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

Solutions on the web

via hivmr.com by Unknown author, 1 year ago
via hivmr.com by Unknown author, 1 year ago
via Oracle Community by 807603, 1 week ago
via Oracle Community by 807603, 1 week ago
via Oracle Community by 843834, 1 year ago
via hivmr.com by Unknown author, 1 year ago
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:899)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at net.sf.jasperreports.engine.xml.JRPrintXmlLoader.loadXML(JRPrintXmlLoader.java:151)
at net.sf.jasperreports.engine.xml.JRPrintXmlLoader.load(JRPrintXmlLoader.java:103)
at net.sf.jasperreports.view.JRViewer.loadReport(JRViewer.java:1376)
at net.sf.jasperreports.view.JRViewer.init(JRViewer.java:243)
at net.sf.jasperreports.view.JRViewer.init(JRViewer.java:214)
at net.sf.jasperreports.view.JasperViewer.init(JasperViewer.java:140)
at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:397)
at br.com.abril.contratos.Gerar.geraRelatorio(Gerar.java:38)
at br.com.abril.contratos.Gerar.main(Gerar.java:47)

Users with the same issue

2 times, 18 hours ago
17 times, 5 days ago
2 times, 6 days ago
20 times, 1 week ago
Once, 2 months ago

Write tip

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