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

SSLException occurs when displaying some web sites

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • tbd
    • 8u66
    • javafx
    • web
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_66-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_66-ea-b02)
      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b02)


      ADDITIONAL OS VERSION INFORMATION :
      ver 6.1 - Windows 7 Professional, Version 6.1 (Build 7601, Service Pack 1)


      A DESCRIPTION OF THE PROBLEM :
      This problem always occurs on http://www.marketwatch.com/, at the end of the web page display an SSL exception occurs "Unrecognized SSL message, plaintext connection?"
      The full exception error message is shown below. The same problem also occurs on an Apple Mac OSX version 10.10.5

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Just display "http://www.marketwatch.com/" and wait for the display to complete (source code provided below if needed)


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Executing C:\Develop\NetBeans\SslBug\dist\run754014995\SslBug.jar using platform C:\Program Files\Java\jdk1.8.0_66/bin/java
      Sep 30, 2015 6:28:34 PM com.sun.webkit.network.URLLoader doRun
      WARNING: Unexpected error
      javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
      at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710)
      at sun.security.ssl.InputRecord.read(InputRecord.java:527)
      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
      at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
      at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
      at com.sun.webkit.network.URLLoader.sendRequest(URLLoader.java:353)
      at com.sun.webkit.network.URLLoader.doRun(URLLoader.java:162)
      at com.sun.webkit.network.URLLoader.lambda$run$91(URLLoader.java:128)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.webkit.network.URLLoader.run(URLLoader.java:127)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      package sslBug;
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.web.WebView;
      import javafx.stage.Stage;

      public class SslBug extends Application {
          
          @Override
          public void start(Stage primaryStage) {
              WebView browser = new WebView();
              browser.getEngine().load("http://www.marketwatch.com/");
              Scene scene = new Scene(browser, 1024, 800);
              primaryStage.setTitle("SSLException problem");
              primaryStage.setScene(scene);
              primaryStage.show();
          }

          public static void main(String[] args) {
              launch(args);
          }
      }
      ---------- END SOURCE ----------

            ghb Guru Hb (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: