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

Bug 324123

Summary: ClassCastException in CellMergedStyle.<init>
Product: z_Archived Reporter: Russ Tennant <russ>
Component: BIRTAssignee: Jianchao Li <jianchao.li>
Status: RESOLVED FIXED QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier, jianchao.li, wenfeng.fwd
Version: 2.5.1   
Target Milestone: 3.7.0   
Hardware: PC   
OS: Linux   
Whiteboard: Obsolete

Description Russ Tennant CLA 2010-08-31 15:01:14 EDT
2010-08-31 18:55:14,162 ERROR [null Start Level Event Dispatcher] impl.RenderTask render (RenderTask.java:231) - An error happened while running the report. Cause:
java.lang.ClassCastException: org.eclipse.birt.report.engine.content.impl.TableBandContent cannot be cast to org.eclipse.birt.report.engine.content.IRowContent
        at org.eclipse.birt.report.engine.css.dom.CellMergedStyle.<init>(CellMergedStyle.java:49)
        at org.eclipse.birt.report.engine.emitter.html.HTMLVisionOptimize.buildCellStyle(HTMLVisionOptimize.java:358)
        at org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitter.startCell(HTMLReportEmitter.java:2100)
        at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutEmitter.startCell(HTMLTableLayoutEmitter.java:701)
        at org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.startContent(ContentEmitterUtil.java:59)
        at org.eclipse.birt.report.engine.layout.html.buffer.DummyPageBuffer.startContainer(DummyPageBuffer.java:106)
        at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.start(HTMLStackingLM.java:50)
        at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:136)
        at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
        at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
        at org.eclipse.birt.report.engine.layout.html.HTMLTableBandLM.layoutChildren(HTMLTableBandLM.java:67)
        at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:137)
        at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
        at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
        at org.eclipse.birt.report.engine.layout.html.HTMLGroupLM.layoutChildren(HTMLGroupLM.java:117)
        at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:137)
        at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
        at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
        at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132)
        at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:137)
        at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
        at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:90)
        at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:99)
        at org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:600)
        at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:221)
Comment 1 Xiaoying Gu CLA 2010-11-01 23:10:44 EDT
Set as WORKSFORME now.

If a report design for reproducing the issue can be attached, please feel free to reopen.
Comment 2 Xiaoying Gu CLA 2010-11-02 01:45:12 EDT
Reopen for source code review.
Comment 3 Jianchao Li CLA 2011-05-17 01:49:57 EDT
Add logic to avoid ClassCastException. Fixed.