java.lang.IllegalStateException

Not on FX application thread; currentThread = main

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web18213

  • Not on FX application thread; currentThread = main
  • via Stack Overflow by Supuhstar
    , 1 year ago
    Not on FX application thread; currentThread = main
  • Not on FX application thread; currentThread = main
  • Stack trace

    • java.lang.IllegalStateException: Not on FX application thread; currentThread = main at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:204) at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:364) at javafx.scene.Node.snapshot(Node.java:1903) at com.github.daytron.flipit.map.creator.model.MapManager.saveFile(MapManager.java:86) at com.github.daytron.flipit.map.creator.controller.ViewController.saveMap(ViewController.java:1046) at com.github.daytron.flipit.map.creator.UITest.generateMapThenSaveThenOpenTest(UITest.java:506)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 months ago
    Unknown user
    3 times, 7 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    11 more bugmates