You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Stan Dickerson <en...@energycontrolsystems.com> on 2004/10/06 20:17:06 UTC

org/mozilla/javascript/optimizer Batik hangs?

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


Re: setURI hangs on Linux console [was Re: org/mozilla/javascript/optimizer Batik hangs?]

Posted by Stan Dickerson <en...@energycontrolsystems.com>.
On Fri, 2004-10-29 at 14:41, Stan Dickerson wrote:
> On Mon, 2004-10-11 at 14:26, Thomas DeWeese wrote:
> > Stan Dickerson wrote:
> > > userAgent = new SDUserAgent();	// my code (extends UserAgentAdapter
> > > implements SVGUserAgent)
> > > svgCanvas = new SVGCanvas(userAgent, true, false);
> > > ...ALWAYS_DYNAMIC...add listeners...
> > > url = drawingNameToURL(name);	// my code (name == "Index.svg")
> > > svgCanvas.setURI(url.toString());
> > > 
> > > "AHU_Index.svg" is loaded from my UserAgent openLink().  Could there be
> > > a problem with my UserAgent?
> > 
> >     Your derivation is a bit odd.  There are two distinct UserAgent
> > classes in batik the 'bridge' User Agent, and the SVGUserAgent.  You
> > seem to claim to extend the bridge user agent and implement the
> > SVGUserAgent - I'm not sure what the real result of this would be
> > (although I honestly think the problem is in the JDK's networking
> > code, as remote a possibility as that seems,  based on the stack
> > traces).
> 
> I changed the user agent to extend SVGUserAgentGUIAdapter but got the
> same result.
> 
> I'm postponing fixing this but here is a summary:
> 
> Batik 1.5.1
> JSVGCanvas in Java applet
> setURI(url.toString()) called from init() is OK in all cases
> 
> setURI(url.toString()) called from UserAgent openLink() is:
>         OK from Windows I.E. or Firefox with "http:" URL
>         OK on Linux console if a "file:" URL is used to load the applet
>         HANGS on Linux console if an "http:" URL is used to load the
>                 applet (Mozilla or Firefox, Java 1.4.2 or Java 1.5.0)

P.S. setURI() from openLink() works on the Linux console if the URL is
set for "no proxy" in Mozilla preferences.


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


Re: setURI hangs on Linux console [was Re: org/mozilla/javascript/optimizer Batik hangs?]

Posted by engineering <en...@energycontrolsystems.com>.
This seems to be fixed by a patch for RhinoInterpreter.java discussed
today on batik-dev@xmlgraphics.apache.org (subject: Re: DO NOT REPLY
[Bug 34168]  New:  -    applet gets AccessControlException if has
ecmascript and js.jar has optimizer directory).


