← Back to team overview

vopdcteam team mailing list archive

[Bug 585624] Re: Unnecessary requests to a web server

 

WSC uses JSAMP which uses XmlRpcClient:
jsamp_src-1.0/src/java/org/astrogrid/samp/xmlrpc/apache/ApacheClient.java:
import org.apache.xmlrpc.XmlRpcClient;
but org.apache.xmlrpc.XmlRpcClient.class is not included in wsc.jar

DocumentBuilderFactory is requested from webserver when new DocumentBuilderFactory instance is created in applet: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6464018 
This bug is many years old and is still open. 

Also I've seen requests of WebSampConnector.class in the logs, but this should be fixed by:
jar -i WebSampConnector-1.5.jar
http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#JAR Index
I did this on localhost and do not see these requests anymore.

-- 
Unnecessary requests to a web server
https://bugs.launchpad.net/bugs/585624
You received this bug notification because you are a member of VO-PDC
Team, which is subscribed to WebSampConnector.

Status in VO-PDC WebSampConnector: New

Bug description:
When I launch WebSampConnector in a browser I see lots of the following requests in my web server logs:

[18/May/2010 23:53:05] "GET /media/vo/WebSampConnector-1.5.jar HTTP/1.1" 304 0
[18/May/2010 23:53:05] "GET /media/vo/org/apache/xmlrpc/XmlRpcClient.class HTTP/1.1" 302 0
[18/May/2010 23:53:05] "GET /media/vo/org/apache/xmlrpc/XmlRpcClient.class/ HTTP/1.1" 404 1842
[18/May/2010 23:53:08] "GET /media/vo/META-INF/services/javax.xml.parsers.DocumentBuilderFactory HTTP/1.1" 302 0
[18/May/2010 23:53:08] "GET /media/vo/META-INF/services/javax.xml.parsers.DocumentBuilderFactory/ HTTP/1.1" 404 1908
[18/May/2010 23:53:09] "GET /media/vo/META-INF/services/javax.xml.parsers.DocumentBuilderFactory HTTP/1.1" 302 0
[18/May/2010 23:53:09] "GET /media/vo/META-INF/services/javax.xml.parsers.DocumentBuilderFactory/ HTTP/1.1" 404 1908

This apparently causes a very bad behavior on a slow networks which looks like Java freezes a web browser for 10-15 secs. Mark Taylor after short discussion said this is probably applet specific thing not caused by JSAMP intrinsically.





References