You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Graeme Kidd <co...@hotmail.com> on 2011/01/24 20:22:59 UTC
NullPointerException in
layoutmgr.AbstractBreaker.getNextBlockListChangedIPD
Hi,
The attached FO stylesheet creates the following NullPointerException:
java.lang.NullPointerException
������� at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockListChangedIPD(AbstractBreaker.java:815)
������� at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:428)
������� at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:90)
������� at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:107)
������� at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
������� at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
������� at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
������� at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
������� at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
������� at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
������� at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
������� at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
������� at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
������� at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
������� at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
������� at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
������� at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
������� at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
������� at embedding.ExampleFO2PDF.convertFO2PDF(ExampleFO2PDF.java:91)
������� at embedding.ExampleFO2PDF.main(ExampleFO2PDF.java:143)
This error occurs on FOP 1.0 and the latest version from the TRUNK.
The error gets resolved if I remove the text "Page 2", convert the inline to a block or simply remove the left margin from the simple page master.
Shall I go ahead and submit this as a bug? If so I can also try and develop a test case as well.
Thanks
Re: NullPointerException in layoutmgr.AbstractBreaker.getNextBlockListChangedIPD
Posted by Andreas Delmelle <an...@telenet.be>.
Hi Graeme,
> The attached FO stylesheet creates the following NullPointerException:
>
> java.lang.NullPointerException
> at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockListChangedIPD(AbstractBreaker.java:815)
> at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:428)
<snip />
>
> Shall I go ahead and submit this as a bug? If so I can also try and develop a test case as well.
Yes, please. As for the test case, I think the attached FO is enough.
Or did you have something else in mind?
Thanks!
Regards,
Andreas
---
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org