Jump to content
Changes to the Jaspersoft community edition download ×

xml parser error while compiling


Recommended Posts

By: Ahsa - asha_2000

xml parser error while compiling

2003-11-11 01:17

I designed a report using ireport tool which gave me an xml file and used JasperCompileManager to compile that xml while doing so it throws the exception below. Pl. help me out

 

0 [main] ERROR digester.Digester - Parse Warning at line 1 column -1: Declared

encoding "UTF-8" does not match actual one "Cp1252"; this might not be an error.

 

org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not match actual o

ne "Cp1252"; this might not be an error.

at org.apache.crimson.parser.Parser2.warning(Parser2.java:3148)

at org.apache.crimson.parser.Parser2.readEncoding(Parser2.java:2946)

at org.apache.crimson.parser.Parser2.maybeTextDecl(Parser2.java:2802)

at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.jav

a:2880)

at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)

 

at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)

at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)

at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

 

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCom

pileManager.java:121)

at ReportGenerator.<init>(ReportGenerator.java:23)

at ReportGenerator.main(ReportGenerator.java:40)

Exception occured...

org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not match actual o

ne "Cp1252"; this might not be an error.

at org.apache.crimson.parser.Parser2.warning(Parser2.java:3148)

at org.apache.crimson.parser.Parser2.readEncoding(Parser2.java:2946)

at org.apache.crimson.parser.Parser2.maybeTextDecl(Parser2.java:2802)

at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.jav

a:2880)

at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)

 

at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)

at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)

at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

 

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCom

pileManager.java:121)

at ReportGenerator.<init>(ReportGenerator.java:23)

at ReportGenerator.main(ReportGenerator.java:40)

 

NESTED BY :

org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not match actual o

ne "Cp1252"; this might not be an error.

at org.apache.crimson.parser.Parser2.warning(Parser2.java:3148)

at org.apache.crimson.parser.Parser2.readEncoding(Parser2.java:2946)

at org.apache.crimson.parser.Parser2.maybeTextDecl(Parser2.java:2802)

at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.jav

a:2880)

at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)

 

at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)

at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)

at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

 

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCom

pileManager.java:121)

at ReportGenerator.<init>(ReportGenerator.java:23)

at ReportGenerator.main(ReportGenerator.java:40)

 

NESTED BY :

dori.jasper.engine.JRException: Declared encoding "UTF-8" does not match actual

one "Cp1252"; this might not be an error.

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:397)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCom

pileManager.java:121)

at ReportGenerator.<init>(ReportGenerator.java:23)

at ReportGenerator.main(ReportGenerator.java:40)

Caused by: org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not mat

ch actual one "Cp1252"; this might not be an error.

at org.apache.crimson.parser.Parser2.warning(Parser2.java:3148)

at org.apache.crimson.parser.Parser2.readEncoding(Parser2.java:2946)

at org.apache.crimson.parser.Parser2.maybeTextDecl(Parser2.java:2802)

at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.jav

a:2880)

at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...