xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stan Dickerson <engineer...@energycontrolsystems.com>
Subject Re: org/mozilla/javascript/optimizer Batik hangs?
Date Thu, 07 Oct 2004 23:12:56 GMT
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:java.util.LinkedList$ListItr@93c911
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:java.util.zip.GZIPInputStream@7587b2
createDocument isrc:org.xml.sax.InputSource@1fbe88
createDocument contentType:text/plain; charset=iso-8859-1
calling getDocumentDescriptor
DocumentDescriptor:org.apache.batik.dom.util.DocumentDescriptor@1404c51
DocumentState:org.apache.batik.bridge.DocumentLoader$DocumentState@5292e6
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:java.io.BufferedInputStream@4c689e
createDocument isrc:org.xml.sax.InputSource@688d6f
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:org.apache.batik.bridge.BridgeContext@f0474c
calling getDocumentDescriptor
DocumentDescriptor:org.apache.batik.dom.util.DocumentDescriptor@d8fb2b
DocumentState:org.apache.batik.bridge.DocumentLoader$DocumentState@151e135
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:java.util.LinkedList$ListItr@ba4539
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:java.util.LinkedList$ListItr@21f9dd
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: batik-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: batik-users-help@xml.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message