Project: Birt
Bug 219046 [regression]NPE when generate nest table/xtab in web viewer[1102]
Reported: 2008-02-14 22:25:28 | Status: closed fixed

Description: NPE when generate nest table/xtab in attached report(only in viewer) Build number:2.3.0.v20080215 Steps to reproduce: 1. Open attached report. (nest table/xtab and xtab has filter linking with outer table) 2. Preview in Web Viewer Expected result: Display table group data and display xtab corresponding to each detail row. Actual result: Exception when preview in Web Viewer. Preview directly in html is ok. Error log: Crosstab fdsafs: - {0} ( 1 time(s) ) detail : org.eclipse.birt.report.engine.api.EngineException at org.eclipse.birt.report.engine.internal.document.v4.ExtendedItemExecutor.execute(ExtendedItemExecutor.java:187) at org.eclipse.birt.report.engine.internal.document.v4.ContainerExecutor.prepareChildExecutor(ContainerExecutor.java:227) at org.eclipse.birt.report.engine.internal.document.v4.ContainerExecutor.hasNextChild(ContainerExecutor.java:110) at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.hasNextChild(WrappedReportItemExecutor.java:85) at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.hasNextChild(WrappedReportItemExecutor.java:85) at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:60) at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133) at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:104) at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:153) at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133) at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68) at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27) at org.eclipse.birt.report.engine.layout.html.HTMLTableBandLM.layoutChildren(HTMLTableBandLM.java:65) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133) at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68) at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27) at org.eclipse.birt.report.engine.layout.html.HTMLGroupLM.layoutChildren(HTMLGroupLM.java:67) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133) Caused by: java.lang.NullPointerException at org.eclipse.birt.data.engine.olap.util.OlapExpressionUtil.createQueryResultsScriptable(OlapExpressionUtil.java:467) at org.eclipse.birt.data.engine.olap.util.IJSObjectPopulator$DummyJSAggregationAccessor.<init>(IJSObjectPopulator.java:371) at org.eclipse.birt.data.engine.olap.util.DataJSObjectPopulator.doInit(DataJSObjectPopulator.java:56) at org.eclipse.birt.data.engine.olap.util.BaseJSEvalHelper.register(BaseJSEvalHelper.java:78) at org.eclipse.birt.data.engine.olap.util.filter.BaseDimensionFilterEvalHelper.registerJSObjectPopulators(BaseDimensionFilterEvalHelper.java:133) at org.eclipse.birt.data.engine.olap.util.BaseJSEvalHelper.init(BaseJSEvalHelper.java:57) at org.eclipse.birt.data.engine.olap.util.filter.BaseDimensionFilterEvalHelper.initialize(BaseDimensionFilterEvalHelper.java:90) at org.eclipse.birt.data.engine.olap.util.filter.DimensionFilterEvalHelper.<init>(DimensionFilterEvalHelper.java:48) at org.eclipse.birt.data.engine.olap.util.filter.BaseDimensionFilterEvalHelper.createFilterHelper(BaseDimensionFilterEvalHelper.java:74) at org.eclipse.birt.data.engine.olap.impl.query.CubeQueryExecutor.getDimensionFilterEvalHelpers(CubeQueryExecutor.java:81) at org.eclipse.birt.data.engine.olap.query.view.QueryExecutor.execute(QueryExecutor.java:92) at org.eclipse.birt.data.engine.olap.query.view.BirtCubeView.getCubeCursor(BirtCubeView.java:118) at org.eclipse.birt.data.engine.olap.impl.query.CubeQueryResults.getCubeCursor(CubeQueryResults.java:83) at org.eclipse.birt.report.engine.data.dte.CubeResultSet.<init>(CubeResultSet.java:110) at org.eclipse.birt.report.engine.data.dte.DataPresentationEngine.doExecuteCube(DataPresentationEngine.java:199) at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:252) at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1618) at org.eclipse.birt.report.engine.internal.document.v4.ExtendedItemExecutor.executeQuery(ExtendedItemExecutor.java:254) at org.eclipse.birt.report.engine.internal.document.v4.ExtendedItemExecutor.doExecute(ExtendedItemExecutor.java:226) at org.eclipse.birt.report.engine.internal.document.v4.ExtendedItemExecutor.execute(ExtendedItemExecutor.java:180) ... 78 more

Files changed in fix:
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/impl/rd/RDTestCase.java data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/impl/rd/ReportDocumentTest.java data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/impl/rd/ViewingTest.java data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/impl/rd/ViewingTest2.java data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/olap/api/CubeIVTest.java data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/document/QueryResults.java