JarURLConnection Bug?
Ole Ersoy
ole.ersoy at gmail.com
Mon Oct 27 09:36:36 PDT 2008
Hi,
We think there is a bug in sun.net.www.protocol.jar.JarURLConnection. When using java-1.7.0-icedtea to load resources (Dojo 1.2 in this case ) with weblets (https://weblets.dev.java.net) we see the following behavior:
(Note that the exception described below does not occur with the Java 1.6 Sun VM).
This url works:
http://localhost/dojo.webapp/resources/javascript/dojo/dojo.js
I also sampled loading resources from dojox and dijit and those work as well.
However this one does not:
http://localhost/dojo.webapp/resources/javascript/util/doh/runner.js
And it results in this exception:
========================================================================
java.io.FileNotFoundException: JAR entry resources/v120/util/doh/runner.js not found in /var/lib/tomcat/webapps/dojo.webapp/WEB-INF/lib/dojo-1.2.0.jar
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:140)
========================================================================
Another thing. If I try to load a non existing resource like this:
http://localhost/dojo.webapp/resources/javascript/nonexistingresource.js
I just get a 404 saying this:
========================================================================
HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
========================================================================
So there's something about the util/doh/runner.js that causes JarURLConnection.java:140 to hickup, I wish I could be more descriptive. I'll be glad to file a bug report, although I had a tricky time finding the bug database on OpenJDK.org.
Cheers,
- Ole
More information about the net-dev
mailing list