当前位置: 代码迷 >> Java Web开发 >> ireporter + jasper 出错
  详细解决方案

ireporter + jasper 出错

热度:7062   发布时间:2016-04-10 22:45:59.0
ireporter + jasper 报错
用ireporter 做完报表后,点击preview预览,报如下错误:
Error?filling?print...?Error?retrieving?field?value?from?bean?:?id
不知道是什么原因,bean,class,字段名id都已经检查过,应该是正确的。
------解决方案--------------------
1. 检查commons-beanutils.jar是否包含PropertyUtils.getProperty(bean, propertyName)类及方法,commons-beanutils-1.8.0.jar里有包含;
2. 在Bean方法里各属性需要有set/get方法;命名规范


  相关解决方案