On Mon, 2005-03-21 at 16:28, engineering wrote:
> On Fri, 2004-10-29 at 14:41, Stan Dickerson wrote:
> 
> > I'm postponing fixing this but here is a summary:
> > 
> > Batik 1.5.1
> > JSVGCanvas in Java applet
> > setURI(url.toString()) called from init() is OK in all cases
> > 
> > setURI(url.toString()) called from UserAgent openLink() is:
> >         OK from Windows I.E. or Firefox with "http:" URL
> >         OK on Linux console if a "file:" URL is used to load the applet
> >         HANGS on Linux console if an "http:" URL is used to load the
> >                 applet (Mozilla or Firefox, Java 1.4.2 or Java 1.5.0)
> > 
> 
> Today I noticed that when this problem occurs, the last entry in
> /var/log/httpd/access_log is "...GET
> /java/org/mozilla/javascript/optimizer/InvokerImpl.class..." so I tried
> js.jar WITH the optimizer directory (not stripped as discussed in a
> thread last fall).  I got a security exception as expected but setURI()
> succeeded. The drawing also displayed completely with Java 1.5 (another
> problem I've had).
>  
-- 
Stan Dickerson
Product Development Engineer
Energy Control Systems
2940 Cole Court
Norcross, GA 30071

1-800-648-0970
770-448-0651
770-446-1319 fax


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


Re: setURI hangs on Linux console [was Re: org/mozilla/javascript/optimizer Batik hangs?]

Posted by engineering <en...@energycontrolsystems.com>.
On Fri, 2004-10-29 at 14:41, Stan Dickerson wrote:

> I'm postponing fixing this but here is a summary:
> 
> Batik 1.5.1
> JSVGCanvas in Java applet
> setURI(url.toString()) called from init() is OK in all cases
> 
> setURI(url.toString()) called from UserAgent openLink() is:
>         OK from Windows I.E. or Firefox with "http:" URL
>         OK on Linux console if a "file:" URL is used to load the applet
>         HANGS on Linux console if an "http:" URL is used to load the
>                 applet (Mozilla or Firefox, Java 1.4.2 or Java 1.5.0)
> 

Today I noticed that when this problem occurs, the last entry in
/var/log/httpd/access_log is "...GET
/java/org/mozilla/javascript/optimizer/InvokerImpl.class..." so I tried
js.jar WITH the optimizer directory (not stripped as discussed in a
thread last fall).  I got a security exception as expected but setURI()
succeeded. The drawing also displayed completely with Java 1.5 (another
problem I've had).
 
-- 
Stan Dickerson
Product Development Engineer
Energy Control Systems
2940 Cole Court
Norcross, GA 30071

1-800-648-0970
770-448-0651
770-446-1319 fax


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


setURI hangs on Linux console [was Re: org/mozilla/javascript/optimizer Batik hangs?]

Posted by Stan Dickerson <en...@energycontrolsystems.com>.
On Mon, 2004-10-11 at 14:26, Thomas DeWeese wrote:
> Stan Dickerson wrote:
> > userAgent = new SDUserAgent();	// my code (extends UserAgentAdapter
> > implements SVGUserAgent)
> > svgCanvas = new SVGCanvas(userAgent, true, false);
> > ...ALWAYS_DYNAMIC...add listeners...
> > url = drawingNameToURL(name);	// my code (name == "Index.svg")
> > svgCanvas.setURI(url.toString());
> > 
> > "AHU_Index.svg" is loaded from my UserAgent openLink().  Could there be
> > a problem with my UserAgent?
> 
>     Your derivation is a bit odd.  There are two distinct UserAgent
> classes in batik the 'bridge' User Agent, and the SVGUserAgent.  You
> seem to claim to extend the bridge user agent and implement the
> SVGUserAgent - I'm not sure what the real result of this would be
> (although I honestly think the problem is in the JDK's networking
> code, as remote a possibility as that seems,  based on the stack
> traces).

I changed the user agent to extend SVGUserAgentGUIAdapter but got the
same result.

I'm postponing fixing this but here is a summary:

Batik 1.5.1
JSVGCanvas in Java applet
setURI(url.toString()) called from init() is OK in all cases

setURI(url.toString()) called from UserAgent openLink() is:
        OK from Windows I.E. or Firefox with "http:" URL
        OK on Linux console if a "file:" URL is used to load the applet
        HANGS on Linux console if an "http:" URL is used to load the
                applet (Mozilla or Firefox, Java 1.4.2 or Java 1.5.0)

Thanks,

Stan Dickerson


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


Re: org/mozilla/javascript/optimizer Batik hangs?

Posted by Thomas DeWeese <Th...@Kodak.com>.
Stan Dickerson wrote:
> userAgent = new SDUserAgent();	// my code (extends UserAgentAdapter
> implements SVGUserAgent)
> svgCanvas = new SVGCanvas(userAgent, true, false);
> ...ALWAYS_DYNAMIC...add listeners...
> url = drawingNameToURL(name);	// my code (name == "Index.svg")
> svgCanvas.setURI(url.toString());
> 
> "AHU_Index.svg" is loaded from my UserAgent openLink().  Could there be
> a problem with my UserAgent?

    Your derivation is a bit odd.  There are two distinct UserAgent
