Characters are not displaying and causing error when generating report in Jaspersoft studio


please find below region code column  present in the sql server database. I  have fetched regioncode from database and written to xml file using .net .

when i try to generate the report  by mapping this xml file with jrxml report. i am getting following erro

<RegionCode> </RegionCode>


net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRException: Failed to parse the xml document.
Caused by: net.sf.jasperreports.engine.JRException: Failed to parse the xml document.
    at net.sf.jasperreports.engine.util.JRXmlUtils.parse(
    at net.sf.jasperreports.engine.util.JRXmlUtils.parse(
    at net.sf.jasperreports.engine.fill.JRFillDataset.contributeParameters(
    at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(
    at net.sf.jasperreports.engine.fill.BaseReportFiller.setParameters(
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(
    at net.sf.jasperreports.engine.fill.BaseFillHandle$
    at Source)
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 417; An invalid XML character (Unicode: 0x10) was found in the element content of the document.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at net.sf.jasperreports.engine.util.JRXmlUtils.parse(
    ... 9 more

vamsihari14's picture
Joined: Jul 13 2019 - 2:41am
Last seen: 10 months 1 week ago

0 Answers:

No answers yet