Bug 17194 - LineArea Leader fails in 0.20.5rc2
Summary: LineArea Leader fails in 0.20.5rc2
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: 0.20.5
Hardware: Other other
: P3 blocker
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-19 08:30 UTC by Jens Stanstrup
Modified: 2012-04-01 06:57 UTC (History)
0 users



Attachments
Fails when generating TOC (Maybe caused by Pietch fix from feb 2) (261.15 KB, text/plain)
2003-02-20 07:33 UTC, Jens Stanstrup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Stanstrup 2003-02-19 08:30:50 UTC
This bug did not exist in 0.20.5rc


Making portrait pages on A4 paper (210mmx297mm)
Transforming vol1.fo to PDF
[DEBUG] Input mode: 
[DEBUG] FO 
[DEBUG] fo input file: vol1.fo
[DEBUG] Output mode: 
[DEBUG] pdf
[DEBUG] output file: NC3TA-Vol1-v4.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] base directory: file:/home/js/work/noswg/xml-nc3ta/tools/build/pdf/
[INFO] FOP 0.20.5rc2
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[INFO] [2 (blank)]
[DEBUG] Last page-sequence produced 2 pages.
[INFO] [3]
[ERROR] org.apache.fop.layout.LineArea$Leader
org.apache.fop.apps.FOPException: org.apache.fop.layout.LineArea$Leader
	at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:74)
	at org.apache.fop.apps.Fop.main(Fop.java:19)
---------
java.lang.ClassCastException: org.apache.fop.layout.LineArea$Leader
	at org.apache.fop.layout.LineArea.verticalAlign(LineArea.java:901)
	at org.apache.fop.layout.BlockArea.addLineArea(BlockArea.java:91)
	at org.apache.fop.layout.BlockArea.end(BlockArea.java:176)
	at org.apache.fop.fo.flow.Block.layout(Block.java:246)
	at org.apache.fop.fo.flow.Block.layout(Block.java:206)
	at org.apache.fop.fo.flow.Block.layout(Block.java:206)
	at org.apache.fop.fo.flow.Block.layout(Block.java:206)
	at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:111)
	at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:68)
	at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:352)
	at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:290)
	at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:218)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
	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.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.fop.apps.Driver.render(Driver.java:457)
	at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69)
	at org.apache.fop.apps.Fop.main(Fop.java:19)
Java Result: 2
Comment 1 Jens Stanstrup 2003-02-20 07:33:50 UTC
Created attachment 4936 [details]
Fails when generating TOC (Maybe caused by Pietch fix from feb 2)
Comment 2 J.Pietschmann 2003-02-20 23:16:36 UTC
This happens if the line area overflows. The two longest section titles
are too long. Shorten them until the problem is fixed.
Comment 3 Jens Stanstrup 2003-02-21 06:55:47 UTC
Modifing the titles is one solution, but not really satisfing considering the
long title was just continued on a second line - i.e. this was working in 0.20.1
- 0.20.5rc - and FOP will properly crash on a lot of documents with long titles. 

Anyway, sometimes one is not allowed to modify anything in a document, i.e. if a
document is committee work..
Comment 4 J.Pietschmann 2003-03-02 16:57:19 UTC
Should be fixed for 0.20.5rc3.
Long section lines may overflow the TOC line area, unless the leader permits
shortening.
Comment 5 Glenn Adams 2012-04-01 06:57:51 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed