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 "David B. Bitton" <da...@codenoevil.com> on 2002/04/04 23:16:36 UTC

Multithreaded failure

List,
    I'm having a failure of FOP 0.20.3 while in a multithreaded environment.
FOP is being called within the context of a SOAP RPC.  As soon as I hit the
process w/ a second thread, I start getting a FOPException
"org.apache.fop.apps.FOPException: root must be root element".  I am firing
the SAX events directly into the FOPTreeBuilder by way the of the
getContentHanlder() and a Xalan XML/XSLT transform.

    I set the log output to DEBUG, and here is a clip around the time of the
failure:

DEBUG   10179   [fop     ] (): reading user configuration file
INFO    10179   [fop     ] (): building formatting object tree
DEBUG   10179   [fop     ] (): setting up fonts
INFO    10179   [fop     ] (): [1]
DEBUG   10179   [fop     ] (): Last page-sequence produced 1 pages.
INFO    10179   [fop     ] (): [2]
DEBUG   10179   [fop     ] (): area contents overflows area
DEBUG   10179   [fop     ] (): area contents overflows area
DEBUG   10179   [fop     ] (): Last page-sequence produced 1 pages.
INFO    10179   [fop     ] (): Parsing of document complete, stopping
renderer
DEBUG   10179   [fop     ] (): Initial heap size: 43574Kb
DEBUG   10179   [fop     ] (): Current heap size: 43534Kb
DEBUG   10179   [fop     ] (): Total memory used: -40Kb
DEBUG   10179   [fop     ] ():   Memory use is indicative; no GC was
performed
DEBUG   10179   [fop     ] ():   These figures should not be used
comparatively
DEBUG   10179   [fop     ] (): Total time used: 921ms
DEBUG   10179   [fop     ] (): Pages rendererd: 2
DEBUG   10179   [fop     ] (): Avg render time: 460ms/page
DEBUG   10179   [fop     ] (): reading user configuration file
DEBUG   10179   [fop     ] (): reading user configuration file
INFO    10179   [fop     ] (): building formatting object tree
DEBUG   10179   [fop     ] (): setting up fonts
INFO    10179   [fop     ] (): [1]
DEBUG   10179   [fop     ] (): Last page-sequence produced 1 pages.
INFO    10179   [fop     ] (): [2]
INFO    10179   [fop     ] (): [3]
INFO    10179   [fop     ] (): building formatting object tree
DEBUG   10179   [fop     ] (): setting up fonts
DEBUG   10179   [fop     ] (): reading user configuration file
INFO    10179   [fop     ] (): building formatting object tree
DEBUG   10179   [fop     ] (): setting up fonts
DEBUG   10179   [fop     ] (): reading user configuration file
INFO    10179   [fop     ] (): building formatting object tree
DEBUG   10179   [fop     ] (): setting up fonts
DEBUG   10179   [fop     ] (): reading user configuration file
INFO    10179   [fop     ] (): building formatting object tree
DEBUG   10179   [fop     ] (): setting up fonts

You can see where the second thread enters because of the double entry for
"reading user configuration file", then the repeated failed starts.  After
each "setting up fonts", is where the exception is being thrown.  Just to
make sure, I am using Xalan from CVS, as per a suggestion from someone on
the Xalan list.

  Unfortunately my application relies on this working, so any help would be
more than greatly appreciated.  I'll be sure to reciprocate if you are ever
in NYC.


--

David B. Bitton
david@codenoevil.com
www.codenoevil.com

Code Made Fresh DailyT


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org