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

SSLException ClassCastException

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      centos 7.6/ java version "1.8.0_152"
      Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
      Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      the following error appears occasionally


      exception:javax.net.ssl.SSLException: java.lang.ClassCastException
      at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
      at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1959)
      at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1916)
      at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1899)
      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1420)
      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
      at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.java:336)
      at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:300)
      at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:185)
      at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
      at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:107)
      at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.java:87)
      at okhttp3.internal.connection.Transmitter.newExchange(Transmitter.java:169)
      at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
      at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
      at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
      at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
      at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
      at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
      at okhttp3.RealCall.execute$original$0QguwqRM(RealCall.java:81)
      at okhttp3.RealCall.execute$original$0QguwqRM$accessor$mKpetzmv(RealCall.java)
      at okhttp3.RealCall$auxiliary$4R77MkCC.call(Unknown Source)

      at okhttp3.RealCall.execute(RealCall.java)
      at sun.reflect.GeneratedMethodAccessor271.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Suppressed: javax.net.ssl.SSLException: java.lang.ClassCastException

      Caused by: java.lang.ClassCastException

      FREQUENCY : rarely


            xuelei Xuelei Fan
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: