net.sf.jasperreports.engine.JRException: 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 Coderanch by Kasun Wixkramanayake, 1 year ago
org.xml.sax.SAXParseException: Content is not allowed in prolog.
via jaspersoft.com by Unknown author, 1 year ago
org.xml.sax.SAXParseException: Attribute "splitType" must be declared for element type "band".
via Stack Overflow by Hassan Taha Lamhidri
, 1 year ago
org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'uuid' is not allowed to appear in element 'jasperReport'.
via GitHub by shreyanshvaghela
, 2 years ago
org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'paragraph'. No child element is expected at this point.
via jaspersoft.com by Unknown author, 1 year ago
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'style'. One of '{" , " , " , " , " , " , " , " , " , " , " , " , " , " , " , " , " }' is expected.
via aspose.com by Unknown author, 2 years ago
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'bc:asposebarcode'. One of '{"http://jasperreports.sourceforge.net/jasperreports":component}' is expected.
net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1017)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:241)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:228)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:216)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:170)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:154)
at javaapplication15.Main.add(Main.java:53)
at javaapplication15.Main.main(Main.java:40)

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, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
47 more bugmates

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