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

IReport报错求解救
Error?filling?print...?Error?retrieving?field?value?from?bean?:?name 
net.sf.jasperreports.engine.JRException:?Error?retrieving?field?value?from?bean?:?name? ????at?net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:123)? ????at?net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getFieldValue(JRAbstractBeanDataSource.java:96)? ????at?net.sf.jasperreports.engine.data.JRBeanCollectionDataSource.getFieldValue(JRBeanCollectionDataSource.java:100)? ????at?net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:1356)? ????at?net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1257)? ????at?net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1233)? ????at?net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1577)? ????at?net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:149)? ????at?net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:932)? ????at?net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:864)? ????at?net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:114)? ????at?net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:653)? ????at?net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:569)? ????at?net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:915)? ????at?com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:928)? ????at?org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)? ????at?org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)? Caused?by:?java.lang.NoSuchMethodException:?Unknown?property?'name'?on?class?'class?com.jaspersoft.ireport.examples.beans.PersonBean'? ????at?org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1322)? ????at?org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:770)? ????at?org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:846)? ????at?org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:426)? ????at?net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:111)? ????...?16?more? 
Print not filled. Try to use an EmptyDataSource...

------解决方案--------------------
是用javabean做数据源吧,路径没有设对,要用.class文件