-
-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 21 deserialization of DateTime #4174
Comments
Could be caused by an update of CLDR data introduced in Java 20: The date format has changed, notably the narrow non-breakable space. @wborn was the data to be deserialized created with Java 17 and failure on Java 21? |
I have opened #4185 which fixes the loss of configuration when switching JDK versions. |
PRs for core #4185 and add-ons openhab/openhab-addons#16657 are ready for review. |
I remember I got a similar issue when switching back to 4.1.1 from 4.2, keeping my JSON DB files. |
@lolodomo thanks. What seems to happen is that You can switch the Java versions and check that serialized data cannot be read. openhabian has an option to install Java 21. |
My use case was when switching between 4.1 and 4.2 but remaining in Java 17. That may be a coincidence or a different problem with date deserialisation, that is just strange it just appeared at the same time you added java 21 stuff. I am just afraid you enabled the new format in 4.2 even with java 17 but that is just an hypothesis. I will have to reproduce the issue first. |
Is there still something to do here or can it be closed? |
I did a quick test on S4052, issues with login and with mapdb seem do be gone. |
Great! Then I'll also give it a try again soon. 😀 |
I just gave running openHAB on Java 21 another test but there seems to be some issue with date formats when deserializing timestamps on Java 21.
These errors show up when restarting openHAB:
Originally posted by @wborn in openhab/openhab-distro#1640 (comment)
The text was updated successfully, but these errors were encountered: