Bug 44452 - last upgrades don't render older fop xml files
Summary: last upgrades don't render older fop xml files
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.94
Hardware: PC Linux
: P2 critical
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-19 05:07 UTC by nicola de nisco
Modified: 2012-04-30 00:11 UTC (History)
0 users



Attachments
explain and test bug (69.46 KB, application/octet-stream)
2008-02-19 05:11 UTC, nicola de nisco
Details
old fop render pdf (8.54 KB, application/pdf)
2008-02-19 06:32 UTC, nicola de nisco
Details
new fop render pdf (12.72 KB, application/pdf)
2008-02-19 06:33 UTC, nicola de nisco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nicola de nisco 2008-02-19 05:07:24 UTC
I have many application using fop 0.20.5 and work fine rendering on the fly PDF
files in WEB application starting from XML data.

Recently I upgrade to 0.94 and application don't work more.
I try fop 0.93 too whit same bad result.

19-feb-2008 13.03.21 org.apache.fop.cli.Main startFOP
GRAVE: Exception
java.lang.IllegalStateException: subsequences exhausted in page-sequence-master
'all', cannot recover
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
        at org.apache.fop.cli.Main.startFOP(Main.java:166)
        at org.apache.fop.cli.Main.main(Main.java:197)

---------

java.lang.IllegalStateException: subsequences exhausted in page-sequence-master
'all', cannot recover
        at
org.apache.fop.layoutmgr.PageProvider.cacheNextPage(PageProvider.java:275)
        at org.apache.fop.layoutmgr.PageProvider.getPage(PageProvider.java:221)
        at org.apache.fop.layoutmgr.PageProvider.getPage(PageProvider.java:189)
        at
org.apache.fop.layoutmgr.PageProvider.getAvailableBPD(PageProvider.java:135)
        at
org.apache.fop.layoutmgr.PageBreakingAlgorithm.getLineWidth(PageBreakingAlgorithm.java:851)
        at
org.apache.fop.layoutmgr.PageBreakingAlgorithm.computeDifference(PageBreakingAlgorithm.java:367)
        at
org.apache.fop.layoutmgr.BreakingAlgorithm.considerLegalBreak(BreakingAlgorithm.java:696)
        at
org.apache.fop.layoutmgr.PageBreakingAlgorithm.considerLegalBreak(PageBreakingAlgorithm.java:309)
        at
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:485)
        at
org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(BreakingAlgorithm.java:403)
        at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:338)
        at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)
        at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:144)
        at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:233)
        at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:145)
        at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
        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 org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
        at org.apache.fop.cli.Main.startFOP(Main.java:166)
        at org.apache.fop.cli.Main.main(Main.java:197)
Comment 1 nicola de nisco 2008-02-19 05:11:33 UTC
Created attachment 21559 [details]
explain and test bug

this xml-fop file work fine on fop 0.20.5 and dont work on fop 0.94
use this to test the error
Comment 2 Jeremias Maerki 2008-02-19 05:25:18 UTC
I would argue that 0.20.5 didn't behave correctly. Your only
conditional-page-master-reference has a restriction on page-position="first" so
it isn't eligible for anything but the first page. I don't think it would be
correct to fallback to "any" page-master regardless of its conditions. If I were
you I'd just remove the page-position property.

I'd mark this issue as "invalid" but I'd like a second opinion from the team.
Comment 3 nicola de nisco 2008-02-19 06:32:33 UTC
Created attachment 21561 [details]
old fop render pdf

this is the oldest PDF (fop 0.20.5) with the data XML attached
Comment 4 nicola de nisco 2008-02-19 06:33:48 UTC
Created attachment 21562 [details]
new fop render pdf

this is the new PDF (fop 0.94)
Comment 5 nicola de nisco 2008-02-19 06:35:51 UTC
ok removing page-position="first" the rendering process dont throw exception.
But the result is very different from previus PDF.

You can view the two attached PDF to see the difference.
thanks
Comment 6 Jeremias Maerki 2008-02-19 07:13:05 UTC
That the table is broken early is a known regression in 0.94. It does not happen
in 0.93 or FOP Trunk. It will be fixed in 0.95 when it is released in about two
weeks.
Comment 7 Glenn Adams 2012-04-07 01:09:06 UTC
example FO does not specify adequate page sequence and also uses unsupported features (table-layout='auto')
Comment 8 Glenn Adams 2012-04-30 00:11:21 UTC
batch transition resolved+invalid to closed+invalid