java.lang.IllegalStateException: Not on FX application thread; currentThread = JavaFX Application Thread

JDK Bug System | Randahl Isaksen | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Platform.exit() not ending Javafx because of other threads in OSX

    Stack Overflow | 3 weeks ago | youssef
    java.lang.IllegalStateException: Not on FX application thread; currentThread = JavaFX Application Thread
  2. 0

    "Not on FX application thread; currentThread = JavaFX Application Thread" and "InvocationTargetException"

    Stack Overflow | 9 months ago | Maks M
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Eclipse Community Forums: e(fx)clipse » JavaFX Preview Problem

    eclipse.org | 11 months ago
    java.lang.IllegalStateException: Not on FX application thread; currentThread = JavaFX Application Thread
  5. 0

    Eclipse Community Forums: e(fx)clipse » FXCanvas not found during plugin export.

    eclipse.org | 1 year ago
    java.lang.IllegalStateException: Not on FX application thread; currentThread = JavaFX Application Thread

    14 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Not on FX application thread; currentThread = JavaFX Application Thread

      at com.sun.javafx.tk.Toolkit.checkFxUserThread()
    2. com.sun.javafx
      QuantumToolkit.checkFxUserThread
      1. com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:236)
      2. com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:423)
      2 frames
    3. javafx.stage
      Window.hide
      1. javafx.stage.Window.setShowing(Window.java:926)
      2. javafx.stage.Window.hide(Window.java:952)
      2 frames
    4. com.sun.javafx
      GlassWindowEventHandler.run
      1. com.sun.javafx.stage.WindowPeerListener.closed(WindowPeerListener.java:100)
      2. com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:118)
      3. com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:40)
      3 frames
    5. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    6. com.sun.javafx
      GlassWindowEventHandler.handleWindowEvent
      1. com.sun.javafx.tk.quantum.GlassWindowEventHandler.lambda$handleWindowEvent$408(GlassWindowEventHandler.java:150)
      2. com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
      3. com.sun.javafx.tk.quantum.GlassWindowEventHandler.handleWindowEvent(GlassWindowEventHandler.java:148)
      3 frames
    7. com.sun.glass
      View.enterFullscreen
      1. com.sun.glass.ui.Window.handleWindowEvent(Window.java:1266)
      2. com.sun.glass.ui.Window.notifyDestroy(Window.java:1183)
      3. com.sun.glass.ui.mac.MacApplication._enterNestedEventLoopImpl(Native Method)
      4. com.sun.glass.ui.mac.MacApplication._enterNestedEventLoop(MacApplication.java:109)
      5. com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:511)
      6. com.sun.glass.ui.mac.MacView._enterFullscreen(Native Method)
      7. com.sun.glass.ui.View.enterFullscreen(View.java:784)
      7 frames
    8. com.sun.javafx
      WindowStage.setFullScreen
      1. com.sun.javafx.tk.quantum.WindowStage.applyFullScreen(WindowStage.java:637)
      2. com.sun.javafx.tk.quantum.WindowStage.setFullScreen(WindowStage.java:727)
      2 frames
    9. javafx.stage
      Stage.setFullScreen
      1. javafx.stage.Stage.setFullScreen(Stage.java:667)
      1 frame
    10. com.jfxbe
      PlayingVideo.lambda$null$2
      1. com.jfxbe.PlayingVideo.lambda$null$2(PlayingVideo.java:111)
      1 frame
    11. com.sun.javafx
      PlatformImpl.lambda$null$158
      1. com.sun.javafx.application.PlatformImpl.lambda$null$158(PlatformImpl.java:315)
      1 frame
    12. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    13. com.sun.javafx
      PlatformImpl.lambda$runLater$159
      1. com.sun.javafx.application.PlatformImpl.lambda$runLater$159(PlatformImpl.java:314)
      1 frame
    14. com.sun.glass
      InvokeLaterDispatcher$Future.run
      1. com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
      1 frame