classes in batik the 'bridge' User Agent, and the SVGUserAgent.  You
seem to claim to extend the bridge user agent and implement the
SVGUserAgent - I'm not sure what the real result of this would be
(although I honestly think the problem is in the JDK's networking
code, as remote a possibility as that seems,  based on the stack
traces).

 > I noticed that upon clicking on a link, ParsedURLData is being
 > called once with "Index.svg" (the 1st drawing), again with
 > "AHU_Index.svg" (the link's drawing) and again with "Index.svg."  I
 > added a printStackTrace() at the beginning of ParsedURLData and got
 > the following:

    This isn't too surprising since it uses the Index.svgz as the
'base' URL when resolving AHU_Index.svg.

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


Re: org/mozilla/javascript/optimizer Batik hangs?

Posted by Stan Dickerson <en...@energycontrolsystems.com>.
StatusBar is my code but I have since disabled StatusBar and timers with
the same result.

I noticed that upon clicking on a link, ParsedURLData is being called
once with "Index.svg" (the 1st drawing), again with "AHU_Index.svg" (the
link's drawing) and again with "Index.svg."  I added a printStackTrace()
at the beginning of ParsedURLData and got the following:

java.lang.Exception
	at org.apache.batik.util.ParsedURLData.<init>(Unknown Source)
	at
org.apache.batik.util.ParsedURLDefaultProtocolHandler.constructParsedURLData(Unknown Source)
	at
org.apache.batik.util.ParsedURLDefaultProtocolHandler.parseURL(Unknown
Source)
	at org.apache.batik.util.ParsedURL.parseURL(Unknown Source)
	at org.apache.batik.util.ParsedURL.<init>(Unknown Source)
	at org.apache.batik.util.ParsedURL.parseURL(Unknown Source)
	at org.apache.batik.util.ParsedURL.<init>(Unknown Source)
	at
org.apache.batik.swing.svg.JSVGComponent$BridgeUserAgent.openLink(Unknown Source)
	at org.apache.batik.swing.svg.JSVGComponent$25.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
ParsedURLData url:http://192.0.0.118/svg/Index.svgz 
contentType:text/plain; charset=ISO-8859-1
java.lang.Exception
	at org.apache.batik.util.ParsedURLData.<init>(Unknown Source)
	at
org.apache.batik.util.ParsedURLDefaultProtocolHandler.constructParsedURLData(Unknown Source)
	at
org.apache.batik.util.ParsedURLDefaultProtocolHandler.parseURL(Unknown
Source)
	at
org.apache.batik.util.ParsedURLDefaultProtocolHandler.parseURL(Unknown
Source)
	at org.apache.batik.util.ParsedURL.parseURL(Unknown Source)
	at org.apache.batik.util.ParsedURL.parseURL(Unknown Source)
	at org.apache.batik.util.ParsedURL.<init>(Unknown Source)
	at
org.apache.batik.swing.svg.JSVGComponent$BridgeUserAgent.openLink(Unknown Source)
	at org.apache.batik.swing.svg.JSVGComponent$25.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
ParsedURLData url:http://192.0.0.118/svg/AHU_Index.svgz 
contentType:text/plain; charset=ISO-8859-1
java.lang.Exception
	at org.apache.batik.util.ParsedURLData.<init>(Unknown Source)
	at
org.apache.batik.util.ParsedURLDefaultProtocolHandler.constructParsedURLData(Unknown Source)
	at
org.apache.batik.util.ParsedURLDefaultProtocolHandler.parseURL(Unknown
Source)
	at org.apache.batik.util.ParsedURL.parseURL(Unknown Source)
	at org.apache.batik.util.ParsedURL.<init>(Unknown Source)
	at
org.apache.batik.swing.svg.JSVGComponent$BridgeUserAgent.openLink(Unknown Source)
	at org.apache.batik.swing.svg.JSVGComponent$25.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
ParsedURLData url:http://192.0.0.118/svg/Index.svgz 
contentType:text/plain; charset=ISO-8859-1
contentType:text/plain; charset=ISO-8859-1
@ setURI contentType:text/plain; charset=ISO-8859-1
java.lang.Exception
	at org.apache.batik.util.ParsedURLData.<init>(Unknown Source)
	at
org.apache.batik.util.ParsedURLDefaultProtocolHandler.constructParsedURLData(Unknown Source)
	at
org.apache.batik.util.ParsedURLDefaultProtocolHandler.parseURL(Unknown
Source)
	at org.apache.batik.util.ParsedURL.parseURL(Unknown Source)
	at org.apache.batik.util.ParsedURL.<init>(Unknown Source)
	at org.apache.batik.util.ParsedURL.parseURL(Unknown Source)
	at org.apache.batik.util.ParsedURL.<init>(Unknown Source)
	at org.apache.batik.swing.svg.JSVGComponent.loadSVGDocument(Unknown
Source)
	at org.apache.batik.swing.JSVGCanvas.setURI(Unknown Source)
	at ems.SysDisplay.setURI(SysDisplay.java:2818)
	at ems.SysDisplay$SDUserAgent.openLink(SysDisplay.java:3752)
	at
org.apache.batik.swing.svg.JSVGComponent$BridgeUserAgent.openLink(Unknown Source)
	at org.apache.batik.swing.svg.JSVGComponent$25.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

"Index.svg" is loaded from init() as follows:

userAgent = new SDUserAgent();	// my code (extends UserAgentAdapter
implements SVGUserAgent)
svgCanvas = new SVGCanvas(userAgent, true, false);
...ALWAYS_DYNAMIC...add listeners...
url = drawingNameToURL(name);	// my code (name == "Index.svg")
svgCanvas.setURI(url.toString());

"AHU_Index.svg" is loaded from my UserAgent openLink().  Could there be
a problem with my UserAgent?

Thanks

On Mon, 2004-10-11 at 06:22, Thomas DeWeese wrote:
> Hi Stan,
> 
>     Any idea who 'ems_funcs.StatusBar' is?  I assume it is
> your code.  It is a little interesting because they both
> seem to be tied up waiting on the 'cookie' info.
> 
>     Are you doing anything with the cookie subsystem?
> 
> Stan Dickerson wrote:
> 
> > I got the same result with both files (Index.svg & AHU_Index.svg)
> > uncompressed or compressed.
> > 
> > openStreamInternal() hangs at contentType = urlC.getContentType() until
> > I close the applet window when it continues normally (I get the rest of
> > the print statements in the Java console).
> > 
> > I see getContentType() in Thread-79 below - it's waiting on <0x48b65078>
> > which was locked by the same thread?
> > 
> > I'll see if I can find a deadlock with JProbe.
> > 
> > Thanks
> > 
> > 
> > On Fri, 2004-10-08 at 12:29, Thomas DeWeese wrote:
> > 
> >>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
...
> >>>>>
> >>>>>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


Re: org/mozilla/javascript/optimizer Batik hangs?

Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Stan,

    Any idea who 'ems_funcs.StatusBar' is?  I assume it is
your code.  It is a little interesting because they both
seem to be tied up waiting on the 'cookie' info.

    Are you doing anything with the cookie subsystem?

Stan Dickerson wrote:

> I got the same result with both files (Index.svg & AHU_Index.svg)
> uncompressed or compressed.
> 
> openStreamInternal() hangs at contentType = urlC.getContentType() until
> I close the applet window when it continues normally (I get the rest of
> the print statements in the Java console).
> 
> I see getContentType() in Thread-79 below - it's waiting on <0x48b65078>
> which was locked by the same thread?
> 
> I'll see if I can find a deadlock with JProbe.
> 
> Thanks
> 
> Full thread dump Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode):
> 
> "StatusBar.Refresh" daemon prio=1 tid=0x087d8d88 nid=0x77d1 waiting for
> monitor entry [4db05000..4db05854]
> 	at sun.plugin.net.cookie.PluginCookieManager.getCookieInfo(Unknown
> Source)
> 	- waiting to lock <0x48c31738> (a java.lang.Class)
> 	at sun.plugin.net.protocol.http.HttpURLConnection.connectSetup(Unknown
> Source)
> 	at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown
> Source)
> 	- locked <0x4475b7d0> (a
> sun.plugin.net.protocol.http.HttpURLConnection)
> 	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown
> Source)
> 	- locked <0x4475b7d0> (a
> sun.plugin.net.protocol.http.HttpURLConnection)
> 	at ems_funcs.HttpMessage.sendPostMessage(HttpMessage.java:79)
> 	at ems_data.UserSession.sendPostMessage(UserSession.java:164)
> 	at ems_data.UserSession.keepAlive(UserSession.java:143)
> 	at ems_funcs.StatusBar$Refresh.run(StatusBar.java:409)
> 
> "Thread-79" prio=1 tid=0x08a058b8 nid=0x77d1 in Object.wait()
> [4da03000..4da03854]
> 	at java.lang.Object.wait(Native Method)
> 	- waiting on <0x48b65078> (a java.lang.Class)
> 	at java.lang.Object.wait(Unknown Source)
> 	at sun.plugin.navig.motif.Worker.enterRequest(Unknown Source)
> 	- locked <0x48b65078> (a java.lang.Class)
> 	at sun.plugin.navig.motif.Worker.findCookieForURL(Unknown Source)
> 	- locked <0x48b65078> (a java.lang.Class)
> 	at sun.plugin.net.cookie.MNetscape6CookieHandler.getCookieInfo(Unknown
> Source)
> 	at sun.plugin.net.cookie.PluginCookieManager.getCookieInfo(Unknown
> Source)
> 	- locked <0x48c31738> (a java.lang.Class)
> 	at sun.plugin.net.protocol.http.HttpURLConnection.connectSetup(Unknown
> Source)
> 	at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown
> Source)
> 	- locked <0x4472def0> (a
> sun.plugin.net.protocol.http.HttpURLConnection)
> 	at
> sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown
> Source)
> 	- locked <0x4472def0> (a
> sun.plugin.net.protocol.http.HttpURLConnection)
> 	at
> sun.plugin.net.protocol.http.HttpURLConnection.getHeaderField(Unknown
> Source)
> 	at java.net.URLConnection.getContentType(Unknown Source)
> 	at org.apache.batik.util.ParsedURLData.openStreamInternal(Unknown
> Source)
> 	at org.apache.batik.util.ParsedURLData.openStream(Unknown Source)
> 	at org.apache.batik.util.ParsedURL.openStream(Unknown Source)
> 	at
> org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown
> Source)
> 	at
> org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(Unknown
> Source)
> 	at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
> 	at org.apache.batik.swing.svg.SVGDocumentLoader.run(Unknown Source)
> 
> "Thread-71" daemon prio=1 tid=0x08c70210 nid=0x77d1 in Object.wait()
> [4e9bd000..4e9bd854]
> 	at java.lang.Object.wait(Native Method)
> 	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
> 	- locked <0x44f29810> (a java.lang.ref.ReferenceQueue$Lock)
> 	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
> 	at org.apache.batik.util.CleanerThread.run(Unknown Source)
> 
> "AnimationThread" daemon prio=1 tid=0x08a98f98 nid=0x77d1 waiting on
> condition [4dc07000..4dc07854]
> 	at java.lang.Thread.sleep(Native Method)
> 	at ems.SysDisplay$AnimationThread.run(SysDisplay.java:3081)
> 
> "RMI ConnectionExpiration-[192.0.0.118:38387]" daemon prio=1
> tid=0x087a3240 nid=0x77d1 waiting on condition [4e93c000..4e93c854]
> 	at java.lang.Thread.sleep(Native Method)
> 	at sun.rmi.transport.tcp.TCPChannel$Reaper.run(Unknown Source)
> 	at java.lang.Thread.run(Unknown Source)
> 
> "GC Daemon" daemon prio=1 tid=0x087a30b8 nid=0x77d1 in Object.wait()
> [4e7eb000..4e7eb854]
> 	at java.lang.Object.wait(Native Method)
> 	- waiting on <0x44c43190> (a sun.misc.GC$LatencyLock)
> 	at sun.misc.GC$Daemon.run(Unknown Source)
> 	- locked <0x44c43190> (a sun.misc.GC$LatencyLock)
> 
> "RMI RenewClean-[192.0.0.118:38387]" daemon prio=1 tid=0x087a2d70
> nid=0x77d1 in Object.wait() [4e15c000..4e15c854]
> 	at java.lang.Object.wait(Native Method)
> 	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
> 	- locked <0x44eca7d0> (a java.lang.ref.ReferenceQueue$Lock)
> 	at
> sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(Unknown
> Source)
> 	at java.lang.Thread.run(Unknown Source)
> 
> "AWT-EventQueue-5" prio=1 tid=0x08742d98 nid=0x77d1 in Object.wait()
> [4e0db000..4e0db854]
> 	at java.lang.Object.wait(Native Method)
> 	at java.lang.Object.wait(Unknown Source)
> 	at java.awt.EventQueue.getNextEvent(Unknown Source)
> 	- locked <0x44e87d70> (a java.awt.EventQueue)
> 	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
> Source)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 	at java.awt.EventDispatchThread.run(Unknown Source)
> 
> "TimerQueue" daemon prio=1 tid=0x087a4d68 nid=0x77d1 in Object.wait()
> [4e8bb000..4e8bb854]
> 	at java.lang.Object.wait(Native Method)
> 	- waiting on <0x44ea05e0> (a javax.swing.TimerQueue)
> 	at javax.swing.TimerQueue.run(Unknown Source)
> 	- locked <0x44ea05e0> (a javax.swing.TimerQueue)
> 	at java.lang.Thread.run(Unknown Source)
> 
> "thread applet-ems.MainMenu" prio=1 tid=0x087a3c78 nid=0x77d1 in
> Object.wait() [4e6e9000..4e6e9854]
> 	at java.lang.Object.wait(Native Method)
> 	- waiting on <0x44e84110> (a sun.plugin.AppletViewer)
> 	at java.lang.Object.wait(Unknown Source)
> 	at sun.applet.AppletPanel.getNextEvent(Unknown Source)
> 	- locked <0x44e84110> (a sun.plugin.AppletViewer)
> 	at sun.applet.AppletPanel.run(Unknown Source)
> 	at java.lang.Thread.run(Unknown Source)
> 
> "AWT-EventQueue-0" prio=1 tid=0x4d71fce8 nid=0x77d1 in Object.wait()
> [4d982000..4d982854]
> 	at java.lang.Object.wait(Native Method)
> 	at java.lang.Object.wait(Unknown Source)
> 	at java.awt.EventQueue.getNextEvent(Unknown Source)
> 	- locked <0x44bd3c18> (a java.awt.EventQueue)
> 	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
> Source)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 	at java.awt.EventDispatchThread.run(Unknown Source)
> 
> "Thread-2" prio=1 tid=0x4d71d4b8 nid=0x77d1 runnable
> [4d901000..4d901854]
> 	at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
> 	at sun.plugin.navig.motif.AThread.JNIHandleLoop(Unknown Source)
> 	at sun.plugin.navig.motif.AThread.run(Unknown Source)
> 
> "Thread-1" prio=1 tid=0x4d700848 nid=0x77d1 waiting on condition
> [4d880000..4d880854]
> 	at java.lang.Thread.sleep(Native Method)
> 	at sun.plugin.navig.motif.Plugin$Watcher.run(Unknown Source)
> 
> "Cache Cleanup Thread" prio=1 tid=0x081aedc8 nid=0x77d1 in Object.wait()
> [4d6a6000..4d6a6854]
> 	at java.lang.Object.wait(Native Method)
> 	- waiting on <0x44beda08> (a sun.plugin.cache.CleanupThread)
> 	at sun.plugin.cache.CleanupThread.run(Unknown Source)
> 	- locked <0x44beda08> (a sun.plugin.cache.CleanupThread)
> 
> "TimerQueue" daemon prio=1 tid=0x081ab1d8 nid=0x77d1 in Object.wait()
> [4d625000..4d625854]
> 	at java.lang.Object.wait(Native Method)
> 	- waiting on <0x44bedab0> (a javax.swing.TimerQueue)
> 	at javax.swing.TimerQueue.run(Unknown Source)
> 	- locked <0x44bedab0> (a javax.swing.TimerQueue)
> 	at java.lang.Thread.run(Unknown Source)
> 
> "Java2D Disposer" daemon prio=1 tid=0x08185ea8 nid=0x77d1 in
> Object.wait() [4d523000..4d523854]
> 	at java.lang.Object.wait(Native Method)
> 	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
> 	- locked <0x44be3308> (a java.lang.ref.ReferenceQueue$Lock)
> 	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
> 	at sun.java2d.Disposer.run(Unknown Source)
> 	at java.lang.Thread.run(Unknown Source)
> 
> "AWT-EventQueue-1" prio=1 tid=0x081716f0 nid=0x77d1 waiting on condition
> [4d5a4000..4d5a4854]
> 	at sun.plugin.JavaRunTime.dumpAllStacks(Native Method)
> 	at sun.plugin.ConsoleWindow$1.actionPerformed(Unknown Source)
> 	at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source)
> 	at javax.swing.SwingUtilities.notifyAction(Unknown Source)
> 	at javax.swing.JComponent.processKeyBinding(Unknown Source)
> 	at javax.swing.KeyboardManager.fireBinding(Unknown Source)
> 	at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
> 	at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown
> Source)
> 	at javax.swing.JComponent.processKeyBindings(Unknown Source)
> 	at javax.swing.JComponent.processKeyEvent(Unknown Source)
> 	at java.awt.Component.processEvent(Unknown Source)
> 	at java.awt.Container.processEvent(Unknown Source)
> 	at java.awt.Component.dispatchEventImpl(Unknown Source)
> 	at java.awt.Container.dispatchEventImpl(Unknown Source)
> 	at java.awt.Component.dispatchEvent(Unknown Source)
> 	at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
> 	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown
> Source)
> 	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown
> Source)
> 	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown
> Source)
> 	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
> 	at java.awt.Component.dispatchEventImpl(Unknown Source)
> 	at java.awt.Container.dispatchEventImpl(Unknown Source)
> 	at java.awt.Window.dispatchEventImpl(Unknown Source)
> 	at java.awt.Component.dispatchEvent(Unknown Source)
> 	at java.awt.EventQueue.dispatchEvent(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
> Source)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 	at java.awt.EventDispatchThread.run(Unknown Source)
> 
> "Main Console Writer" prio=1 tid=0x08162500 nid=0x77d1 in Object.wait()
> [4d4a2000..4d4a2854]
> 	at java.lang.Object.wait(Native Method)
> 	- waiting on <0x44bc9b90> (a java.util.LinkedList)
> 	at java.lang.Object.wait(Unknown Source)
> 	at sun.plugin.MainConsoleWriter.run(Unknown Source)
> 	- locked <0x44bc9b90> (a java.util.LinkedList)
> 	at java.lang.Thread.run(Unknown Source)
> 
> "AWT-Motif" daemon prio=1 tid=0x08151820 nid=0x77d1 runnable
> [4d421000..4d421854]
> 	at sun.awt.motif.MToolkit.run(Native Method)
> 	at java.lang.Thread.run(Unknown Source)
> 
> "AWT-Shutdown" prio=1 tid=0x081514c8 nid=0x77d1 in Object.wait()
> [4d3a0000..4d3a0854]
> 	at java.lang.Object.wait(Native Method)
> 	- waiting on <0x44b7ec60> (a java.lang.Object)
> 	at java.lang.Object.wait(Unknown Source)
> 	at sun.awt.AWTAutoShutdown.run(Unknown Source)
> 	- locked <0x44b7ec60> (a java.lang.Object)
> 	at java.lang.Thread.run(Unknown Source)
> 
> "Signal Dispatcher" daemon prio=1 tid=0x0808e058 nid=0x77d1 runnable
> [0..0]
> 
> "Finalizer" daemon prio=1 tid=0x08089220 nid=0x77d1 in Object.wait()
> [4c823000..4c823854]
> 	at java.lang.Object.wait(Native Method)
> 	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
> 	- locked <0x44b77f28> (a java.lang.ref.ReferenceQueue$Lock)
> 	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
> 	at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
> 
> "Reference Handler" daemon prio=1 tid=0x08088630 nid=0x77d1 in
> Object.wait() [4c7a2000..4c7a2854]
> 	at java.lang.Object.wait(Native Method)
> 	at java.lang.Object.wait(Unknown Source)
> 	at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
> 	- locked <0x44b77f90> (a java.lang.ref.Reference$Lock)
> 
> "main" prio=1 tid=0x0804eeb8 nid=0x77d1 runnable [bfff5000..bfff57f8]
> 	at java.io.FileInputStream.read(Native Method)
> 	at java.io.DataInputStream.readInt(Unknown Source)
> 	at sun.plugin.navig.motif.Plugin.doit(Unknown Source)
> 	at sun.plugin.navig.motif.Plugin.start(Unknown Source)
> 
> "VM Thread" prio=1 tid=0x08087330 nid=0x77d1 runnable 
> 
> "VM Periodic Task Thread" prio=1 tid=0x08090888 nid=0x77d1 waiting on
> condition 
> "Suspend Checker Thread" prio=1 tid=0x0808d670 nid=0x77d1 runnable 
> ----------------------------------------------------
> Done.
> 
> On Fri, 2004-10-08 at 12:29, Thomas DeWeese wrote:
> 
>>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: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


