commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] [bugs #11512] Weird Exception about SSLv3 missing.


From: Michael Koch
Subject: [commit-cp] [bugs #11512] Weird Exception about SSLv3 missing.
Date: Tue, 11 Jan 2005 12:33:13 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux; X11; i686; de) (KHTML, like Gecko)

This is an automated notification sent by Savannah.
It relates to:
                bugs #11512, project classpath

==============================================================================
 LATEST MODIFICATIONS of bugs #11512:
==============================================================================

               Posted by: Michael Koch <mkoch>
               Posted on: 2005-01-11 12:33 (GMT)
    _______________________________________________________

                  Status:                    None -> Fixed                  
             Open/Closed:                    Open -> Closed                 

    _______________________________________________________

Follow-up Comment:
Fixed in CVS. Will be included innnnnn GNU classpath 0.14.

==============================================================================
 OVERVIEW of bugs #11512:
==============================================================================

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11512>

                 Summary: Weird Exception about SSLv3 missing.
                 Project: classpath
            Submitted by: None
            Submitted on: Fre 07.01.2005 um 01:27
                Category: classpath
                Severity: 5 - Average
                  Status: Fixed
                 Privacy: Public
             Assigned to: None
             Open/Closed: Closed
        Platform Version: None

    _______________________________________________________




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)



    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Die 11.01.2005 um 12:33       By: Michael Koch <mkoch>
Fixed in CVS. Will be included innnnnn GNU classpath 0.14.

-------------------------------------------------------
Date: Sam 08.01.2005 um 10:29       By: Michael Koch <mkoch>
I should add that this bug can be closed when GNU crypto, Jessie and the
HTTPS implementation from GNU inetlib get merged in.

-------------------------------------------------------
Date: Sam 08.01.2005 um 10:27       By: Michael Koch <mkoch>
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.





    _______________________________________________________

Carbon-Copy List:

CC Address                          | Comment
------------------------------------+-----------------------------
mkz                                 | 




==============================================================================

This item URL is:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11512>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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