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

Liveconnect: calling window.alert() from FX thread lead to deadlock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: deploy
    • Labels:

      Description

      FX runtime build : http://jfx.sfbay.sun.com/hudson/job/presidio-deploy-scrum/label=windows-i586-14/lastSuccessfulBuild/artifact/artifacts/bundles/release/javafx-2.0-beta-windows-i586.exe

      JDK build : jdk7-b147

      Os: winxp/win7
      Browser: IE8/IE9/FF4.0

      Browser hangs if call() method under netscape.javascript.JSObject is called to invoke any JavaScript method. Following exception can been inside the trace file

      netscape.javascript.JSException
      at sun.plugin2.main.client.MessagePassingJSObject.newJSException(Unknown Source)
      at sun.plugin2.main.client.MessagePassingJSObject.waitForReply(Unknown Source)
      at sun.plugin2.main.client.MessagePassingJSObject.call(Unknown Source)
      at deploy.sqe.FXLiveConnectCallTest.start(FXLiveConnectCallTest.java:14)
      at com.sun.javafx.applet.FXApplet2$2.run(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
      at com.sun.glass.ui.win.WinApplication$1$1.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.InterruptedException
      at java.lang.Object.wait(Native Method)
      at sun.plugin2.message.Queue.waitForMessage(Unknown Source)
      at sun.plugin2.message.Pipe.receive(Unknown Source)
      ... 9 more

      Steps to reproduce:
      ---------------------------
      1) Install jdk7 and fx runtime
      2) Invoke following applet
      http://sqeweb.us.oracle.com/deployment2/jitu/latest_ws_test/6/deployment/src/javafx/fxfeaturesTest/fxfeaturesTest/html/FXLiveConnectCallTest.html

      If browser hangs then bug is reproduced (trace and stack attached along with the report)

        Attachments

          Activity

            People

            Assignee:
            henryjen Henry Jen
            Reporter:
            jijising Jitender Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: