This discussion is archived
2 Replies Latest reply: May 20, 2013 11:55 AM by A Tael RSS

JavaFX new developer - getting java.lang.NullPointerException

1009759 Newbie
Currently Being Moderated
Hello all!

Great forum! i'll need your assistance.
i'm pretty new in JavaFx and writing multithreaded program that parse files and place results in components (Table/Tree and etc).

from time to time, i'm getting the following exception, and got NO MORE INFO:

java.lang.NullPointerException
     at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Scene.java:2108)
     at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2210)
     at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
     at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
     at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
     at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
     at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
     at java.lang.Thread.run(Thread.java:722)


and the program just halts.
as mentioned, it is not happening all the time, but just from time to time.

Any slight idea what's going on?
Really need help on this one.
  • 1. Re: JavaFX new developer - getting java.lang.NullPointerException
    1009759 Newbie
    Currently Being Moderated
    Just to add, after several tries, this time i got the following exception. No idea what is the root cause.
    What information is needed for you guys to assist?

    java.lang.NullPointerException
         at com.sun.javafx.sg.prism.NGTextHelper.computeBoundsLogical(NGTextHelper.java:1180)
         at com.sun.javafx.sg.prism.NGTextHelper.computeContentBounds(NGTextHelper.java:1146)
         at javafx.scene.text.Text.impl_computeGeomBounds(Text.java:1257)
         at javafx.scene.Node.updateGeomBounds(Node.java:3142)
         at javafx.scene.Node.getGeomBounds(Node.java:3102)
         at javafx.scene.Node.impl_updatePG(Node.java:456)
         at javafx.scene.shape.Shape.impl_updatePG(Shape.java:944)
         at javafx.scene.text.Text.impl_updatePG(Text.java:1639)
         at javafx.scene.Node.impl_syncPGNode(Node.java:425)
         at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Scene.java:2109)
         at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2210)
         at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
         at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
         at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
         at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
         at java.lang.Thread.run(Thread.java:722)
  • 2. Re: JavaFX new developer - getting java.lang.NullPointerException
    A Tael Journeyer
    Currently Being Moderated
    Which version of Java SE Embedded are you using? Perhaps you'll get better help on the JavaFX Forum (https://forums.oracle.com/forums/category.jspa?categoryID=298)?

    <<Andy>>

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points