Bug 21640 - ClassCastException with Block-container in block
Summary: ClassCastException with Block-container in block
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.5
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
: 27746 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-16 08:48 UTC by Ilja Preu
Modified: 2012-04-01 06:27 UTC (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilja Preu 2003-07-16 08:48:59 UTC
When I use a block-container inside a block, I get the following Exception - it 
seems as if the code is expecting an AreaContainer, but getting a BlockArea...

Caused by: java.lang.ClassCastException
	at
org.apache.fop.fo.flow.BlockContainer.layout(BlockContainer.java:157)
	at org.apache.fop.fo.flow.Block.layout(Block.java:257)
	at
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
	at
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
	at org.apache.fop.fo.pagination.PageSequence.makePage
(PageSequence.java:400
)
	at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338)
	at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
	at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
	at
org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:503)
	at org.apache.fop.apps.Driver.render(Driver.java:498)
	at org.apache.fop.apps.Driver.render(Driver.java:518)
Comment 1 Jean-Christophe Koerber 2003-09-10 10:30:53 UTC
I have the same problem...
Comment 2 Ilja Preu 2003-09-10 11:30:01 UTC
From http://xml.apache.org/fop/compliance.html#fo-object-block-container it 
seems as if block-container simply isn't fully supported yet.

A better error message might still be appropriate.
Comment 3 Benoit de Malartic 2004-03-17 15:49:26 UTC
*** Bug 27746 has been marked as a duplicate of this bug. ***
Comment 4 Andreas L. Delmelle 2007-07-09 11:21:35 UTC
Applies to the maintenance branch. No problem with FOP Trunk.
Comment 5 Glenn Adams 2012-04-01 06:27:43 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed