You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Michel Bergijk <m....@home.nl> on 2000/10/24 21:07:05 UTC

BUG: User bug?

Hi,

While trying to run a self developed xml-xsl combination I encountered the following Fatal Error:
    org.apache.fop.fo.flow.Block

I came there with the following commando (e.g., create a pdf file):
    java org.apache.fop.apps.CommandLine EperP_05_2000.fo EperP_05_2000.pdf

When I used the commando (e.g. viewing the fo file with the fo-viewer):
    java org.apache.fop.apps.AWTCommandLine EperP_05_2000.fo
The trace of the error message was now more elaborate. 

==== START =====
using property list mapping org.apache.fop.svg.SVGPropertyListMapping
building formatting object tree
WARNING: Unknown formatting object http://www.w3.org/1999/XSL/Format^sequence-sp
ecification
WARNING: Unknown formatting object http://www.w3.org/1999/XSL/Format^sequence-sp
ecifier-alternating
WARNING: this version of FOP only supports static-content in region-before and r
egion-after
WARNING: this version of FOP only supports static-content in region-before and r
egion-after
setting up fonts
formatting FOs into areas
 [1FATAL ERROR: org.apache.fop.fo.flow.Block
java.lang.ClassCastException: org.apache.fop.fo.flow.Block
        at org.apache.fop.fo.flow.TableBody.layout(TableBody.java:157)
        at org.apache.fop.fo.flow.Table.layout(Table.java:215)
        at org.apache.fop.fo.flow.Flow.layout(Flow.java:106)
        at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:239)
        at org.apache.fop.fo.pagination.Root.format(Root.java:116)
        at org.apache.fop.fo.FOTreeBuilder.format(FOTreeBuilder.java:295)
        at org.apache.fop.apps.Driver.format(Driver.java:380)
        at org.apache.fop.apps.AWTCommandLine.<init>(AWTCommandLine.java:104)
        at org.apache.fop.apps.AWTCommandLine.main(AWTCommandLine.java:228)

==== END=====

Remarks:
1) The error listing while viewing with the fo-viewer is more elaborate than the one while generating a 
pdf file.
2) If I remember correctly, a ClassCastException should not be situated in either my xml-file
or in my xsl style sheet. The program is expecting something it did not get, ain't it?

Some more information. I am using the following jar-files:
xalan.jar == xalan-j == Xalan-j2.0.D01 == 21/10/2000

xerces.jar == xerces-j == Xerces-j-src1.2.1 == 21/10/2000 

bsf.jar == xajan-j == Xalan-j2.0.D01 == 21/10/2000 

fop.jar == fop == fop-0_14_0 == 30/09/2000 

w3c.jar == fop == fop-0_14_0 == 30/09/2000 

My classpath while running these commands was:
CLASSPATH=.;D:\JDK1.3;D:\JDK1.3\BIN\;D:\JDK1.3\src.jar;D:\COMMON\xerces.jar;D:\COMMON\xalan.jar;D:\COMMON\bsf.jar;D:\COMMON\fop.jar;d:\COMMON\w3c.jar


To be complete, I include both the xml-file and the xsl-file. I do hope the error is not situated in
my code. It is not meant for you to check my code.

With regards
=================================
Michel Bergijk      m.bergijk@home.nl

Work                   Michel.Bergijk@cmg.nl
=================================