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

Google Groups | Ryan Gilera | 2 years ago
  1. 0

    How do you test dialogs, file save and open on TestFX?

    Google Groups | 2 years ago | Ryan Gilera
    java.lang.IllegalStateException: Not on FX application thread; currentThread = main
  2. 0

    How can I use concurrency (threads) in JavaFX (with FXML!!! (JavaFX Scene Builder) )?

    Stack Overflow | 2 years ago | user3487276
    java.lang.IllegalStateException: Not on FX application thread; currentThread = Thread-4
  3. 0

    Not on Application Thread

    GitHub | 2 years ago | rodsnjr
    java.lang.IllegalStateException: Not on FX application thread; currentThread = main
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How can I use concurrency (threads) in JavaFX (with FXML!!! (JavaFX Scene Builder) )? - scriptscoop.com

    scriptscoop.com | 1 year ago
    java.lang.IllegalStateException: Not on FX application thread; currentThread = Thread-4
  6. 0

    Java 8: Exception "Not on FX application thread" in TextInputControlsTest

    GitHub | 3 years ago | hastebrot
    java.lang.IllegalStateException: Not on FX application thread; currentThread = main

    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 = main

      at com.sun.javafx.tk.Toolkit.checkFxUserThread()
    2. com.sun.javafx
      QuantumToolkit.checkFxUserThread
      1. com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:204)
      2. com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:364)
      2 frames
    3. javafx.scene
      Node.impl_markDirty
      1. javafx.scene.Scene.addToDirtyList(Scene.java:485)
      2. javafx.scene.Node.addToSceneDirtyList(Node.java:424)
      3. javafx.scene.Node.impl_markDirty(Node.java:415)
      3 frames
    4. javafx.scene.shape
      Shape.impl_markDirty
      1. javafx.scene.shape.Shape.impl_markDirty(Shape.java:942)
      1 frame
    5. javafx.scene
      Node$6.invalidated
      1. javafx.scene.Node$6.invalidated(Node.java:1224)
      1 frame
    6. javafx.beans.property
      DoublePropertyBase$Listener.invalidated
      1. javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:112)
      2. javafx.beans.property.DoublePropertyBase.access$000(DoublePropertyBase.java:52)
      3. javafx.beans.property.DoublePropertyBase$Listener.invalidated(DoublePropertyBase.java:262)
      3 frames
    7. com.sun.javafx
      ExpressionHelper.fireValueChangedEvent
      1. com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:137)
      2. com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
      2 frames
    8. javafx.beans.binding
      DoubleBinding.invalidate
      1. javafx.beans.binding.DoubleBinding.invalidate(DoubleBinding.java:222)
      1 frame
    9. com.sun.javafx
      ExpressionHelper.fireValueChangedEvent
      1. com.sun.javafx.binding.BindingHelperObserver.invalidated(BindingHelperObserver.java:51)
      2. com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:137)
      3. com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
      3 frames
    10. javafx.beans.binding
      BooleanBinding.invalidate
      1. javafx.beans.binding.BooleanBinding.invalidate(BooleanBinding.java:176)
      1 frame
    11. com.sun.javafx
      ExpressionHelper.fireValueChangedEvent
      1. com.sun.javafx.binding.BindingHelperObserver.invalidated(BindingHelperObserver.java:51)
      2. com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:349)
      3. com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
      3 frames
    12. javafx.beans.property
      IntegerPropertyBase.set
      1. javafx.beans.property.ReadOnlyIntegerWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:176)
      2. javafx.beans.property.ReadOnlyIntegerWrapper.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:142)
      3. javafx.beans.property.IntegerPropertyBase.markInvalid(IntegerPropertyBase.java:113)
      4. javafx.beans.property.IntegerPropertyBase.set(IntegerPropertyBase.java:146)
      4 frames
    13. FXSampler
      TextInputControl.setText
      1. javafx.scene.control.TextInputControl.selectRange(TextInputControl.java:899)
      2. javafx.scene.control.TextInputControl$TextProperty.doSet(TextInputControl.java:1138)
      3. javafx.scene.control.TextInputControl$TextProperty.set(TextInputControl.java:1061)
      4. javafx.scene.control.TextInputControl.setText(TextInputControl.java:282)
      4 frames
    14. com.github.daytron
      UITest.generateMapThenSaveThenOpenTest
      1. com.github.daytron.flipit.map.creator.model.LogManager.addNewLogMessage(LogManager.java:96)
      2. com.github.daytron.flipit.map.creator.model.MapManager.saveFile(MapManager.java:79)
      3. com.github.daytron.flipit.map.creator.controller.ViewController.saveMap(ViewController.java:1046)
      4. com.github.daytron.flipit.map.creator.UITest.generateMapThenSaveThenOpenTest(UITest.java:506)
      4 frames
    15. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    16. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      7. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      9. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      10. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      11. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      12. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      13. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      14. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      15. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      16. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      17. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      17 frames
    17. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      3 frames
    18. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      3 frames