Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314810 - NPE is thrown out when preview radar type chart for birt runtime
Summary: NPE is thrown out when preview radar type chart for birt runtime
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.6.0 RC4   Edit
Assignee: Xiaoying Gu CLA
QA Contact: Yong Jiang CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 03:01 EDT by Yong Jiang CLA
Modified: 2010-06-06 23:25 EDT (History)
3 users (show)

See Also:


Attachments
test report (60.08 KB, text/xml)
2010-05-28 03:01 EDT, Yong Jiang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yong Jiang CLA 2010-05-28 03:01:09 EDT
Created attachment 170301 [details]
test report

Description:
  NPE is thrown out when preview radar type chart for birt runtime

Test Build:
BIRT2.6.0 v20100528-0630

Step to reproduce:

1. deploy runtime on tomcat 6.0.16
2. preview attached report

Expect result:
report can preview

Actual result:
NPE is thrown out

Error log:
Caused by: java.lang.NullPointerException	at org.eclipse.birt.chart.reportitem.ChartReportItemImpl.validate(ChartReportItemImpl.java:822)	at org.eclipse.birt.report.model.api.validators.ExtensionValidator.doValidate(ExtensionValidator.java:142)	at org.eclipse.birt.report.model.api.validators.ExtensionValidator.validate(ExtensionValidator.java:81)	at org.eclipse.birt.report.model.validators.ValidationNode.perform(ValidationNode.java:133)	at org.eclipse.birt.report.model.validators.ValidationExecutor.perform(ValidationExecutor.java:79)	at org.eclipse.birt.report.model.core.DesignElement.validateWithContents(DesignElement.java:2121)	at org.eclipse.birt.report.model.core.DesignElement.validateWithContents(DesignElement.java:2130)	at org.eclipse.birt.report.model.core.Module.semanticCheck(Module.java:1168)	at org.eclipse.birt.report.model.core.LayoutModuleImpl.semanticCheck(LayoutModuleImpl.java:292)	at org.eclipse.birt.report.model.core.LayoutModuleImpl.doClone(LayoutModuleImpl.java:1061)	at org.eclipse.birt.report.model.elements.ReportDesignImpl.doClone(ReportDesignImpl.java:309)	at org.eclipse.birt.report.model.api.ModuleHandle.copy(ModuleHandle.java:3050)	at org.eclipse.birt.report.engine.api.impl.ReportRunnable.cloneRunnable(ReportRunnable.java:132)	at org.eclipse.birt.report.engine.api.impl.EngineTask.prepareDesign(EngineTask.java:1655)	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:96)	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:75)	at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:920)	at org.eclipse.birt.report.service.BirtViewerReportService.runAndRenderReport(BirtViewerReportService.java:973)	at org.eclipse.birt.report.service.actionhandler.BirtRunAndRenderActionHandler.__execute(BirtRunAndRenderActionHandler.java:76)	at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)	... 23 more
Comment 1 Yulin Wang CLA 2010-05-28 03:17:24 EDT
Radar chart as an example is not supported to preview in BIRT runtime.
Comment 2 Yulin Wang CLA 2010-05-28 03:44:07 EDT
Although Radar chart is not supported in runtime environment, need to display error gracefully, and other charts should preview correctly.
Comment 3 Yulin Wang CLA 2010-05-28 03:57:36 EDT
This is not a regression bug, since it's a new example chart item.
Comment 4 Yulin Wang CLA 2010-05-28 04:04:04 EDT
Although Radar chart is not supported to preview in runtime environment, display error chart gracefully and other items can preview correctly.
Comment 5 Yulin Wang CLA 2010-05-30 23:43:17 EDT
Need to support Radar in runtime environment.
We need a new runtime example plugin which contains Radar chart without UI.
Comment 6 Heng Li CLA 2010-06-01 02:41:09 EDT
Even if a new plugin was created to include radar model API, it still can not run in runtime package, it just could run in all-in-one. The root reason is that the new plugin implements an emf extension for chart engine loading radar model at runtime. But due to the special class loading mechanism in lib folder in birt runtime package, the emf EcorePlugin will not register radar model API, it failed to load radar model.
After discussing with Zhiqiang, we need further investigation to find a new way to support radar chart, it has plenty of works for chart engine to support it. We will defer this bug to 2.6.1.
Thanks.
Comment 7 Heng Li CLA 2010-06-04 02:00:31 EDT
Fixed by defining a new extension point in chart engine for custom chart model. User should implement this extension point for custom chart model.
Comment 8 Heng Li CLA 2010-06-04 02:04:37 EDT
Please add org.eclipse.birt.chart.examples.core plug-in into runtime package, and please add this as API into lib folder. Thanks.
Comment 9 Xiaoying Gu CLA 2010-06-06 01:33:05 EDT
Fixed.
Comment 10 Yong Jiang CLA 2010-06-06 23:25:14 EDT
verified in daily build v20100607-0630