org.xml.sax.SAXParseException

Content is not allowed in prolog.

Solutions on the web2472

  • via Coderanch by Abder-Rahman Ali, 7 months ago
    Content is not allowed in prolog.
  • Content is not allowed in prolog.
  • via Coderanch by ronnie villareal, 7 months ago
    Content is not allowed in prolog.
  • Stack trace

    • 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 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.apache.commons.digester.Digester.parse(Digester.java:1666) 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 net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:328) at br.com.abril.contratos.Gerar.geraRelatorio(Gerar.java:38) at br.com.abril.contratos.Gerar.main(Gerar.java:47)

    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

    3 times, 2 weeks ago
    2 times, 2 weeks ago
    4 times, 2 months ago
    Once, 2 months ago
    15 times, 2 months ago
    40 more bugmates