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

WebEngine never gets past Running state

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 8u5
    • javafx
    • java version "1.8.0_05"
      Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

      Microsoft Windows [Version 6.3.9600]

    • web

      The application in the listing below never finishes, i.e. the loading of the web page never reaches the SUCCEEDED state (or any other state after RUNNING). The output is always:
      SCHEDULED
      RUNNING


      code:

      import javafx.application.Application;
      import javafx.application.Platform;
      import javafx.concurrent.Worker;
      import javafx.scene.web.WebEngine;
      import javafx.stage.Stage;

      public class WebEngineIssue extends Application {

      private static final String JAVA_API = "http://docs.oracle.com/javase/8/docs/api/";

      @Override
      public void start(final Stage stage) {
      WebEngine engine = new WebEngine();
      engine.getLoadWorker().stateProperty().addListener((ov, oldState, newState) -> {
      System.out.println(newState);
      if (newState == Worker.State.SUCCEEDED) {
      Platform.exit();
      }
      });
      engine.load(JAVA_API);
      }

      }

            Unassigned Unassigned
            avanelverjfx Anthony Vanelverdinghe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: