Skip to content

Exception while running JSON Database upgrade tool #4923

@semperor

Description

@semperor

I have updated from the last 4th version to the current 5th version using sudo apt update and sudo apt upgrade.

The addon package was updated. The openhab package was not, as Java was still version 17. I then removed version 17 (sudo apt purge openjdk...) and installed version 21.

This time the openhab package was installed. When executing the database update, the following error occurred:

[openHAB] Running JSON Database upgrade tool (${OPENHAB_RUNTIME}/bin/upgradetool.jar).
Exception in thread "main" java.lang.InternalError: should not come down here
        at java.base/sun.util.locale.provider.JRELocaleProviderAdapter.getLocaleServiceProvider(JRELocaleProviderAdapter.java:116)
        at java.base/sun.util.locale.provider.LocaleProviderAdapter.findAdapter(LocaleProviderAdapter.java:295)
        at java.base/sun.util.locale.provider.LocaleProviderAdapter.getAdapter(LocaleProviderAdapter.java:264)
        at java.base/java.text.DateFormatSymbols.getProviderInstance(DateFormatSymbols.java:369)
        at java.base/java.text.DateFormatSymbols.getInstanceRef(DateFormatSymbols.java:361)
        at java.base/java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:626)
        at com.fasterxml.jackson.databind.util.StdDateFormat.<clinit>(StdDateFormat.java:116)
        at com.fasterxml.jackson.databind.ObjectMapper.<clinit>(ObjectMapper.java:411)
        at org.openhab.core.tools.internal.YamlConfigurationV1TagsUpgrader.<init>(YamlConfigurationV1TagsUpgrader.java:81)
        at org.openhab.core.tools.UpgradeTool.<clinit>(UpgradeTool.java:57)
[openHAB] WARNING: internal database upgrade tool failed.
[openHAB] please check the openHAB website (www.openhab.org) for upgrade requirements.

Some context:
java -version

openjdk version "21.0.7" 2025-04-15
OpenJDK Runtime Environment (build 21.0.7+6-Ubuntu-0ubuntu124.04)
OpenJDK 64-Bit Server VM (build 21.0.7+6-Ubuntu-0ubuntu124.04, mixed mode, sharing)
Armbian 25.5.1 stable 6.12.38-current-rockchip64 (Ubuntu noble)
Debian Linux 13.0
Linux 6.12.38-current-rockchip64 on aarch64
Pine64 RockPro64 v2.1, 6 cores

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions