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

[Ensemble8] SwingInterop throws IllegalStateException: Not on FX application thread

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8u20
    • javafx
    • None

      Run SwingInterop demo from Ensemble8

      8u_dev/b469$ java -cp ./sdk/rt/lib/ext/jfxrt.jar:./apps/samples/Ensemble8.jar ensemble.EnsembleApp
      Mar 17, 2014 9:21:07 AM com.sun.javafx.binding.ExpressionHelper$SingleInvalidation fireValueChangedEvent
      WARNING: Exception in InvalidationListener
      java.lang.IllegalStateException: Not on FX application thread; currentThread = Thread-7
      at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:210)
      at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:395)
      at javafx.scene.Scene.addToDirtyList(Scene.java:469)
      at javafx.scene.Node.addToSceneDirtyList(Node.java:418)
      at javafx.scene.Node.impl_markDirty(Node.java:409)
      at javafx.scene.Node.notifyParentsOfInvalidatedCSS(Node.java:8685)
      at javafx.scene.Node.requestCssStateTransition(Node.java:8615)
      at javafx.scene.Node.pseudoClassStateChanged(Node.java:8656)
      at javafx.scene.Node$10.invalidated(Node.java:1604)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
      at javafx.scene.Node.setDisabled(Node.java:1587)
      at javafx.scene.Node.updateDisabled(Node.java:1629)
      at javafx.scene.Node.access$500(Node.java:377)
      at javafx.scene.Node$MiscProperties$8.invalidated(Node.java:6498)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
      at javafx.beans.property.BooleanPropertyBase.access$000(BooleanPropertyBase.java:49)
      at javafx.beans.property.BooleanPropertyBase$Listener.invalidated(BooleanPropertyBase.java:243)
      at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:137)
      at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
      at javafx.beans.property.BooleanPropertyBase.fireValueChangedEvent(BooleanPropertyBase.java:103)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:110)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
      at ensemble.samples.language.swing.SwingInteropService.setProcess(SwingInteropService.java:55)
      at ensemble.samples.language.swing.SwingInteropTask.call(SwingInteropTask.java:63)
      at ensemble.samples.language.swing.SwingInteropTask.call(SwingInteropTask.java:39)
      at javafx.concurrent.Task$TaskCallable.call(Task.java:1426)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at javafx.concurrent.Service$7$1.run(Service.java:744)
      at javafx.concurrent.Service$7$1.run(Service.java:742)
      at java.security.AccessController.doPrivileged(Native Method)
      at javafx.concurrent.Service$7.run(Service.java:742)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:744)

            msladecek Martin Sládeček
            dgrieve David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: