Brian Trezise wrote:
Using FOP 0.95, I'm generating a single-page PDF document in a web server,
and it's taking nigh on 20 seconds to generate. When I prototyped this it
was running< 1 second. The only difference is that when I prototyped I
generated the Source object from a File, and on the webserver I'm pulling it
from a runtime-generated org.jdom.Document that I converted to a
ByteArrayInputStream.
I have a suspicion that a part of the problem is that for some reason using
the ByteArrayStream as an input I'm getting thousands of lines in my log
file.
Very unlikely.
The problem is probably here:
20 Aug 2008 15:46:58,937 - No route found!
I suspect you include a DTD in your SVGs, FOP tries to
load the DTD from the w3c web server, but a firewall or
something blocks this, and FOP waits for the network stack
timeout.
You can check this if you can log in onto the server and
try a ping or traceroute to www.w3.org.
You can try the following solutions:
- Write or get an EntityResolver which provides an empty DTD,
or the SVG DTD from local storage (if you rely on the declaration
of the xmlns:svg in the DTD), and set this on the XML parser you
use for the SVGs. The details are somewhat gory but you should
find them in the mail archives.
- Remove the DOCTYPE from your SVGs (don't do this if you rely on
the declaration of the xmlns:svg in the DTD)
- Ask the network staff to unblock access to www.w3.org (not
recommended)
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]