Re: org/mozilla/javascript/optimizer Batik hangs?

Posted by Stan Dickerson <en...@energycontrolsystems.com>.
I got the same result with both files (Index.svg & AHU_Index.svg)
uncompressed or compressed.

openStreamInternal() hangs at contentType = urlC.getContentType() until
I close the applet window when it continues normally (I get the rest of
the print statements in the Java console).

I see getContentType() in Thread-79 below - it's waiting on <0x48b65078>
which was locked by the same thread?

I'll see if I can find a deadlock with JProbe.

Thanks

Full thread dump Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode):

"StatusBar.Refresh" daemon prio=1 tid=0x087d8d88 nid=0x77d1 waiting for
monitor entry [4db05000..4db05854]
	at sun.plugin.net.cookie.PluginCookieManager.getCookieInfo(Unknown
Source)
	- waiting to lock <0x48c31738> (a java.lang.Class)
	at sun.plugin.net.protocol.http.HttpURLConnection.connectSetup(Unknown
Source)
	at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown
Source)
	- locked <0x4475b7d0> (a
sun.plugin.net.protocol.http.HttpURLConnection)
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown
Source)
	- locked <0x4475b7d0> (a
sun.plugin.net.protocol.http.HttpURLConnection)
	at ems_funcs.HttpMessage.sendPostMessage(HttpMessage.java:79)
	at ems_data.UserSession.sendPostMessage(UserSession.java:164)
	at ems_data.UserSession.keepAlive(UserSession.java:143)
	at ems_funcs.StatusBar$Refresh.run(StatusBar.java:409)

