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 Normen Ruhrus <N....@Alphasoft-GmbH.de> on 2006/04/26 13:48:02 UTC
Errors & Logging (FOP 0.91 beta)
Hi there,
currently evaluating the new FOP version. We currently still run 0.20.5. Do
you have any information about performance improvements especially
concerning the mem issues?
Well, my main concern is a problem with logging some general error messages
to files. We are running a print servlet on a Tomcat 5.
I set up the Log4j stuff properly and on Debug it logs all that good stuff
but the main error message at the end of the render try is obviously not
logged via commons-logging???
Here is one example:
(Position des Fehlers unbekannt)org.apache.fop.fo.ValidationException:
Error(Unknown location):
fo:table-body is missing child elements.Required Content Model: marker*
(table-row+|table-cell+)
This message shows on the console but not in the log. Could you throw me a
hunch, please.
Thanks for your Help
-------------------------------------------------------
Normen Ruhrus
Alphasoft GmbH
Prinz-Regent-Str. 50-60
D - 44795 Bochum
fon: ++49(0)234 / 333 88 18
fax: ++49(0)234 / 29831837
mail: n.ruhrus@alphasoft-gmbh.de
Re: Errors & Logging (FOP 0.91 beta)
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Could be a default ErrorListener implementation from Xalan-J. Or you
catch exceptions in your servlet (or whatever) and you don't use the
logger there. I suggest you check the ErrorListener thing first, because
I've stumbled over that one before. Try setting your own ErrorListener
on the JAXP Transformer or you can use the
org.apache.fop.util.DefaultErrorListener which takes a Log instance (JCL)
in the constructor. But I think you'll need to use the latest FOP
version 0.92beta. I think I added it after the 0.91beta release.
I hope that helps.
On 26.04.2006 13:48:02 Normen Ruhrus wrote:
> Hi there,
>
> currently evaluating the new FOP version. Wecurrently still run 0.20.5. Do you have any information about performanceimprovements especially concerning the mem issues?
> Well, my main concern is a problem with logging somegeneral error messages to files. We are running a print servlet on a Tomcat 5.
> I set up the Log4j stuff properly and on Debug itlogs all that good stuff but the main error message at the end of the rendertry is obviously not logged via commons-logging???
>
> Here is one example:
> (Position des Fehlersunbekannt)org.apache.fop.fo.ValidationException: Error(Unknown location):
> fo:table-body is missing child elements.RequiredContent Model: marker* (table-row+|table-cell+)
>
> This message shows on the console but not in the log.Could you throw me a hunch, please.
>
> Thanks for your Help
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Errors & Logging (FOP 0.91 beta)
Posted by Lo...@log-net.com.
If you just need the console messages logged to a file, you can edit your
log4j.xml file to write to the default system out file instead of the
console (or to both if you want). Check out the following FAQs/wikis:
http://tomcat.apache.org/faq/logging.html
http://wiki.jboss.org/wiki/Wiki.jsp?page=Logging
-Lou
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOG-NET, Inc.
The Logistics Network Management System
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230 Half Mile Road
Third Floor
Red Bank, NJ 07701
PH: 732-758-6800
FAX: 732-747-7497
http://www.LOG-NET.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIDENTIAL & PRIVILEGED
Unless otherwise indicated or if obvious from the nature of the content,
the information contained herein is privileged and confidential
information/work product. The communication is intended for the use of the
individual or entity named above. If the reader of this transmission is
not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please
notify the sender immediately by telephone (732-758-6800) or by electronic
mail (postmaster@LOG-NET.com), and destroy any copies, electronic, paper
or otherwise, which you may have of this communication. Thank you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Normen Ruhrus" <N....@Alphasoft-GmbH.de>
04/26/2006 07:48
Please respond to
fop-users@xmlgraphics.apache.org
To
<fo...@xmlgraphics.apache.org>
cc
Subject
Errors & Logging (FOP 0.91 beta)
Hi there,
currently evaluating the new FOP version. We currently still run 0.20.5.
Do you have any information about performance improvements especially
concerning the mem issues?
Well, my main concern is a problem with logging some general error
messages to files. We are running a print servlet on a Tomcat 5.
I set up the Log4j stuff properly and on Debug it logs all that good stuff
but the main error message at the end of the render try is obviously not
logged via commons-logging???
Here is one example:
(Position des Fehlers unbekannt)org.apache.fop.fo.ValidationException:
Error(Unknown location):
fo:table-body is missing child elements.Required Content Model: marker*
(table-row+|table-cell+)
This message shows on the console but not in the log. Could you throw me a
hunch, please.
Thanks for your Help
-------------------------------------------------------
Normen Ruhrus
Alphasoft GmbH
Prinz-Regent-Str. 50-60
D - 44795 Bochum
fon: ++49(0)234 / 333 88 18
fax: ++49(0)234 / 29831837
mail: n.ruhrus@alphasoft-gmbh.de