Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368904

Summary: Report with RunningCount Throws NullPointerException
Product: z_Archived Reporter: Arun P Johny <arunpjohny>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: bluesoldier
Version: unspecified   
Target Milestone: 3.7.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Test Case none

Description Arun P Johny CLA 2012-01-17 23:17:52 EST
Build Identifier: 20110916-0149

Hi,

I'm trying to create a report with a RunningCount aggregation. The report is working fine when generated with the WebViewer within the report designer. But when the report is exported as a PDF from the designer it throws an NullPointerException as given below.

Caused by: java.lang.NullPointerException
	at org.eclipse.birt.core.util.IOUtil.writeInt(IOUtil.java:226)
	at org.eclipse.birt.core.util.IOUtil.writeObject(IOUtil.java:674)
	at org.eclipse.birt.data.engine.executor.transform.SimpleGroupCalculator.next(SimpleGroupCalculator.java:233)
	at org.eclipse.birt.data.engine.executor.transform.SimpleResultSet.next(SimpleResultSet.java:562)
	at org.eclipse.birt.data.engine.executor.transform.ResultSetWrapper.next(ResultSetWrapper.java:81)
	at org.eclipse.birt.data.engine.impl.ResultIterator.hasNextRow(ResultIterator.java:584)
	at org.eclipse.birt.data.engine.impl.ResultIterator.nextRow(ResultIterator.java:525)
	at org.eclipse.birt.data.engine.impl.ResultIterator.next(ResultIterator.java:475)
	at org.eclipse.birt.report.engine.data.dte.QueryResultSet.next(QueryResultSet.java:191)
	at org.eclipse.birt.report.engine.executor.ListingElementExecutor.hasNextChild(ListingElementExecutor.java:244)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.hasNextChild(WrappedReportItemExecutor.java:86)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.hasNextChild(WrappedReportItemExecutor.java:86)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:62)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
	at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
	at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:180)

All other report forms like excel, word etc also is throwing the NullPointerException.

Bug posted as suggested by http://www.eclipse.org/forums/index.php/t/276764/. A test case can be found in the forum post.

Reproducible: Always

Steps to Reproduce:
1. Create a report with a data table
2. Add new column with a aggregation field as RunningCount
3. Export the report as PDF/Excel
Comment 1 Arun P Johny CLA 2012-01-18 05:43:01 EST
Created attachment 209665 [details]
Test Case

Attached test case to reproduce the issue.
Comment 2 Xiaoying Gu CLA 2012-04-11 04:02:37 EDT
Hi,

I can not reproduce this issue in the 3.7.2 release build <3.7.2.v20120214-1408>
Comment 3 Xiaoying Gu CLA 2012-04-11 04:02:58 EDT
Set status