实体名称必须紧跟'&'在jasper报告中的实体引用错误中 [英] The entity name must immediately follow the '&' in the entity reference error in jasper reports

查看:801
本文介绍了实体名称必须紧跟'&'在jasper报告中的实体引用错误中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一份包含4个子报告的主报告。在iReport(版本4.1.3)中生成报告时,报告生成成功。但是,当报告部署在JBoss服务器中时,它会出现以下错误

 错误解析样式文本
org.xml .sax.SAXParseException:实体名称必须紧跟在实体引用jasper reports中的'&'后面。

与datsource没有任何映射的相应空白报告已成功生成。然而,从数据源获取值的那个抛出了这个错误。



你能否告诉我可能是什么问题。



iReport版本:4.1.3



数据源:XML数据源



请让我知道你是否需要更多信息。

解决方案

我的猜测是你的XML数据源在某些数据中包含'&'字符。 / p>

如果是,请用& amp; 替换'&'并尝试,它应该可以正常工作。



PS:如果他们帮助你,你应该接受答案。!!



编辑:
查看讨论在JasperForge论坛。说同样的


I have a Master report that has 4 subreports. The report gets generated successfully when I generate the report in iReport(version 4.1.3). However when the report gets deployed in JBoss server it gives the following error

Error Parsing Styled Text
"org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference jasper reports".

Its corresponding blank report that does not have any mapping with the datsource is getting generated successfully. However the one which fetches the values from the data source is throwing this error.

Could you please tell me what could be the issue.

iReport version: 4.1.3

Datasource: XML datasource

Please let me know if you need more information.

解决方案

My guess is that your XML datasource contains '&' character in some data.

If so replace '&' with & and try, it should work properly.

PS: You should accept answers if they help you.!!

EDIT : Check out this discussion at JasperForge Forum. Says the same

这篇关于实体名称必须紧跟'&'在jasper报告中的实体引用错误中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