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

Not on FX application thread; currentThread = JavaFX Application Thread

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Environment:

      Mac, Windows 7

      Description

      Got this exception when exiting app with Platform.exit(); seems like a bug as it clearly is the FX app thread. I am calling:

                      stage.setVisible(false);
                      Platform.exit();

      from a button action.

      Glass detected outstanding Java exception at -[GlassWindow dealloc]:/HUDSON/workspace/presidio-graphics-scrum/label/macosx-universal-14/glass/glass-mat-lib-macosx/src/com/sun/mat/ui/GlassWindow.m:359
      Exception in thread "JavaFX Application Thread" java.lang.IllegalStateException: Not on FX application thread; currentThread = JavaFX Application Thread
      at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:192)
      at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:311)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:1945)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:1934)
      at javafx.scene.Scene$MouseHandler.access$1000(Scene.java:1906)
      at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1007)
      at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:1553)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:133)
      at com.sun.glass.ui.View.handleMouseEvent(View.java:257)
      at com.sun.glass.ui.View.notifyMouse(View.java:514)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                morris Morris Meyer (Inactive)
                Reporter:
                jasper Jasper Potts
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: