Jump to content
Changes to the Jaspersoft community edition download ×

Exception with Nested Tables


laereba

Recommended Posts

Hey I'm getting the following exception when I try to nest tables.

My object contains as attribute a list that itself has a list of other object. I'm capable of creating a table

that iterates over the first list by when I try to iterate over the sublist i get the following error:

net.sf.jasperreports.engine.JRRuntimeException: java.lang.NoClassDefFoundError: report1_InterestingCaseDataSet_1277809238286_246631_InterestingCaseReasonDataSet (wrong name: report1_InterestingCaseReasonDataSet_1277809238286_246631) at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:710) at net.sf.jasperreports.components.table.fill.FillTableSubreport.prepareSubreport(FillTableSubreport.java:156) at net.sf.jasperreports.components.table.fill.FillTable.prepare(FillTable.java:302) at net.sf.jasperreports.engine.fill.JRFillComponentElement.prepare(JRFillComponentElement.java:129) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:329) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:419) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:378) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2018) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:757) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:269) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:127) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:938) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:860) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:84) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624) ....

A part of my jrxml is attached.

Does anyone have a idea, what i'm doing wrong?

Thanks in advance

Code:
<band height="72">                       <componentElement>                <reportElement key="table 8" style="table 8" x="0" y="32" width="555" height="20"/>                <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">                    <datasetRun subDataset="InterestingCaseDataSet">                        <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{interestingCases})]]></dataSourceExpression>                    </datasetRun>                    <jr:column width="90">                        <jr:columnHeader style="table 8_CH" height="30" rowSpan="1">                            <textField isStretchWithOverflow="true" isBlankWhenNull="true">                                <reportElement x="0" y="0" width="90" height="30"/>                                <textElement/>                                <textFieldExpression class="java.lang.String"><![CDATA[$R{report.enquiry.table.interesting.case.header.reason}]]></textFieldExpression>                            </textField>                        </jr:columnHeader>                        <jr:detailCell style="table 8_TD" height="20" rowSpan="1">                            <componentElement>                                <reportElement key="table 14" style="table 14" x="0" y="0" width="90" height="20"/>                                <jr:table>                                    <datasetRun subDataset="InterestingCaseReasonDataSet">                                        <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{interestingCaseReasons})]]></dataSourceExpression>                                    </datasetRun>                                    <jr:column width="90">                                        <jr:detailCell style="table 14_TD" height="20">                                            <textField>                                                <reportElement x="0" y="0" width="90" height="20"/>                                                <textElement/>                                                <textFieldExpression class="java.lang.String"><![CDATA[$F{messageKey}]]></textFieldExpression>                                            </textField>                                        </jr:detailCell>                                    </jr:column>                                </jr:table>                            </componentElement>                        </jr:detailCell>                    </jr:column>                                  </jr:table>            </componentElement>        </band>
Link to comment
Share on other sites

  • 4 months later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...