Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7131880

jdk7 b225 on OSX seems to break ssl support

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.7.0_04-ea"
      Java(TM) SE Runtime Environment (build 1.7.0_04-ea-b225)
      Java HotSpot(TM) 64-Bit Server VM (build 23.0-b09, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Darwin macbookairmax.home 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386


      A DESCRIPTION OF THE PROBLEM :
      after installing jdk7 b225 on OSX (over jdk7 b223), i couldn't connect anymore using SSL to a Mysql server. I use JDBC driver for MySQL version 5.1.18 (latest).

      I haven't run extensive tests, nor do I know the exact connection the driver use so these are only speculations.


      REGRESSION. Last worked in version 7

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      ask for a SSL connection to a remote MySQL database using JDBC driver for MySQL version 5.1.18

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      connection.
      ACTUAL -
      exception.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      an SQLException caused by:

      java.lang.NullPointerException
      at java.util.Collections.addAll(Collections.java:3836)
      at sun.security.ssl.AbstractTrustManagerWrapper.<init>(SSLContextImpl.java:778)
      at sun.security.ssl.SSLContextImpl.chooseTrustManager(SSLContextImpl.java:133)
      at sun.security.ssl.SSLContextImpl.engineInit(SSLContextImpl.java:89)
      at javax.net.ssl.SSLContext.init(SSLContext.java:283)
      at com.mysql.jdbc.ExportControlled.getSSLSocketFactoryDefaultOrConfigured(ExportControlled.java:238)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      don't use SSL to connect to MySQL

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: