fatsy Posted July 31, 2007 Share Posted July 31, 2007 Hallo All, I have a problem with Java Object as datasource.When filling the report I recieve This Error: net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : fId at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:116) at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getFieldValue(JRAbstractBeanDataSource.java:93) at net.sf.jasperreports.engine.data.JRBeanCollectionDataSource.getFieldValue(JRBeanCollectionDataSource.java:104) at net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:813) at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:777) at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1106) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:111) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:763) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:688) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) at net.sf.jasperreports.engine.JasperRunManager.runReportToPdfFile(JasperRunManager.java:325) at net.eads.astrium.sedb.ReqReport.main(ReqReport.java:62)Caused by: java.lang.NoSuchMethodException: Unknown property 'fId' at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1122) at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686) at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:290) at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:104) ... 12 more Please can anyone help me to solve this.For days i'm stuck on this error.I have gone through the forum but didn't get the answer.Please help me...:( Attached are the report template & java files. [file name=File.zip size=3622]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/File.zip[/file] Link to comment Share on other sites More sharing options...
lucianc Posted July 31, 2007 Share Posted July 31, 2007 The name of your bean property is id and not fId (read a JavaBeans tutorial for further details). Therefore you need to change the name of the report field from fId to id (or to set the field description to id). HTH,Lucian Link to comment Share on other sites More sharing options...
fatsy Posted July 31, 2007 Author Share Posted July 31, 2007 Hallo Lucianc, Thanks alot for the quick answer.It worked. regardsFatsy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now