当前位置: 代码迷 >> ASP >> JasperReport错误
  详细解决方案

JasperReport错误

热度:356   发布时间:2012-07-27 11:03:00.0
JasperReport异常

net.sf.jasperreports.engine.JRException: Error retrieving field value from bean :

?

填充数据源时发生如上异常,解决办法:iRrport的xml视图下发现某个字段定义时有:

<fieldDescription><![CDATA[]]></fieldDescription> 一句,删除后正常运行。(已验证)

搜索后论坛上有其他解决方法,但是未验证:

1. 检查commons-beanutils.jar是否包含PropertyUtils.getProperty(bean, propertyName)类及方法,commons-beanutils-1.8.0.jar里有包含;
2. 在Bean方法里各属性需要有Set/Get方法;

  相关解决方案