java.lang.IllegalStateException: Not on FX application thread; currentThread = main

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Ryan Gilera, 1 year ago
Not on FX application thread; currentThread = main
via Stack Overflow by hieup
, 2 years ago
Not on FX application thread; currentThread = main
via Stack Overflow by guyfleeman
, 2 years ago
via Stack Overflow by Supuhstar
, 2 years ago
Not on FX application thread; currentThread = main
via Stack Overflow by Raul
, 2 years ago
Not on FX application thread; currentThread = main
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)

Users with the same issue

17 times, 6 days ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
Samebug visitor profile picture
Unknown user
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.