I ran across a FO file containing the following fragment (it took about
10 minutes to cull all the stuff from the file which didn't affect the
result...)
<fo:block>
<fo:inline>
<fo:block-container absolute-position="absolute"
height="20.0px" width="15.0px"
left="166.0px" top="1.0px">
<fo:block>foo</fo:block>
</fo:block-container>
</fo:inline>
</fo:block>
When I pass this through FOP 0.93, I get the following error:
Caused by: java.lang.ClassCastException:
org.apache.fop.layoutmgr.inline.InlineLayoutManager cannot be cast to
org.apache.fop.layoutmgr.BlockLevelLayoutManager
at
org.apache.fop.layoutmgr.BlockContainerLayoutManager.mustKeepTogether(BlockContainerLayoutManager.java:990)
at
org.apache.fop.layoutmgr.BlockLayoutManager.mustKeepTogether(BlockLayoutManager.java:213)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.postProcessLineBreaks(LineLayoutManager.java:1093)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:927)
at
org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:606)
As far as I can tell by reading the spec there's nothing invalid about
the fragment. I have strict validation turned on in FOP and it isn't
reporting anything illegal either (it has complained a lot in the last
day or two, I've been gradually filtering the FO files to make sure
everything is convertible to PDF.)
Has anyone seen this exception before? Is it a bug in FOP, or is it
solveable by filtering the FO file to repair it somehow?
Daniel
--
Daniel Noll
Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699
Web: http://nuix.com/ Fax: +61 2 9212 6902
This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]