https://issues.apache.org/bugzilla/show_bug.cgi?id=50574
Summary: content overflow onto second ODD page causes
NullPointerException
Product: Fop
Version: 1.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: page-master/layout
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=26480)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26480)
XSL-FO demonstrating the odd page content overflow
I have a scenario where I print mailing labels on the back of each piece of
paper (even pages). When content is too much on page 1, it should overflow
onto page 3 (while mailing labels print on both page 2 and page 4).
ISSUE:
In FOP 1.0 when the content overflows page 1 to flow onto the next ODD page, a
java.lang.NullPointerException is thrown. This functionality did work in FOP
0.95.
Attached a simple XSL-FO to demonstrate this.
Thanks.
lance
Here's the exception:
java.lang.NullPointerException
at
org.apache.fop.layoutmgr.PageBreakingAlgorithm.filterActiveNodes(PageBreakingAlgorithm.java:1028)
at
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:527)
at
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:439)
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:369)
at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:85)
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:1050)
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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:452)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.