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 [EMAIL PROTECTED] www.codenoevil.com Code Made Fresh DailyT --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]