← Back to team overview

openjdk team mailing list archive

[Bug 1155626] Re: openjdk-7 SSL "illegal parameter"

 

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

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1155626

Title:
  openjdk-7 SSL "illegal parameter"

Status in “openjdk-7” package in Ubuntu:
  New

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$

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1155626/+subscriptions


References