openjdk-7 SSL "illegal parameter"

Bug #1155626 reported by G.M.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-7 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Compiling to following code (simple access to an https site using URL) results in SSLException in openjdk-7, whereas it works perfectly with openjdk-6.

(Please note that latest ubuntu's wget returns a core dumps on this same site and openssl returns the same error. However, exact same configuration with different java versions have different behaviours!).

import java.net.*;

public class CheckSSL3 {
  public static void main(String args[]) throws Exception {
    String urlString = "https://web-ast.dsi.cnrs.fr/l3c/owa/personnel.infos_admin?p_numero_sel=1120824";
    URL url = new URL(urlString);
    url.openStream();
 }
}

root@plop:/root# update-java-alternatives -s java-1.6.0-openjdk-amd64
plip@plop:CheckSSL$ java -cp classes/ CheckSSL3
plip@plop:CheckSSL$

root@plop:/root# update-java-alternatives -s java-1.7.0-openjdk-amd64
plip@plop:CheckSSL$ java -cp classes/ CheckSSL3
plip@plop:CheckSSL$ java -cp classes/ CheckSSL3
Exception in thread "main" javax.net.ssl.SSLException: Received fatal alert: illegal_parameter
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
        at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1961)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:515)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
        at java.net.URL.openStream(URL.java:1037)
        at CheckSSL3.main(CheckSSL3.java:7)
plip@plop:CheckSSL$

Revision history for this message
G.M. (sexxxenator) wrote :

Sorry just FYI:
openjdk6: 6b27-1.12.3-0ubuntu1~12.10.1
openjdk7: 7u15-2.3.7-0ubuntu1~12.10.1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.