"Thread-79" prio=1 tid=0x08a058b8 nid=0x77d1 in Object.wait()
[4da03000..4da03854]
	at java.lang.Object.wait(Native Method)
	- waiting on <0x48b65078> (a java.lang.Class)
	at java.lang.Object.wait(Unknown Source)
	at sun.plugin.navig.motif.Worker.enterRequest(Unknown Source)
	- locked <0x48b65078> (a java.lang.Class)
	at sun.plugin.navig.motif.Worker.findCookieForURL(Unknown Source)
	- locked <0x48b65078> (a java.lang.Class)
	at sun.plugin.net.cookie.MNetscape6CookieHandler.getCookieInfo(Unknown
Source)
	at sun.plugin.net.cookie.PluginCookieManager.getCookieInfo(Unknown
Source)
	- locked <0x48c31738> (a java.lang.Class)
	at sun.plugin.net.protocol.http.HttpURLConnection.connectSetup(Unknown
Source)
	at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown
Source)
	- locked <0x4472def0> (a
sun.plugin.net.protocol.http.HttpURLConnection)
	at
sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
	- locked <0x4472def0> (a
sun.plugin.net.protocol.http.HttpURLConnection)
	at
sun.plugin.net.protocol.http.HttpURLConnection.getHeaderField(Unknown
Source)
	at java.net.URLConnection.getContentType(Unknown Source)
	at org.apache.batik.util.ParsedURLData.openStreamInternal(Unknown
Source)
	at org.apache.batik.util.ParsedURLData.openStream(Unknown Source)
	at org.apache.batik.util.ParsedURL.openStream(Unknown Source)
	at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown
