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 Carlos Araya <el...@valinor.sjsu.edu> on 2000/07/16 18:45:08 UTC

another problem

Hello:

I think I've finally fixed the stylesheet, but now I'm getting a fatal
error having to do with arrays. 

The stuff I'm trying to work with is at:

http://valinor.sjsu.edu/~elrond/writing/wd

The files I'm using are
Story2.xml
development2.xsl

Thanks for any input
Carlos
-- Begin FOP error message
[elrond@valinor wd]$ java org.apache.fop.apps.CommandLine alpha-test.xml
story2.pdf

FOP 1.0 [dev]
using SAX parser org.apache.xerces.parsers.SAXParser
using renderer org.apache.fop.render.pdf.PDFRenderer
using element mapping org.apache.fop.fo.StandardElementMapping
using element mapping org.apache.fop.svg.SVGElementMapping
building formatting object tree
WARNING: Unknown formatting object
http://www.w3.org/1999/XSL/Format^sequence-specifier-single
WARNING: Unknown formatting object
http://www.w3.org/1999/XSL/Format^sequence-specifier-repeating
WARNING: Unknown value for text-align-last: center
WARNING: Unknown value for text-align: center
WARNING: Unknown value for text-align: center
WARNING: Unknown value for text-align: center
WARNING: Unknown value for text-align: center
WARNING: Unknown value for text-align: center
WARNING: Unknown value for text-align: center
setting up fonts
formatting FOs into areas
FATAL ERROR: Array index out of range: 0


--
 p |Carlos E. Araya
 - |WebCT Project Coordinator - New Media Specialist
 G |Alquist Center for Instrucctional Development

email	: araya@sjsu.edu (prefered)		| Phone (408) 924 2859
Web	: http://valinor.sjsu.edu/~elrond/	| fax 	(408) 924 2439
	  http://www.silverwolf-net.net (under construction)

finger elrond@valinor.sjsu.edu for PGP key
-- 
LIFE: You can't control the length, but you can control the depth and
width. -- From Randal Schwartz picture archive


Re: StandardElementMapping error

Posted by stephanie <cr...@goldinc.com>.
Ok, so I rolled up my sleeves and dived into the fray.

The error "org.apache.fop.fo.StandardElementMapping is not an element mapping" is comming from
XTDriver.createElementMapping().

The exception being thrown is ClassCastException.

The reason that a cast exception is being thrown is that StandardElementMapping does not implement
XTElementMapping interface.  StandardElementMapping instead implements the ElementMapping interface.

A recursive grep into the source indicated that no classes implement XTElementMaping.

What gives?
Is XTCommandLine simply broken?
Am I compiling it incorrectly (ie is an class which implements XTElementMapping dynamically generated)?

If it is broken, is there someone working on it?

Sooo many questions, so little time.

Thanks in advance for your response.
Stephanie
Boren's Laws:
 (1) When in charge, ponder.
 (2) When in trouble, delegate.
 (3) When in doubt, mumble.

stephanie wrote:

> Hello
> I have been keeping up to date with the latest development code using CVS.  This latest spat of
> changes is now producing the following run time Error
>
> java org.apache.fop.apps.XTCommandLine stdHeader.xml stdHeader.xsl p1.pdf
> FOP 1.0  [dev]
> using SAX parser com.jclark.xml.sax.Driver
> using renderer org.apache.fop.render.pdf.PDFRenderer
> using element mapping org.apache.fop.fo.StandardElementMapping
> org.apache.fop.fo.StandardElementMapping is not an element mapping
> FATAL ERROR
>
> I am running,
> Linux Redhat 6.0
> jdk1.2.2 RC4
> the classpath for this looks something like this
> /JRE/xp.jar:/JRE/xt.jar:/JRE/xalan.jar:/JRE/xerces.jar:/JRE/bsf.jar:/JRE/w3c.jar:/JRE/xml.jar:/JRE/fop.jar
>
> I have updated xalan, xerces and bsf jars to the latest code.
> I am using Keiron Little's xml and w3c jars.
>
> Any clues as to what might be going on ?
> Thanks
> Stef


StandardElementMapping error

Posted by stephanie <cr...@goldinc.com>.
Hello
I have been keeping up to date with the latest development code using CVS.  This latest spat of
changes is now producing the following run time Error

java org.apache.fop.apps.XTCommandLine stdHeader.xml stdHeader.xsl p1.pdf
FOP 1.0  [dev]
using SAX parser com.jclark.xml.sax.Driver
using renderer org.apache.fop.render.pdf.PDFRenderer
using element mapping org.apache.fop.fo.StandardElementMapping
org.apache.fop.fo.StandardElementMapping is not an element mapping
FATAL ERROR

I am running,
Linux Redhat 6.0
jdk1.2.2 RC4
the classpath for this looks something like this
/JRE/xp.jar:/JRE/xt.jar:/JRE/xalan.jar:/JRE/xerces.jar:/JRE/bsf.jar:/JRE/w3c.jar:/JRE/xml.jar:/JRE/fop.jar

I have updated xalan, xerces and bsf jars to the latest code.
I am using Keiron Little's xml and w3c jars.

Any clues as to what might be going on ?
Thanks
Stef


Re: another problem

Posted by Carlos Araya <el...@valinor.sjsu.edu>.
Fotis:

Try the file development2.xsl in the same directory, that's the file I use
to transform XML into FO

Carlos

On Mon, 17 Jul 2000, Fotis Jannidis wrote:
|
|Carlos, 
|
|I tried to have a look at your fo file (Story2-fo.xml ?), but this file
|seems to be a pdf file.  Maybe you could provide a fo file which does
|only contain the fo definitions which are the reason for the error
|message?
|
|Fotis
|
|> I think I've finally fixed the stylesheet, but now I'm getting a fatal
|> error having to do with arrays. 
|> 
|> The stuff I'm trying to work with is at:
|> 
|> http://valinor.sjsu.edu/~elrond/writing/wd
|> 
|> The files I'm using are
|> Story2.xml
|> development2.xsl
|> 
|> Thanks for any input
|> Carlos
|
|

--
 p |Carlos E. Araya
 - |WebCT Project Coordinator - New Media Specialist
 G |Alquist Center for Instrucctional Development

email	: araya@sjsu.edu (prefered)		| Phone (408) 924 2859
Web	: http://valinor.sjsu.edu/~elrond/	| fax 	(408) 924 2439
	  http://www.silverwolf-net.net (under construction)

finger elrond@valinor.sjsu.edu for PGP key
-- 
LIFE: You can't control the length, but you can control the depth and
width. -- From Randal Schwartz picture archive


Re: another problem

Posted by Fotis Jannidis <fo...@lrz.uni-muenchen.de>.
Carlos, 

I tried to have a look at your fo file (Story2-fo.xml ?), but this file seems to be a pdf file. 
Maybe you could provide a fo file which does only contain the fo definitions which are 
the reason for the error message? 

Fotis

> I think I've finally fixed the stylesheet, but now I'm getting a fatal
> error having to do with arrays. 
> 
> The stuff I'm trying to work with is at:
> 
> http://valinor.sjsu.edu/~elrond/writing/wd
> 
> The files I'm using are
> Story2.xml
> development2.xsl
> 
> Thanks for any input
> Carlos