Hi
I have an app in B4J that use the datepicker control from the designer and this is the error it returned whenever i try to set a new date by code for the datepicker contol.
The source of the date is stored in a file using ticks values, but before anything i set the date on both controls 1 for the datefrom and 1 for the date to
Ex dateFrom.dateticks is set to current date - 30days and the dateto.dateTicks is set to datetime.now and this is without any call to my main sub that set theses controls
i just set the datefrom to the today date minus 30 days and thats it.
As soon has i do that this error popup and stop the processing of the display that contains the form so there is nothing that display on the form
And the funny thing is i reload the same thing right after by clicking on the button that call the main form and everything is displayed correctly without any errors.
I don't know if it is a bug in the library but it seem to do that for no reasons and since it is a library, i can't find the code that does this and neither the reason for it as it only display the error and it did not stop the execution of the other part of the codes.
Anybody have any idea on how to solve this, it is very frustrating as it got me stuck in my app.
Thanks if someone need more explication or code samples i can provide some but unable to make a very small sample since it is part of a bigger coding.
PS When i try to run the app the very first time it did not do any of this. Maybe it store it's own values somewhere to remember the last selected date, but can't seem to find that file..
Please Please any help would be really appreciated.
ERROR IN LOG DISPLAY
WARNING: package com.sun.javafx.embed.swing.oldimpl not in javafx.swing
Waiting for debugger to connect...
Program started.
java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: ClockHourOfAmPm
at java.base/java.time.LocalDate.get0(LocalDate.java:709)
at java.base/java.time.LocalDate.getLong(LocalDate.java:688)
at java.base/java.time.format.DateTimePrintContext.getValue(DateTimePrintContext.java:308)
at java.base/java.time.format.DateTimeFormatterBuilder$NumberPrinterParser.format(DateTimeFormatterBuilder.java:2704)
at java.base/java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.format(DateTimeFormatterBuilder.java:2343)
at java.base/java.time.format.DateTimeFormatter.formatTo(DateTimeFormatter.java:1847)
at java.base/java.time.format.DateTimeFormatter.format(DateTimeFormatter.java:1821)
at javafx.base/javafx.util.converter.LocalDateTimeStringConverter$LdtConverter.toString(LocalDateTimeStringConverter.java:240)
at javafx.base/javafx.util.converter.LocalDateStringConverter.toString(LocalDateStringConverter.java:139)
at javafx.base/javafx.util.converter.LocalDateStringConverter.toString(LocalDateStringConverter.java:45)
at javafx.controls/javafx.scene.control.skin.ComboBoxPopupControl.updateDisplayNode(ComboBoxPopupControl.java:337)
at javafx.controls/javafx.scene.control.skin.DatePickerSkin.getDisplayNode(DatePickerSkin.java:216)
at javafx.controls/javafx.scene.control.skin.ComboBoxBaseSkin.updateDisplayArea(ComboBoxBaseSkin.java:289)
at javafx.controls/javafx.scene.control.skin.ComboBoxBaseSkin.layoutChildren(ComboBoxBaseSkin.java:167)
at javafx.controls/javafx.scene.control.Control.layoutChildren(Control.java:601)
at javafx.graphics/javafx.scene.Parent.layout(Parent.java:1207)
at javafx.graphics/javafx.scene.Parent.layout(Parent.java:1214)
at javafx.graphics/javafx.scene.Parent.layout(Parent.java:1214)
at javafx.graphics/javafx.scene.Parent.layout(Parent.java:1214)
at javafx.graphics/javafx.scene.Scene.doLayoutPass(Scene.java:576)
at javafx.graphics/javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2510)
at javafx.graphics/com.sun.javafx.tk.Toolkit.lambda$runPulse$2(Toolkit.java:412)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
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:563)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:543)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:536)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:342)
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:832)
I have an app in B4J that use the datepicker control from the designer and this is the error it returned whenever i try to set a new date by code for the datepicker contol.
The source of the date is stored in a file using ticks values, but before anything i set the date on both controls 1 for the datefrom and 1 for the date to
Ex dateFrom.dateticks is set to current date - 30days and the dateto.dateTicks is set to datetime.now and this is without any call to my main sub that set theses controls
i just set the datefrom to the today date minus 30 days and thats it.
As soon has i do that this error popup and stop the processing of the display that contains the form so there is nothing that display on the form
And the funny thing is i reload the same thing right after by clicking on the button that call the main form and everything is displayed correctly without any errors.
I don't know if it is a bug in the library but it seem to do that for no reasons and since it is a library, i can't find the code that does this and neither the reason for it as it only display the error and it did not stop the execution of the other part of the codes.
Anybody have any idea on how to solve this, it is very frustrating as it got me stuck in my app.
Thanks if someone need more explication or code samples i can provide some but unable to make a very small sample since it is part of a bigger coding.
PS When i try to run the app the very first time it did not do any of this. Maybe it store it's own values somewhere to remember the last selected date, but can't seem to find that file..
Please Please any help would be really appreciated.
ERROR IN LOG DISPLAY
WARNING: package com.sun.javafx.embed.swing.oldimpl not in javafx.swing
Waiting for debugger to connect...
Program started.
java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: ClockHourOfAmPm
at java.base/java.time.LocalDate.get0(LocalDate.java:709)
at java.base/java.time.LocalDate.getLong(LocalDate.java:688)
at java.base/java.time.format.DateTimePrintContext.getValue(DateTimePrintContext.java:308)
at java.base/java.time.format.DateTimeFormatterBuilder$NumberPrinterParser.format(DateTimeFormatterBuilder.java:2704)
at java.base/java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.format(DateTimeFormatterBuilder.java:2343)
at java.base/java.time.format.DateTimeFormatter.formatTo(DateTimeFormatter.java:1847)
at java.base/java.time.format.DateTimeFormatter.format(DateTimeFormatter.java:1821)
at javafx.base/javafx.util.converter.LocalDateTimeStringConverter$LdtConverter.toString(LocalDateTimeStringConverter.java:240)
at javafx.base/javafx.util.converter.LocalDateStringConverter.toString(LocalDateStringConverter.java:139)
at javafx.base/javafx.util.converter.LocalDateStringConverter.toString(LocalDateStringConverter.java:45)
at javafx.controls/javafx.scene.control.skin.ComboBoxPopupControl.updateDisplayNode(ComboBoxPopupControl.java:337)
at javafx.controls/javafx.scene.control.skin.DatePickerSkin.getDisplayNode(DatePickerSkin.java:216)
at javafx.controls/javafx.scene.control.skin.ComboBoxBaseSkin.updateDisplayArea(ComboBoxBaseSkin.java:289)
at javafx.controls/javafx.scene.control.skin.ComboBoxBaseSkin.layoutChildren(ComboBoxBaseSkin.java:167)
at javafx.controls/javafx.scene.control.Control.layoutChildren(Control.java:601)
at javafx.graphics/javafx.scene.Parent.layout(Parent.java:1207)
at javafx.graphics/javafx.scene.Parent.layout(Parent.java:1214)
at javafx.graphics/javafx.scene.Parent.layout(Parent.java:1214)
at javafx.graphics/javafx.scene.Parent.layout(Parent.java:1214)
at javafx.graphics/javafx.scene.Scene.doLayoutPass(Scene.java:576)
at javafx.graphics/javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2510)
at javafx.graphics/com.sun.javafx.tk.Toolkit.lambda$runPulse$2(Toolkit.java:412)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
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:563)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:543)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:536)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:342)
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:832)