日期:2014-05-17  浏览次数:20587 次

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方法;命名规范