You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by VAGNER Rodolphe <ro...@eurodoc-sofilog.com> on 2003/07/22 09:30:26 UTC
Fop : difference between batch or jsp launch
Hy,
I usually use FOP client side, using a batch to launch it.
I'm to do the same on a Tomcat server so with JSP I beleave.
But the same FO is transformed with the batch process and is not with
the jsp (in tomcat) process.
I noticed this message is displayed when I launch the batch :
[DEBUG] Input mode:
[DEBUG] FO
[DEBUG] fo input file: my.fo
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: FT410 GFH T533-23.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:/C:/tropic/jakarta-tomcat-3.3.1/webapps/tropic/fop-0.20.5rc3a/
[INFO] FOP 0.20.5rc3a
>>>>[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
And I noticed the jsp display this :
[DEBUG] FO
[DEBUG] fo input file: my.fo
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: FT410_GFH_T533-23.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.crimson.parser.XMLReaderImpl as SAX2 Parser
[INFO] base directory: file:/C:/tropic/jakarta-tomcat-3.3.1/bin/
[INFO] FOP 0.20.5rc3a
>>>>[INFO] Using org.apache.crimson.parser.XMLReaderImpl as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
The first transform is done correctly, the second is not :
(org.apache.fop.apps.FOPException: Character conversion error:
"Unconvertible UTF-8 character beginning with 0xaa").
The problem can be from the parser used ? (seems to be sax for the
batch, and crimson for the jsp)
The bases directories differ too. Can it be a problem ?
Any Idea ?
Help would be great.
Thanks.
Rodolphe
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Fop : difference between batch or jsp launch
Posted by Jeremias Maerki <de...@greenmail.ch>.
Most probably you've done something wrong on the JSP side with the
encoding. If you don't have an XML encoding declaration (ex. "<?xml
version="1.0" encoding="ISO-8859-1"?>") the XML parser assumes UTF-8.
And if you don't deliver UTF-8 you may get the error message you got.
I don't think there's a problem because of the different parsers. But
without seeing how you handle your XML files I can't be sure.
On 22.07.2003 09:30:26 VAGNER Rodolphe wrote:
> The first transform is done correctly, the second is not :
> (org.apache.fop.apps.FOPException: Character conversion error:
> "Unconvertible UTF-8 character beginning with 0xaa").
> The problem can be from the parser used ? (seems to be sax for the
> batch, and crimson for the jsp)
> The bases directories differ too. Can it be a problem ?
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org