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

Bug 315180

Summary: [Automation][Regression]ClassCastException was thrown out while previewing report attached in PDF
Product: z_Archived Reporter: Wen Lin <wlin>
Component: BIRTAssignee: Yu Chen <yChen>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jouyang
Version: 2.6.0   
Target Milestone: 2.6.0 RC4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
report design none

Description Wen Lin CLA 2010-06-01 04:31:12 EDT
Created attachment 170616 [details]
report design

Report: Multiple grids with chart, image and table contents

Description:
 ClassCaseException was thrown out while previewing report attachedn in PDF, Postscript and PPT.

Step to reproduce:

1. Use the report attached
2. Preview it in PDF, Postscript or ppt

Error trace:
Caused by: java.lang.ClassCastException: org.eclipse.birt.report.engine.content.impl.TableContent cannot be cast to org.eclipse.birt.report.engine.content.IBandContent
	at org.eclipse.birt.report.engine.nLayout.area.impl.TableLayout.isInRepeatHeader(TableLayout.java:975)
	at org.eclipse.birt.report.engine.nLayout.area.impl.TableLayout.updateRow(TableLayout.java:720)
	at org.eclipse.birt.report.engine.nLayout.area.impl.TableLayout.addRow(TableLayout.java:645)
	at org.eclipse.birt.report.engine.nLayout.area.impl.TableArea.addRow(TableArea.java:73)
	at org.eclipse.birt.report.engine.nLayout.area.impl.RowArea.close(RowArea.java:141)
	at org.eclipse.birt.report.engine.nLayout.LayoutEngine.closeContainer(LayoutEngine.java:360)
	at org.eclipse.birt.report.engine.nLayout.LayoutEngine.endTableContainer(LayoutEngine.java:565)
	at org.eclipse.birt.report.engine.nLayout.LayoutEngine.endRow(LayoutEngine.java:575)
	at org.eclipse.birt.report.engine.emitter.CompositeContentEmitter.endRow(CompositeContentEmitter.java:179)
	at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutEmitter.flushRow(HTMLTableLayoutEmitter.java:363)
	at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutEmitter.flush(HTMLTableLayoutEmitter.java:313)
	at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutEmitter.endRow(HTMLTableLayoutEmitter.java:632)
	at org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.endContent(ContentEmitterUtil.java:111)
	at org.eclipse.birt.report.engine.layout.html.buffer.AbstractNode.end(AbstractNode.java:69)
	at org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBuffer.endRow(HTMLPageBuffer.java:196)
	at org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBuffer.endContainer(HTMLPageBuffer.java:140)
	at org.eclipse.birt.report.engine.layout.html.buffer.TableBreakBuffer.endContainer(TableBreakBuffer.java:360)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.end(HTMLStackingLM.java:42)
Comment 1 Yu Chen CLA 2010-06-01 05:58:15 EDT

*** This bug has been marked as a duplicate of bug 315035 ***