Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333860 - NullPointerException in DocumentExtension using RunTask
Summary: NullPointerException in DocumentExtension using RunTask
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 2.6.2   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Liwen Chen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-10 07:27 EST by Thomas Küstermann CLA
Modified: 2011-01-16 21:40 EST (History)
2 users (show)

See Also:


Attachments
erroneous report design file (83.62 KB, application/xml)
2011-01-10 07:29 EST, Thomas Küstermann CLA
no flags Details
CSV data (347 bytes, text/plain)
2011-01-10 07:30 EST, Thomas Küstermann CLA
no flags Details
Stacktrace (5.74 KB, text/plain)
2011-01-10 07:31 EST, Thomas Küstermann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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