Hi Stan,
Well, I'm pretty much out of ideas. It looks to me like
it's a problem with the server. You said you had tried
'svgz' - does that mean that you replaced the index file
with a gzipped version? It seems like that is the most
logical problem source (Batik asks for gzip if you have
it and since the first is gzip it works but the second
locks up the server).
Does the the call hang or does it throw an exception?
Stan Dickerson wrote:
Thanks for the reply. I tried the uncrippled js.jar again and got a
security exception. I'm using JRE 1.4.2_04 and Batik 1.5.1.
I was using "file:///var/www/html/index.html" in the Linux console
browser without hanging - now I'm using "http://192.0.0.118/" (my Linux
machine's IP) and getting the hanging problem locally. It's stopping in
ParsedURLData.openStreamInternal(String, Iterator, Iterator) at
contentType = urlC.getContentType(). If hard coded to "text/plain;
charset=ISO-8859-1", it stops at getContentEncoding() - if hard coded to
null, stops at getInputStream().
Here's a valid load:
**********************************************
loadDocument:http://192.0.0.118/svg/Index.svgz
createDocument:http://192.0.0.118/svg/Index.svgz
createDocument purl:http://192.0.0.118/svg/Index.svgz
openStream 0:image/svg+xml
openStream
openStreamInternal:null
openStreamInternal
urlC:sun.plugin.net.protocol.http.HttpURLConnection:http://192.0.0.118/svg/Index.svgz
openStreamInternal setRequestProperty userAgent:Batik/1.0
openStreamInternal encodingTypes:[EMAIL PROTECTED]
encodingHeader:gzip
openStreamInternal settingRequestProperty:gzip
openStreamInternal @ getContentType
urlC:sun.plugin.net.protocol.http.HttpURLConnection:http://192.0.0.118/svg/Index.svgz
openStreamInternal contentType:text/plain; charset=ISO-8859-1
openStreamInternal contentEncoding:null
openStreamInternal getting InputStream
createDocument is:[EMAIL PROTECTED]
createDocument isrc:[EMAIL PROTECTED]
createDocument contentType:text/plain; charset=iso-8859-1
calling getDocumentDescriptor
DocumentDescriptor:[EMAIL PROTECTED]
DocumentState:[EMAIL PROTECTED]
loadDocument:jar:http://192.0.0.118/java/lib/batik-bridge.jar!/org/apache/batik/bridge/BrokenLink.svg
createDocument:jar:http://192.0.0.118/java/lib/batik-bridge.jar!/org/apache/batik/bridge/BrokenLink.svg
createDocument
purl:jar:http://192.0.0.118/java/lib/batik-bridge.jar!/org/apache/batik/bridge/BrokenLink.svg
openStream 0:image/svg+xml
openStream
openStreamInternal:null
openStreamInternal
urlC:sun.plugin.net.protocol.jar.CachedJarURLConnection:jar:http://192.0.0.118/java/lib/batik-bridge.jar!/org/apache/batik/bridge/BrokenLink.svg
openStreamInternal getting InputStream
createDocument is:[EMAIL PROTECTED]
createDocument isrc:[EMAIL PROTECTED]
createDocument contentType:null
openStreamInternal:null
openStreamInternal
urlC:sun.plugin.net.protocol.jar.CachedJarURLConnection:jar:http://192.0.0.118/java/lib/batik-svg-dom.jar!/org/apache/batik/dom/svg/resources/UserAgentStyleSheet.css
openStreamInternal getting InputStream
bridgeContext:[EMAIL PROTECTED]
calling getDocumentDescriptor
DocumentDescriptor:[EMAIL PROTECTED]
DocumentState:[EMAIL PROTECTED]
openStreamInternal:null
openStreamInternal
urlC:sun.plugin.net.protocol.jar.CachedJarURLConnection:jar:http://192.0.0.118/java/lib/batik-svg-dom.jar!/org/apache/batik/dom/svg/resources/UserAgentStyleSheet.css
openStreamInternal getting InputStream
openStream
openStream
openStream
openStreamInternal:null
openStreamInternal
urlC:sun.plugin.net.protocol.http.HttpURLConnection:http://192.0.0.118/svg/scripts/events.js
openStreamInternal setRequestProperty userAgent:Batik/1.0
openStreamInternal encodingTypes:[EMAIL PROTECTED]
encodingHeader:gzip
openStreamInternal settingRequestProperty:gzip
openStreamInternal @ getContentType
urlC:sun.plugin.net.protocol.http.HttpURLConnection:http://192.0.0.118/svg/scripts/events.js
openStreamInternal contentType:application/x-javascript
openStreamInternal contentEncoding:null
openStreamInternal getting InputStream
**********************************************
Here's the load that hangs:
**********************************************
loadDocument:http://192.0.0.118/svg/AHU_Index.svg
createDocument:http://192.0.0.118/svg/AHU_Index.svg
createDocument purl:http://192.0.0.118/svg/AHU_Index.svg
openStream 0:image/svg+xml
openStream
openStreamInternal:null
openStreamInternal
urlC:sun.plugin.net.protocol.http.HttpURLConnection:http://192.0.0.118/svg/AHU_Index.svg
openStreamInternal setRequestProperty userAgent:Batik/1.0
openStreamInternal encodingTypes:[EMAIL PROTECTED]
encodingHeader:gzip
openStreamInternal settingRequestProperty:gzip
openStreamInternal @ getContentType
urlC:sun.plugin.net.protocol.http.HttpURLConnection:http://192.0.0.118/svg/AHU_Index.svg
**********************************************
Could I doing something to URLConnection between drawings? BTW, I tried
AHU_Index.svg and .svgz.
Thanks,
Stan Dickerson
On Thu, 2004-10-07 at 08:06, Thomas DeWeese wrote:
Hi Stan,
Personally I think the optimizer thing is a red herring (have
you tried it with the uncrippled js.jar?).
I would do a thread dump to see what's do what when it hangs.
I am also curious where in the document 'build' processes it
get's to (I would probably add print statements or stack traces
to see where exactly it is dying).
You also don't say, what JDK? what version of Batik?
Stan Dickerson wrote:
I am using a "js.jar" which has no org/mozilla/javascript/optimizer
directory to prevent an exception which was discussed in a thread a few
months ago. That is working on the Linux console, from Windows over the
LAN and Windows to a remote site. However, from the Linux console to
the remote site, the 1st drawing displays in Batik but it hangs upon
clicking on a link to another drawing.
With trace level 5 in the Java console, I get the following when loading
the 1st drawing:
Connecting http://sitename/svg/Index.svgz with proxy=192.0.0.60:3128
Connecting http://sitename/svg/Index.svgz with cookie
"JSESSIONID=81E61750F1D0E1D993263429A4719045"
...
Connecting
http://sitename/java/org/mozilla/javascript/optimizer/Codegen.class with
proxy=192.0.0.60:3128
Connecting
http://sitename/java/org/mozilla/javascript/optimizer/Codegen.class with
cookie "JSESSIONID=55C3B738802372B0B2459562053539D5"
Connecting
http://sitename/java/org/mozilla/javascript/optimizer/InvokerImpl.class
with proxy=192.0.0.60:3128
Connecting
http://sitename/java/org/mozilla/javascript/optimizer/InvokerImpl.class
with cookie "JSESSIONID=55C3B738802372B0B2459562053539D5"
...
Clicking on a link produces:
...
Connecting http://sitename/svg/secondDrawing.svgz with
proxy=192.0.0.60:3128
Connecting http://sitename/svg/secondDrawing.svgz with cookie
"JSESSIONID=55C3B738802372B0B2459562053539D5"
Connecting
http://sitename/java/org/mozilla/javascript/optimizer/InvokerImpl.class
with proxy=192.0.0.60:3128
Connecting http://sitename/svg/secondDrawing.svgz with
proxy=192.0.0.60:3128
(with no more activity)
Any ideas?
Thanks,
Stan Dickerson
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
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]