Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-8012

Restore support of IBM JVM in WS client

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.1
    • Component/s: Scanner
    • Labels:
      None

      Description

      After the upgrade to okhttp 3 the sonar-ws client is crashing with an IBM JVM.

      Unable to extract the trust manager on okhttp3.internal.Platform@70d0c2ab, sslSocketFactory is class com.ibm.jsse2.SSLSocketFactoryImpl
      java.lang.IllegalStateException: Unable to extract the trust manager on okhttp3.internal.Platform@70d0c2ab, sslSocketFactory is class com.ibm.jsse2.SSLSocketFactoryImpl
          at okhttp3.OkHttpClient$Builder.sslSocketFactory(OkHttpClient.java:557)
          at org.sonarqube.ws.client.HttpConnector.buildClient(HttpConnector.java:104)
          at org.sonarqube.ws.client.HttpConnector.<init>(HttpConnector.java:86)
          at org.sonarqube.ws.client.HttpConnector.<init>(HttpConnector.java:52)
          at org.sonarqube.ws.client.HttpConnector$Builder.build(HttpConnector.java:298)
      

      The method sslSocketFactory(SSLSocketFactory) is deprecated and JavaDoc of replacement method say:

      Most applications should not call this method, and instead use the system defaults. Those classes include special optimizations that can be lost if the implementations are decorated.

      I have tested that removing call to sslSocketFactory fix the issue, but we have to be sure there will be no negative side effect.

      Note: to allows IBM JVM + okhttp to connect to SonarQube.com, which is TLS 1.2, a system property must be set: http://www.ibm.com/support/knowledgecenter/SSYKE2_8.0.0/com.ibm.java.security.component.80.doc/security-component/jsse2Docs/matchsslcontext_tls.html

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.henry Julien Henry
              Reporter:
              julien.henry Julien Henry
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: