NullPointerException冻结应用程序

时间:2019-06-20 20:01:39

标签: javafx

我有一个用Java和JavaFX编写的大型(2万行)应用程序。有一个可停靠的窗格,其中包含一个折线图。出现下面列出的错误,我不知道在哪里寻找。不会经常出现此错误,到目前为止,我无法将其与任何进程相关联。

如果有人给我一个提示,我会很高兴。

    Exception in thread "JavaFX Application Thread" java.util.ConcurrentModificationException
        at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:386)
        at java.util.AbstractList$Itr.next(AbstractList.java:355)
        at com.sun.javafx.scene.shape.PathUtils.configShape(PathUtils.java:45)
        at javafx.scene.shape.Path.impl_configShape(Path.java:251)
        at javafx.scene.shape.Path.impl_updatePeer(Path.java:304)
        at javafx.scene.Node.impl_syncPeer(Node.java:503)
        at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Scene.java:2290)
        at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2419)
        at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Toolkit.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:354)
        at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:381)
        at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:510)
        at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:490)
        at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$404(QuantumToolkit.java:319)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
        at java.lang.Thread.run(Thread.java:745)

    Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
        at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Scene.java:2289)
        at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2419)
        at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Toolkit.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:354)
        at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:381)
        at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:510)
        at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:490)
        at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$404(QuantumToolkit.java:319)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
        at java.lang.Thread.run(Thread.java:745)

0 个答案:

没有答案