Bug 2331 - fo:basic-link in fo:static-content throws an exception
Summary: fo:basic-link in fo:static-content throws an exception
Status: CLOSED DUPLICATE of bug 964
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: all
Hardware: All All
: P3 major
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-06-26 07:08 UTC by Mikko Honkala
Modified: 2012-04-01 13:53 UTC (History)
1 user (show)



Attachments
The file where the basic-link in static-content bug appears (2.21 KB, text/xml)
2001-06-26 07:09 UTC, Mikko Honkala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikko Honkala 2001-06-26 07:08:48 UTC
I'm using FOP-0.19.0 from the distribution dir.

fo:basic-link in fo:static-content throws an exception. If the 'basic-link' is 
removed from the file, it works. See the whole file as an attachment.

---------------------------------- cut ------------------------
<fo:static-content flow-name="xsl-region-after">
	<fo:block font-family="sans-serif" font-size="11pt" font-weight="bold" 
start-indent="5pt" text-align="start">
	<fo:basic-link external-destination="asdljalfdsj">
	FOOTER: This does not work, because there is a link
	</fo:basic-link>
	</fo:block>
</fo:static-content>
---------------------------------- cut ------------------------

The exception:

org.apache.fop.apps.FOPException: -1 < 0
        at org.apache.fop.apps.AWTStarter.run(AWTStarter.java:134)
        at org.apache.fop.apps.Fop.main(Fop.java:19)

---------

java.lang.ArrayIndexOutOfBoundsException: -1 < 0
        at java.util.Vector.elementAt(Vector.java:427)
        at org.apache.fop.layout.BodyAreaContainer.getCurrentColumnArea(BodyArea
Container.java:342)
        at org.apache.fop.fo.flow.BasicLink.layout(BasicLink.java:120)
        at org.apache.fop.fo.flow.Block.layout(Block.java:218)
        at org.apache.fop.fo.flow.StaticContent.layout(StaticContent.java:76)
        at org.apache.fop.fo.pagination.PageSequence.layoutStaticContent(PageSeq
uence.java:377)
        at org.apache.fop.fo.pagination.PageSequence.formatStaticContent(PageSeq
uence.java:344)
        at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:25
2)
        at org.apache.fop.fo.pagination.Root.format(Root.java:128)
        at org.apache.fop.fo.FOTreeBuilder.format(FOTreeBuilder.java:305)
        at org.apache.fop.apps.Driver.format(Driver.java:480)
        at org.apache.fop.apps.AWTStarter.run(AWTStarter.java:121)
        at org.apache.fop.apps.Fop.main(Fop.java:19)
Comment 1 Mikko Honkala 2001-06-26 07:09:58 UTC
Created attachment 258 [details]
The file where the basic-link in static-content bug appears
Comment 2 J.Pietschmann 2002-04-22 10:38:24 UTC

*** This bug has been marked as a duplicate of 964 ***
Comment 3 Glenn Adams 2012-04-01 13:53:45 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs