created an attachment (id=170301)
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
radar chart as an example is not supported to preview in birt runtime.
although radar chart is not supported in runtime environment, need to display error gracefully, and other charts should preview correctly.
this is not a regression bug, since it's a new example chart item.
although radar chart is not supported to preview in runtime environment, display error chart gracefully and other items can preview correctly.
need to support radar in runtime environment.
we need a new runtime example plugin which contains radar chart without ui.
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.
fixed by defining a new extension point in chart engine for custom chart model. user should implement this extension point for custom chart model.
please add org.eclipse.birt.chart.examples.core plug-in into runtime package, and please add this as api into lib folder. thanks.
fixed.
verified in daily build v20100607-0630