Source)
	at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(Unknown
Source)
	at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
	at org.apache.batik.swing.svg.SVGDocumentLoader.run(Unknown Source)

"Thread-71" daemon prio=1 tid=0x08c70210 nid=0x77d1 in Object.wait()
[4e9bd000..4e9bd854]
	at java.lang.Object.wait(Native Method)
	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
	- locked <0x44f29810> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
	at org.apache.batik.util.CleanerThread.run(Unknown Source)

"AnimationThread" daemon prio=1 tid=0x08a98f98 nid=0x77d1 waiting on
condition [4dc07000..4dc07854]
	at java.lang.Thread.sleep(Native Method)
	at ems.SysDisplay$AnimationThread.run(SysDisplay.java:3081)

"RMI ConnectionExpiration-[192.0.0.118:38387]" daemon prio=1
tid=0x087a3240 nid=0x77d1 waiting on condition [4e93c000..4e93c854]
	at java.lang.Thread.sleep(Native Method)
	at sun.rmi.transport.tcp.TCPChannel$Reaper.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

"GC Daemon" daemon prio=1 tid=0x087a30b8 nid=0x77d1 in Object.wait()
[4e7eb000..4e7eb854]
	at java.lang.Object.wait(Native Method)
	- waiting on <0x44c43190> (a sun.misc.GC$LatencyLock)
	at sun.misc.GC$Daemon.run(Unknown Source)
	- locked <0x44c43190> (a sun.misc.GC$LatencyLock)

