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)
I have the same problem...
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.
*** Bug 27746 has been marked as a duplicate of this bug. ***
Applies to the maintenance branch. No problem with FOP Trunk.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed