bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22829] Weird Exception about SSLv3 missing.


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22829] Weird Exception about SSLv3 missing.
Date: 16 Oct 2005 01:27:23 -0000

1) Weird Exception about SSLv3 with jamvm/classpath.
   It does not happen with kaffe-cvs.  The code still 
   continues.

2) If the url is in form "http://host"; it should be implicit
   that the file part is "/".  This is also Sun's behaviour.

3) Why IllegalArgumentException, not MalformedURLException?

-----------------
import java.io.InputStream;
import java.io.IOException;
import java.net.URL;
import java.net.MalformedURLException;
public class TestURL {
    public static void main(String [] args) {
        try {
            URL url = new URL("http://www.classpath.org";);
            InputStream in = url.openStream();
            System.out.println("Got InputStream");
        } catch (MalformedURLException ex) {
            System.out.println("MalformedURLException");
        } catch (IOException ex) {
            System.out.println("IOException");
        }
    }
}
----------------
$ jamvm-cvs TestURL
WARNING: could not properly read security provider files:
         file:///opt/java/classpath/lib/security/JamVM.security
         file:///opt/java/classpath/lib/security/classpath.security
         Falling back to standard GNU security provider
java.lang.RuntimeException: error instantiating default socket factory:
java.security.NoSuchAlgorithmException: SSLv3
   at javax.net.ssl.SSLSocketFactory.getDefault (SSLSocketFactory.java:144)
   at javax.net.ssl.HttpsURLConnection.<clinit> (HttpsURLConnection.java:85)
   at gnu.java.net.protocol.http.Handler.openConnection (Handler.java:69)
   at java.net.URL.openConnection (URL.java:670)
   at java.net.URL.openStream (URL.java:683)
   at TestURL.main (TestURL.java:9)
java.lang.IllegalArgumentException: path must have non-zero length
   at gnu.java.net.protocol.http.HTTPConnection.newRequest
(HTTPConnection.java:369)
   at gnu.java.net.protocol.http.HTTPURLConnection.connect
(HTTPURLConnection.java:201)
   at gnu.java.net.protocol.http.HTTPURLConnection.getInputStream
(HTTPURLConnection.java:448)
   at java.net.URL.openStream (URL.java:683)
   at TestURL.main (TestURL.java:9)

$ kaffe-cvs TestURL
java.lang.IllegalArgumentException: path must have non-zero length
   at gnu.java.net.protocol.http.HTTPConnection.newRequest
(HTTPConnection.java:369)
   at gnu.java.net.protocol.http.HTTPURLConnection.connect
(HTTPURLConnection.java:201)
   at gnu.java.net.protocol.http.HTTPURLConnection.getInputStream
(HTTPURLConnection.java:448)
   at java.net.URL.openStream (URL.java:683)
   at TestURL.main (TestURL.java:9)


------- Comment #1 from from-classpath at savannah dot gnu dot org  2005-01-08 
10:27 -------
This bug came in (again) when I merged the HTTP implementation from GNU
inetlib. I commited a fix.
The weird exception about SSLv3 is this thrown. I rename this bug report to
reflect the remaining issue.


------- Comment #2 from from-classpath at savannah dot gnu dot org  2005-01-08 
10:29 -------
I should add that this bug can be closed when GNU crypto, Jessie and the HTTPS
implementation from GNU inetlib get merged in.


------- Comment #3 from from-classpath at savannah dot gnu dot org  2005-01-11 
12:33 -------
Fixed in CVS. Will be included innnnnn GNU classpath 0.14.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22829





reply via email to

[Prev in Thread] Current Thread [Next in Thread]