我应该修改哪个XML文件&到&

时间:2015-10-04 06:01:42

标签: xml exception jasper-reports

以下是发生的例外情况。我知道修复,但我怎么知道我应该编辑哪个XML?

-- Occured 2629 times -----------------------------------------
 FATAL 871  [JRStyledTextParser] Error parsing styled text. 
org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at net.sf.jasperreports.engine.util.JRStyledTextParser.parse(JRStyledTextParser.java:215)
at net.sf.jasperreports.engine.util.JRStyledTextParser.getStyledText(JRStyledTextParser.java:254)
at net.sf.jasperreports.engine.fill.JRFillTextElement.getStyledText(JRFillTextElement.java:1078)
at net.sf.jasperreports.engine.fill.JRFillTextElement.getText(JRFillTextElement.java:1096)
at net.sf.jasperreports.engine.fill.JRFillTextField.prepare(JRFillTextField.java:524)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:329)
at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:419)
at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:378)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2035)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:760)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:290)

1 个答案:

答案 0 :(得分:0)

需要检查碧玉中的哪个字段可能会导致&登录输出,并在那里应用您的修复程序。在我的情况下,由于我的customerName字段派生为Law&伙伴。