"RMI RenewClean-[192.0.0.118:38387]" daemon prio=1 tid=0x087a2d70
nid=0x77d1 in Object.wait() [4e15c000..4e15c854]
	at java.lang.Object.wait(Native Method)
	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
	- locked <0x44eca7d0> (a java.lang.ref.ReferenceQueue$Lock)
	at
sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(Unknown
Source)
	at java.lang.Thread.run(Unknown Source)

"AWT-EventQueue-5" prio=1 tid=0x08742d98 nid=0x77d1 in Object.wait()
[4e0db000..4e0db854]
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Unknown Source)
	at java.awt.EventQueue.getNextEvent(Unknown Source)
	- locked <0x44e87d70> (a java.awt.EventQueue)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

"TimerQueue" daemon prio=1 tid=0x087a4d68 nid=0x77d1 in Object.wait()
[4e8bb000..4e8bb854]
	at java.lang.Object.wait(Native Method)
	- waiting on <0x44ea05e0> (a javax.swing.TimerQueue)
	at javax.swing.TimerQueue.run(Unknown Source)
	- locked <0x44ea05e0> (a javax.swing.TimerQueue)
	at java.lang.Thread.run(Unknown Source)

"thread applet-ems.MainMenu" prio=1 tid=0x087a3c78 nid=0x77d1 in
Object.wait() [4e6e9000..4e6e9854]
	at java.lang.Object.wait(Native Method)
	- waiting on <0x44e84110> (a sun.plugin.AppletViewer)
	at java.lang.Object.wait(Unknown Source)
	at sun.applet.AppletPanel.getNextEvent(Unknown Source)
	- locked <0x44e84110> (a sun.plugin.AppletViewer)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

"AWT-EventQueue-0" prio=1 tid=0x4d71fce8 nid=0x77d1 in Object.wait()
[4d982000..4d982854]
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Unknown Source)
	at java.awt.EventQueue.getNextEvent(Unknown Source)
	- locked <0x44bd3c18> (a java.awt.EventQueue)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

"Thread-2" prio=1 tid=0x4d71d4b8 nid=0x77d1 runnable
[4d901000..4d901854]
	at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
	at sun.plugin.navig.motif.AThread.JNIHandleLoop(Unknown Source)
	at sun.plugin.navig.motif.AThread.run(Unknown Source)

"Thread-1" prio=1 tid=0x4d700848 nid=0x77d1 waiting on condition
[4d880000..4d880854]
	at java.lang.Thread.sleep(Native Method)
	at sun.plugin.navig.motif.Plugin$Watcher.run(Unknown Source)

