Hi All
I have a very simple application which monitors a MySQL table on a server within my private network. All it does go through 20 records from one file searching how many times it appears in another table and then puts the result back into the first table. This works well. Then I display it in a tableview.
I have a timed loop thereafter reloading and recalculating the table every 10 seconds.
This is the first time i have tried B4X instead of the B4J tableview.
My problem happens after about 10 minutes of doing this. I have the debug screen and I see all the calculations are done (They continue) and 1 error appears which I trapped and the loading of the B4X tableview just stops. I am running 50% load of memory on my machine and 62% CPU load.
The Table view is now unresponsive and I cannot click on it to make a row selected but the column sort does click but does not work even on the existing data in the table..
I put a counter on the reload and it loaded 101 times before not loading anymore.
This is the error I get when it stops loading the data
Any ideas , Thank you
I have a very simple application which monitors a MySQL table on a server within my private network. All it does go through 20 records from one file searching how many times it appears in another table and then puts the result back into the first table. This works well. Then I display it in a tableview.
I have a timed loop thereafter reloading and recalculating the table every 10 seconds.
This is the first time i have tried B4X instead of the B4J tableview.
My problem happens after about 10 minutes of doing this. I have the debug screen and I see all the calculations are done (They continue) and 1 error appears which I trapped and the loading of the B4X tableview just stops. I am running 50% load of memory on my machine and 62% CPU load.
The Table view is now unresponsive and I cannot click on it to make a row selected but the column sort does click but does not work even on the existing data in the table..
I put a counter on the reload and it loaded 101 times before not loading anymore.
This is the error I get when it stops loading the data
java.lang.NullPointerException
at javafx.controls/javafx.scene.control.skin.CellSkinBase.access$100(CellSkinBase.java:56)
at javafx.controls/javafx.scene.control.skin.CellSkinBase$StyleableProperties$1.isSettable(CellSkinBase.java:166)
at javafx.controls/javafx.scene.control.skin.CellSkinBase$StyleableProperties$1.isSettable(CellSkinBase.java:161)
at javafx.graphics/javafx.scene.CssStyleHelper.transitionToState(CssStyleHelper.java:666)
at javafx.graphics/javafx.scene.Node.doProcessCSS(Node.java:9647)
at javafx.graphics/javafx.scene.Node.access$900(Node.java:398)
at javafx.graphics/javafx.scene.Node$1.doProcessCSS(Node.java:471)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.processCSSImpl(NodeHelper.java:192)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.superProcessCSSImpl(ParentHelper.java:93)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.superProcessCSS(ParentHelper.java:63)
at javafx.graphics/javafx.scene.Parent.doProcessCSS(Parent.java:1366)
at javafx.graphics/javafx.scene.Parent.access$400(Parent.java:79)
at javafx.graphics/javafx.scene.Parent$1.doProcessCSS(Parent.java:125)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.processCSSImpl(ParentHelper.java:98)
at javafx.controls/com.sun.javafx.scene.control.ControlHelper.superProcessCSSImpl(ControlHelper.java:63)
at javafx.controls/com.sun.javafx.scene.control.ControlHelper.superProcessCSS(ControlHelper.java:55)
at javafx.controls/javafx.scene.control.Control.doProcessCSS(Control.java:886)
at javafx.controls/javafx.scene.control.Control.access$000(Control.java:83)
at javafx.controls/javafx.scene.control.Control$1.doProcessCSS(Control.java:89)
at javafx.controls/com.sun.javafx.scene.control.ControlHelper.processCSSImpl(ControlHelper.java:67)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.processCSS(NodeHelper.java:145)
at javafx.graphics/javafx.scene.Parent.doProcessCSS(Parent.java:1397)
at javafx.graphics/javafx.scene.Parent.access$400(Parent.java:79)
at javafx.graphics/javafx.scene.Parent$1.doProcessCSS(Parent.java:125)
at javafx.graphics/com.sun.javafx.scene.ParentHelper.processCSSImpl(ParentHelper.java:98)
at javafx.controls/com.sun.javafx.scene.control.ControlHelper.superProcessCSSImpl(ControlHelper.java:63)
at javafx.controls/com.sun.javafx.scene.control.ControlHelper.superProcessCSS(ControlHelper.java:55)
at javafx.controls/javafx.scene.control.Control.doProcessCSS(Control.java:886)
at javafx.controls/javafx.scene.control.Control.access$000(Control.java:83)
at javafx.controls/javafx.scene.control.Control$1.doProcessCSS(Control.java:89)
at javafx.controls/com.sun.javafx.scene.control.ControlHelper.processCSSImpl(ControlHelper.java:67)
at javafx.graphics/com.sun.javafx.scene.NodeHelper.processCSS(NodeHelper.java:145)
at javafx.graphics/javafx.scene.Node.processCSS(Node.java:9529)
at javafx.graphics/javafx.scene.Node.processCSS(Node.java:9522)
at javafx.graphics/javafx.scene.Node.processCSS(Node.java:9522)
at javafx.graphics/javafx.scene.Node.processCSS(Node.java:9522)
at javafx.graphics/javafx.scene.Node.processCSS(Node.java:9522)
at javafx.graphics/javafx.scene.Node.processCSS(Node.java:9522)
at javafx.graphics/javafx.scene.Node.processCSS(Node.java:9522)
at javafx.graphics/javafx.scene.Scene.doCSSPass(Scene.java:569)
at javafx.graphics/javafx.scene.Scene.access$3400(Scene.java:172)
at javafx.graphics/javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2477)
at javafx.graphics/com.sun.javafx.tk.Toolkit.lambda$runPulse$2(Toolkit.java:412)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:411)
at javafx.graphics/com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:438)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:519)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:499)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:492)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:320)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
Any ideas , Thank you
Last edited: