When using <fo:title>foo</fo:title> (which seems perfectly legal), FOP dies with a NullPointerException after giving the message "Unexpected: fo:text with no fo:block ancestor". The exception is raised in org.apache.fop.fo.FOText.createBlockPointers(FOText.java:199), which tries to find a fo:block ancestor, gives the "Unexpected" message when it reaches Root, and then loops back and gets a NullPointerException. Inserting a "break;" after the "Unexpected" message instead gives a ClassCastException at org.apache.fop.layoutmgr.ContentLayoutManager.addChildLM(ContentLayoutManager.java:287), where it tries to add an org.apache.fop.layoutmgr.InlineStackingLayoutManager, which isn't an InlineLevelLayoutManager. I'll add an attachment with sample code.
Created attachment 13746 [details] Test file to trigger the bug Use: ./fop.sh frotz.fo frotz.pdf
This is only a rough solution: leaders, external graphics, page numbers cause null pointer exceptions.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed