Pinging www.w3.org [128.30.52.53] with 32 bytes of data:
Reply from 128.30.52.53: bytes=32 time=68ms TTL=45
Reply from 128.30.52.53: bytes=32 time=70ms TTL=45
Reply from 128.30.52.53: bytes=32 time=68ms TTL=45
Reply from 128.30.52.53: bytes=32 time=67ms TTL=45
Ping statistics for 128.30.52.53:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 67ms, Maximum = 70ms, Average = 68ms
I work from a home office so network blocking is not a problem. Though when
we deploy this to our clients that is good to be aware of. Any other
suggestions? I attached my fop interface class to my previous email if that
helps
~Brian
___________________________________________________
Brian Trezise
Staff Software Engineer
IntelliData, Inc
22288 E Princeton Dr
aurora, colorado 80018
T: 720.524.4864
[EMAIL PROTECTED]
-----Original Message-----
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2008 4:16 PM
To: [email protected]
Subject: Re: Logging question
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]