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: Sat, 08 Jan 2005 05:40:50 -0500
User-agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux; X11; i686; de) (KHTML, like Gecko)

This mail is an automated notification from the bugs tracker
 of the project: classpath.

/**************************************************************************/
[bugs #11512] Latest Modifications:

Changes by: 
                Michael Koch <address@hidden>
'Date: 
                Sam 08.01.2005 at 10:27 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
             Summary | Weird URL() behaviour.    | Weird Exception about SSLv3 
missing.


------------------ Additional Follow-up Comments ----------------------------
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.






/**************************************************************************/
[bugs #11512] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11512>
Project: classpath
Submitted by: 0
On: Fre 07.01.2005 at 01:27

Category:  classpath
Severity:  5 - Average
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open
Platform Version:  None


Summary:  Weird Exception about SSLv3 missing.

Original Submission:  
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: Sam 08.01.2005 at 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.




CC List
-------

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









For detailed info, follow this link:
<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]