net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error retrieving field value from bean: .
UPDATED: 18 November 2015
Tags:
Exception
,
jasper-reports
net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error retrieving field value from bean: . at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:872) at net.sf.jasperreports.components.table.fill.FillTableSubreport.prepareSubreport(FillTableSubreport.java:166) at net.sf.jasperreports.components.table.fill.FillTable.prepare(FillTable.java:417) at net.sf.jasperreports.engine.fill.JRFillComponentElement.prepare(JRFillComponentElement.java:150) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:330) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:382) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:357) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2031) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:755) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:262) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:551) at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:411) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:122) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:583) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:929) at com.org.openxcell.channel.ftp.processor.InvoiceProcessor.createStandardPackage(InvoiceProcessor.java:643) at com.org.openxcell.channel.ftp.processor.InvoiceProcessor.main(InvoiceProcessor.java:676) Caused by: net.sf.jasperreports.engine.JRException: Error retrieving field value from bean: . at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:132) at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getFieldValue(JRAbstractBeanDataSource.java:97) at net.sf.jasperreports.engine.data.JRBeanCollectionDataSource.getFieldValue(JRBeanCollectionDataSource.java:108) at net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:1373) at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1274) at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1250) at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1003) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:120) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:551) at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:736) at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:58) at org.apache.commons.javaflow.bytecode.StackRecorder.execute(StackRecorder.java:95) at org.apache.commons.javaflow.Continuation.continueWith(Continuation.java:170) at org.apache.commons.javaflow.Continuation.startWith(Continuation.java:129) at org.apache.commons.javaflow.Continuation.startWith(Continuation.java:102) at net.sf.jasperreports.engine.fill.JRContinuationSubreportRunner.start(JRContinuationSubreportRunner.java:52) at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:847) ... 17 more Caused by: java.lang.NoSuchMethodException: Unknown property '' on class 'class com.org.openxcell.channel.ftp.processor.SalesOrderItemDataSource' 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:112) ... 33 more
I got above exception because I've table with subDataset containing <field> tag along with <fieldDescription> tag in it.
<field name="firstname" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field>Solution
Remove <fieldDescription> tag from <field> tag.
<field name="firstname" class="java.lang.String"/>
Tags:
Exception
,
jasper-reports
0 comments :