将String与String进行比较时的异常,但在将其与另一个String进行比较时则不是

时间:2016-05-07 19:07:55

标签: java json firebase

我有以下计时器:

"\"a\""

快照是JSON "c"IllegalStateException。 将具有快照值的字符串与"a""\"a\""进行比较时,我会得到"c",但在将其与Exception in thread "FirebaseEventTarget" java.lang.IllegalStateException: Not on FX application thread; currentThread = FirebaseEventTarget at com.sun.javafx.tk.Toolkit.checkFxUserThread(Unknown Source) at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(Unknown Source) at javafx.scene.Parent$2.onProposedChange(Unknown Source) at com.sun.javafx.collections.VetoableListDecorator.setAll(Unknown Source) at com.sun.javafx.collections.VetoableListDecorator.setAll(Unknown Source) at com.sun.javafx.scene.control.skin.LabeledSkinBase.updateChildren(Unknown Source) at com.sun.javafx.scene.control.skin.LabeledSkinBase.handleControlPropertyChanged(Unknown Source) at com.sun.javafx.scene.control.skin.LabelSkin.handleControlPropertyChanged(Unknown Source) at com.sun.javafx.scene.control.skin.BehaviorSkinBase.lambda$registerChangeListener$61(Unknown Source) at com.sun.javafx.scene.control.MultiplePropertyChangeListenerHandler$1.changed(Unknown Source) at javafx.beans.value.WeakChangeListener.changed(Unknown Source) at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(Unknown Source) at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source) at javafx.beans.property.StringPropertyBase.fireValueChangedEvent(Unknown Source) at javafx.beans.property.StringPropertyBase.markInvalid(Unknown Source) at javafx.beans.property.StringPropertyBase.set(Unknown Source) at javafx.beans.property.StringPropertyBase.set(Unknown Source) at javafx.beans.property.StringProperty.setValue(Unknown Source) at javafx.scene.control.Labeled.setText(Unknown Source) at Main$1$1.onDataChange(Main.java:54) at com.firebase.client.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:56) at com.firebase.client.core.view.DataEvent.fire(DataEvent.java:45) at com.firebase.client.core.view.EventRaiser$1.run(EventRaiser.java:38) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 进行比较时则不会。怎么会这样?

编辑:例外是:

Text={Binding sampleCount}

0 个答案:

没有答案