The following exception hangs the whole JavaFX UI and makes it no longer usable:
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String
at javafx.scene.chart.CategoryAxis.getDisplayPosition(CategoryAxis.java:62)
at javafx.scene.chart.StackedBarChart.layoutPlotChildren(StackedBarChart.java:485)
at javafx.scene.chart.XYChart.layoutChartChildren(XYChart.java:718)
at javafx.scene.chart.Chart$1.layoutChildren(Chart.java:87)
at javafx.scene.Parent.layout(Parent.java:1052)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Scene.doLayoutPass(Scene.java:547)
at javafx.scene.Scene.access$3700(Scene.java:190)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2291)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:329)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:479)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:459)
at com.sun.javafx.tk.quantum.QuantumToolkit$13.run(QuantumToolkit.java:326)
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.access$300(WinApplication.java:39)
at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:101)
at java.lang.Thread.run(Thread.java:724)
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String
at javafx.scene.chart.CategoryAxis.getDisplayPosition(CategoryAxis.java:62)
at javafx.scene.chart.StackedBarChart.layoutPlotChildren(StackedBarChart.java:485)
at javafx.scene.chart.XYChart.layoutChartChildren(XYChart.java:718)
at javafx.scene.chart.Chart$1.layoutChildren(Chart.java:87)
at javafx.scene.Parent.layout(Parent.java:1052)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Parent.layout(Parent.java:1058)
at javafx.scene.Scene.doLayoutPass(Scene.java:547)
at javafx.scene.Scene.access$3700(Scene.java:190)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2291)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:329)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:479)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:459)
at com.sun.javafx.tk.quantum.QuantumToolkit$13.run(QuantumToolkit.java:326)
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.access$300(WinApplication.java:39)
at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:101)
at java.lang.Thread.run(Thread.java:724)
- duplicates
-
JDK-8096470 [canvas] NPE in Canvas setup code makes javafx stop rendering
- Closed
- relates to
-
JDK-8117634 Ensemble8: Stacked Bar Chart: class cast exception
- Resolved