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

Bug 313067

Summary: [Automation][Regression]Exception was thrown out while opening report in designer
Product: z_Archived Reporter: Wen Lin <wlin>
Component: BIRTAssignee: Yulin Wang <Lionel.wyl>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Lionel.wyl, rlu, yjiang
Version: 2.6.0   
Target Milestone: 2.6.0 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
report design none

Description Wen Lin CLA 2010-05-17 01:41:36 EDT
Created attachment 168679 [details]
report design

Description:
  Exception was thrown out while opening report in designer

Test Build:
BIRT2.6.0 v20100517-0630

Step to reproduce:

1. Use the report attached
2. Open it in designer

Error log:
Caused by: org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
	at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352)
	at org.eclipse.birt.chart.reportitem.ChartReportItemImpl.validate(ChartReportItemImpl.java:783)
	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:1129)
	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)
Comment 1 Rick Lu CLA 2010-05-17 22:26:53 EDT
Chart's validation issue.
Comment 2 Yulin Wang CLA 2010-05-18 22:10:53 EDT
Revised validation for invalid chart model in Chart report item.
Comment 3 Wen Lin CLA 2010-05-20 03:17:33 EDT
Verified in v20100520-0630