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

Bug 333860

Summary: NullPointerException in DocumentExtension using RunTask
Product: z_Archived Reporter: Thomas Küstermann <thomas.kuestermann>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: CLOSED FIXED QA Contact: Liwen Chen <lchen>
Severity: normal    
Priority: P3 CC: bluesoldier, hustlg
Version: unspecified   
Target Milestone: 2.6.2   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
erroneous report design file
none
CSV data
none
Stacktrace none

Description Thomas Küstermann CLA 2011-01-10 07:27:46 EST
Build Identifier: v20100915-1750

We are faced with a problem running one of our reports in our custom report viewer. Running the report using RunTask results in a NullPointerException. This error seems to be very rare but is always reproducible with the report. The root cause of the problem is DocumentExtension.add (line 117, 'latest' is null).

RunAndRenderTask in contrast is working fine.

Applies to Birt 2.6.1

Reproducible: Always

Steps to Reproduce:
1. Run the report using RunTask
Comment 1 Thomas Küstermann CLA 2011-01-10 07:29:27 EST
Created attachment 186383 [details]
erroneous report design file

Added erroneous report design file.
Comment 2 Thomas Küstermann CLA 2011-01-10 07:30:11 EST
Created attachment 186384 [details]
CSV data

Added CSV data source
Comment 3 Thomas Küstermann CLA 2011-01-10 07:31:00 EST
Created attachment 186385 [details]
Stacktrace

Added stacktrace file
Comment 4 Gang Liu CLA 2011-01-14 02:38:00 EST
fixed.
Comment 5 Liwen Chen CLA 2011-01-16 21:40:01 EST
No NPE when using attached report to genreate document with RunTask.
I'm using genReport under birt-runtime package to verify this bug.
build:2.6.2.v20110117-0630