"Cache Cleanup Thread" prio=1 tid=0x081aedc8 nid=0x77d1 in Object.wait()
[4d6a6000..4d6a6854]
	at java.lang.Object.wait(Native Method)
	- waiting on <0x44beda08> (a sun.plugin.cache.CleanupThread)
	at sun.plugin.cache.CleanupThread.run(Unknown Source)
	- locked <0x44beda08> (a sun.plugin.cache.CleanupThread)

"TimerQueue" daemon prio=1 tid=0x081ab1d8 nid=0x77d1 in Object.wait()
[4d625000..4d625854]
	at java.lang.Object.wait(Native Method)
	- waiting on <0x44bedab0> (a javax.swing.TimerQueue)
	at javax.swing.TimerQueue.run(Unknown Source)
	- locked <0x44bedab0> (a javax.swing.TimerQueue)
	at java.lang.Thread.run(Unknown Source)

"Java2D Disposer" daemon prio=1 tid=0x08185ea8 nid=0x77d1 in
Object.wait() [4d523000..4d523854]
	at java.lang.Object.wait(Native Method)
	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
	- locked <0x44be3308> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
	at sun.java2d.Disposer.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

"AWT-EventQueue-1" prio=1 tid=0x081716f0 nid=0x77d1 waiting on condition
[4d5a4000..4d5a4854]
	at sun.plugin.JavaRunTime.dumpAllStacks(Native Method)
	at sun.plugin.ConsoleWindow$1.actionPerformed(Unknown Source)
	at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source)
	at javax.swing.SwingUtilities.notifyAction(Unknown Source)
	at javax.swing.JComponent.processKeyBinding(Unknown Source)
	at javax.swing.KeyboardManager.fireBinding(Unknown Source)
	at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown
Source)
	at javax.swing.JComponent.processKeyBindings(Unknown Source)
	at javax.swing.JComponent.processKeyEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown
Source)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown
Source)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown
Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

"Main Console Writer" prio=1 tid=0x08162500 nid=0x77d1 in Object.wait()
[4d4a2000..4d4a2854]
	at java.lang.Object.wait(Native Method)
	- waiting on <0x44bc9b90> (a java.util.LinkedList)
	at java.lang.Object.wait(Unknown Source)
	at sun.plugin.MainConsoleWriter.run(Unknown Source)
	- locked <0x44bc9b90> (a java.util.LinkedList)
	at java.lang.Thread.run(Unknown Source)

"AWT-Motif" daemon prio=1 tid=0x08151820 nid=0x77d1 runnable
[4d421000..4d421854]
	at sun.awt.motif.MToolkit.run(Native Method)
	at java.lang.Thread.run(Unknown Source)

"AWT-Shutdown" prio=1 tid=0x081514c8 nid=0x77d1 in Object.wait()
[4d3a0000..4d3a0854]
	at java.lang.Object.wait(Native Method)
	- waiting on <0x44b7ec60> (a java.lang.Object)
	at java.lang.Object.wait(Unknown Source)
	at sun.awt.AWTAutoShutdown.run(Unknown Source)
	- locked <0x44b7ec60> (a java.lang.Object)
	at java.lang.Thread.run(Unknown Source)

"Signal Dispatcher" daemon prio=1 tid=0x0808e058 nid=0x77d1 runnable
[0..0]

"Finalizer" daemon prio=1 tid=0x08089220 nid=0x77d1 in Object.wait()
[4c823000..4c823854]
	at java.lang.Object.wait(Native Method)
	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
	- locked <0x44b77f28> (a java.lang.ref.ReferenceQueue$Lock)
	at java.lang.ref.ReferenceQueue.remove(Unknown Source)
	at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

"Reference Handler" daemon prio=1 tid=0x08088630 nid=0x77d1 in
Object.wait() [4c7a2000..4c7a2854]
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Unknown Source)
	at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
	- locked <0x44b77f90> (a java.lang.ref.Reference$Lock)

"main" prio=1 tid=0x0804eeb8 nid=0x77d1 runnable [bfff5000..bfff57f8]
	at java.io.FileInputStream.read(Native Method)
	at java.io.DataInputStream.readInt(Unknown Source)
	at sun.plugin.navig.motif.Plugin.doit(Unknown Source)
	at sun.plugin.navig.motif.Plugin.start(Unknown Source)

"VM Thread" prio=1 tid=0x08087330 nid=0x77d1 runnable 

"VM Periodic Task Thread" prio=1 tid=0x08090888 nid=0x77d1 waiting on
condition 
"Suspend Checker Thread" prio=1 tid=0x0808d670 nid=0x77d1 runnable 
----------------------------------------------------
Done.

On Fri, 2004-10-08 at 12:29, Thomas DeWeese wrote:
> 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: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
> > 
> 
> 
> ---------------------------------------------------------------------
> 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


Re: org/mozilla/javascript/optimizer Batik hangs?

Posted by Thomas DeWeese <Th...@Kodak.com>.
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: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
> 


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


Re: org/mozilla/javascript/optimizer Batik hangs?

Posted by Stan Dickerson <en...@energycontrolsystems.com>.
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


Re: org/mozilla/javascript/optimizer Batik hangs?

Posted by Thomas DeWeese <Th...@Kodak.com>.
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