giriprasath Posted March 1, 2023 Share Posted March 1, 2023 Caused by: org.exolab.castor.xml.MarshalException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.{File: [not available]; line: 1; column: 1} at org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:919) at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:775) at net.sf.jasperreports.util.CastorUtil.read(CastorUtil.java:399) Link to comment Share on other sites More sharing options...
Jivan Phadtare Posted March 1, 2023 Share Posted March 1, 2023 Hello,It seems that, you would get this error if the file is encoded as Unicode. Kindly check your xml file and try saving the file to ANSI or UTF-8 encoding.For more details you can refer to below article. Hope this will help you.https://community.jaspersoft.com/wiki/content-not-allowed-prolog Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now