openhab/openhab-core

Snapshot 4069: failed to install bundles at startup

Closed this issue · 39 comments

11:57:06.397 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-hue, ...: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=shell; type=karaf.feature; version="[4.4.5,4.4.5]"; filter:="(&(osgi.identity=shell)(type=karaf.feature)(version>=4.4.5)(version<=4.4.5))" [caused by: Unable to resolve shell/4.4.5: missing requirement [shell/4.4.5] osgi.identity; osgi.identity=org.apache.karaf.shell.core; type=osgi.bundle; version="[4.4.5,4.4.5]"; resolution:=mandatory [caused by: Unable to resolve org.apache.karaf.shell.core/4.4.5: missing requirement [org.apache.karaf.shell.core/4.4.5] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.framework)(version>=1.0.0)(!(version>=3.0.0)))" [caused by: Unable to resolve org.eclipse.osgi/3.18.0.v20220516-2155: missing requirement [org.eclipse.osgi/3.18.0.v20220516-2155] osgi.ee; filter:="(| (&(osgi.ee=JavaSE)(version=1.8)) (&(osgi.ee=JavaSE/compact1)(version=1.8)) )"]]]
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=instance; type=karaf.feature; version="[4.4.5,4.4.5]"; filter:="(&(osgi.identity=instance)(type=karaf.feature)(version>=4.4.5)(version<=4.4.5))" [caused by: Unable to resolve instance/4.4.5: missing requirement [instance/4.4.5] osgi.identity; osgi.identity=org.apache.karaf.instance.core; type=osgi.bundle; version="[4.4.5,4.4.5]"; resolution:=mandatory [caused by: Unable to resolve org.apache.karaf.instance.core/4.4.5: missing requirement [org.apache.karaf.instance.core/4.4.5] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.framework)(version>=1.0.0)(!(version>=3.0.0)))" [caused by: Unable to resolve org.eclipse.osgi/3.18.0.v20220516-2155: missing requirement [org.eclipse.osgi/3.18.0.v20220516-2155] osgi.ee; filter:="(| (&(osgi.ee=JavaSE)(version=1.8)) (&(osgi.ee=JavaSE/compact1)(version=1.8)) )"]]]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:433)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:420)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:374)
        at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:256)
        at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:399)
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1069)
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:1004)
        at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve instance/4.4.5: missing requirement [instance/4.4.5] osgi.identity; osgi.identity=org.apache.karaf.instance.core; type=osgi.bundle; version="[4.4.5,4.4.5]"; resolution:=mandatory [caused by: Unable to resolve org.apache.karaf.instance.core/4.4.5: missing requirement [org.apache.karaf.instance.core/4.4.5] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.framework)(version>=1.0.0)(!(version>=3.0.0)))" [caused by: Unable to resolve org.eclipse.osgi/3.18.0.v20220516-2155: missing requirement [org.eclipse.osgi/3.18.0.v20220516-2155] osgi.ee; filter:="(| (&(osgi.ee=JavaSE)(version=1.8)) (&(osgi.ee=JavaSE/compact1)(version=1.8)) )"]]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        ... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.apache.karaf.instance.core/4.4.5: missing requirement [org.apache.karaf.instance.core/4.4.5] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.framework)(version>=1.0.0)(!(version>=3.0.0)))" [caused by: Unable to resolve org.eclipse.osgi/3.18.0.v20220516-2155: missing requirement [org.eclipse.osgi/3.18.0.v20220516-2155] osgi.ee; filter:="(| (&(osgi.ee=JavaSE)(version=1.8)) (&(osgi.ee=JavaSE/compact1)(version=1.8)) )"]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        ... 13 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.eclipse.osgi/3.18.0.v20220516-2155: missing requirement [org.eclipse.osgi/3.18.0.v20220516-2155] osgi.ee; filter:="(| (&(osgi.ee=JavaSE)(version=1.8)) (&(osgi.ee=JavaSE/compact1)(version=1.8)) )"
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        ... 14 more
11:57:09.353 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed to refresh bundles after processing config update
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=instance; type=karaf.feature; version="[4.4.5,4.4.5]"; filter:="(&(osgi.identity=instance)(type=karaf.feature)(version>=4.4.5)(version<=4.4.5))" [caused by: Unable to resolve instance/4.4.5: missing requirement [instance/4.4.5] osgi.identity; osgi.identity=org.apache.karaf.instance.core; type=osgi.bundle; version="[4.4.5,4.4.5]"; resolution:=mandatory [caused by: Unable to resolve org.apache.karaf.instance.core/4.4.5: missing requirement [org.apache.karaf.instance.core/4.4.5] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.framework)(version>=1.0.0)(!(version>=3.0.0)))" [caused by: Unable to resolve org.eclipse.osgi/3.18.0.v20220516-2155: missing requirement [org.eclipse.osgi/3.18.0.v20220516-2155] osgi.ee; filter:="(| (&(osgi.ee=JavaSE)(version=1.8)) (&(osgi.ee=JavaSE/compact1)(version=1.8)) )"]]]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:433) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:420) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:374) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:256) ~[?:?]
        at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:399) ~[?:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1069) ~[?:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:1004) ~[?:?]
        at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
        at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve instance/4.4.5: missing requirement [instance/4.4.5] osgi.identity; osgi.identity=org.apache.karaf.instance.core; type=osgi.bundle; version="[4.4.5,4.4.5]"; resolution:=mandatory [caused by: Unable to resolve org.apache.karaf.instance.core/4.4.5: missing requirement [org.apache.karaf.instance.core/4.4.5] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.framework)(version>=1.0.0)(!(version>=3.0.0)))" [caused by: Unable to resolve org.eclipse.osgi/3.18.0.v20220516-2155: missing requirement [org.eclipse.osgi/3.18.0.v20220516-2155] osgi.ee; filter:="(| (&(osgi.ee=JavaSE)(version=1.8)) (&(osgi.ee=JavaSE/compact1)(version=1.8)) )"]]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]
        ... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.apache.karaf.instance.core/4.4.5: missing requirement [org.apache.karaf.instance.core/4.4.5] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.framework)(version>=1.0.0)(!(version>=3.0.0)))" [caused by: Unable to resolve org.eclipse.osgi/3.18.0.v20220516-2155: missing requirement [org.eclipse.osgi/3.18.0.v20220516-2155] osgi.ee; filter:="(| (&(osgi.ee=JavaSE)(version=1.8)) (&(osgi.ee=JavaSE/compact1)(version=1.8)) )"]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]
        ... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.eclipse.osgi/3.18.0.v20220516-2155: missing requirement [org.eclipse.osgi/3.18.0.v20220516-2155] osgi.ee; filter:="(| (&(osgi.ee=JavaSE)(version=1.8)) (&(osgi.ee=JavaSE/compact1)(version=1.8)) )"
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.18.0.jar:?]
        ... 12 more

Two errors:

  1. Failed installing ...
  2. Failed to refresh bundles after processing config update

This is repeated ever and ever...

The problem persists even after a restart.

As a reminder, I am using the kar file.

Switching back to snapshot 4064

Could it be a consequence of #4209 ?
@mherwege for information

@lolodomo I don't think it is a direct consequence, but it certainly does aggrevate the problem. See my analysis here: #4158 (comment)

Unless someone figures out how to fix the FeatureInstaller, the only thing that will make a difference is rolling back #4188 (with follow up #4206 and #4209). The install mechanism for finders before was not using the FeatureInstaller. I am not sure this will solve the whole issue though. It looks like it very much appeared wit the upgrade to Karaf 4.4.5. Honestly, this is beyond my knowledge to try to fix.
@J-N-K @holgerfriedrich FYI

Maybe there was something forgotten when moving from Karaf 4.4.4 to 4.4.5 ?

In the exception, I see "3.18.0.v20220516-2155".

Looks like we are referencing version 3.18.0 here:

<version>3.18.0</version>

<bundle dependency="true" start="false">mvn:org.eclipse.platform/org.eclipse.osgi/3.18.0</bundle>

Is the difference important ?

I also found this place where version 3.13.100 is defined, I don't know if this is normal.

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/since-4-2-0-snapshot-build-4065-and-later-unable-to-resolve-root-missing-requirement/155842/2

I also found this place where version 3.13.100 is defined, I don't know if this is normal.

That looks really strange, why is there a different version here ?

@wborn for help

@lolodomo I don't think that is an issue because we don't run that bundle in a normal installation.

@mherwege Continuing here from your #4158 (comment):

The problem is that without FeaturesService.Option.NoAutoRefreshBundles core bundles might be refreshed (e.g. when optional dependencies are now fulfilled). When that happens, all services in that bundle are stopped. As I explained in #3049 the following happened:

  • openHAB starts, the JNA feature is not installed, because it is optional
  • the FeatureInstaller tries to install all selected add-ons
  • each add-on causes a bundle refresh, if a dependency of a bundle changes, that bundle is stopped, re-resolved and started (stopping the bundle results in all services that are provided by that bundle to be stopped)
  • stopping and re-starting the core bundle results in stopping and re-starting of the core.karaf bundle, as a result the installation of the remaining add-ons is interrupted resulting in an ERROR in the log

The solution was to suppress the bundle refresh after each individual installation and do a refresh after all add-ons have been installed (that should also result in better performance). It seems that since Karaf 4.4.5 there is an issue when the bundles are not immediately refreshed. IMO this is a bug in Karaf.

@J-N-K @lolodomo If this is a Karaf bug, what can we do to go around it? Would removing the finder installation from the FeatureInstaller again (reverting #4188 with follow up #4206 and #4209) be a remedy, as it would not delay the bundle refresh for finders? Either way, I don't see a good solution at the moment.

@J-N-K bad news is, Karaf 4.4.6 shows similar behaviour.

Will the problem persist if the 3 PRs about finder bundles installation are reverted ?
Maybe we could start with that if it is not useless.

Since we already saw the issue before (#4158), it might help a bit - but not solve it.

We should try to remove the FeaturesService.Option.NoAutoRefreshBundles option. In #3049 we added the JNA feature to the core feature, which should solve all known issues with bundle refreshing and interruption, but this is not fail-safe for the future.

#4158 did not seem very critical, as the problem went away by restarting and did not affect all systems (e.g. never seen it on my Windows or RPI systems). With the current changes we have problems which prevent the installation of add-ons in the setup wizard.

Just to share some details I learned from the tests I did so far:

What I can tell form my tests on Windows is: M2 works for me, and versions up to c316b07 work for me as well (this is last before #4188). 1b503af does not work (#3736). I have not checked the commits between.

@J-N-K I tried to remove FeaturesService.Option.NoAutoRefreshBundles as proposed in #4158 (comment), it did not improve the situation. Shall I try again on a clean setup?

Are you sure the bundle was not reverted to the distribution version?

I will retry with the clean setup: full distro build, cut off the internet, start openhab. Will take some time...

Did you also remove

featuresService.refreshFeatures(EnumSet.noneOf(FeaturesService.Option.class));
?

The error happens there, and this line should not be required anymore after removing FeaturesService.Option.NoAutoRefreshBundles.

@@ -199,7 +199,7 @@ public class FeatureInstaller implements ConfigurationListener {

         try {
             if (changed) {
-                featuresService.refreshFeatures(EnumSet.noneOf(FeaturesService.Option.class));
+                // featuresService.refreshFeatures(EnumSet.noneOf(FeaturesService.Option.class));
             }
         } catch (Exception e) {
             logger.error("Failed to refresh bundles after processing config update", e);
@@ -438,8 +438,8 @@ public class FeatureInstaller implements ConfigurationListener {
             if (logger.isDebugEnabled()) {
                 logger.debug("Installing '{}'", String.join(", ", addons));
             }
-            featuresService.installFeatures(addons, EnumSet.of(FeaturesService.Option.NoAutoRefreshBundles,
-                    FeaturesService.Option.Upgrade, FeaturesService.Option.NoFailOnFeatureNotFound));
+            featuresService.installFeatures(addons,
+                    EnumSet.of(FeaturesService.Option.Upgrade, FeaturesService.Option.NoFailOnFeatureNotFound));
             try {
                 Feature[] features = featuresService.listIn

this did not do the trick. Did I miss something?

In my test, I replaced the installFeatures method with:

    private void installFeatures(Set<String> addons) {
        try {
            if (logger.isDebugEnabled()) {
                logger.debug("Installing '{}'", String.join(", ", addons));
            }
            featuresService.installFeatures(addons,
                    EnumSet.of(FeaturesService.Option.Upgrade, FeaturesService.Option.NoFailOnFeatureNotFound));
        } catch (Exception e) {
            logger.error("Failed installing '{}': {}", String.join(", ", addons), e.getMessage(), debugException(e));
            configMapCache = null; // make sure we retry the installation
        }

        try {
            Feature[] features = featuresService.listInstalledFeatures();
            Set<String> installed = new HashSet<>();
            Set<String> failed = new HashSet<>();

            for (String addon : addons) {
                if (anyMatchingFeature(features, withName(addon))) {
                    installed.add(addon);
                } else {
                    failed.add(addon);
                }
            }

            if (!installed.isEmpty() && logger.isDebugEnabled()) {
                logger.debug("Installed '{}'", String.join(", ", installed));
            }
            if (!failed.isEmpty()) {
                logger.error("Failed installing '{}'", String.join(", ", failed));
                configMapCache = null; // make sure we retry the installation
            }
            installed.forEach(this::postInstalledEvent);
        } catch (Exception e) {
            logger.error("Failed retrieving features: {}", e.getMessage(), debugException(e));
            configMapCache = null; // make sure we retry the installation
        }
    }

It moves the catch up a level and checks for what has been installed and updates the list, even after an error. I didn't expect this to make a difference, but it is worth trying. Apart from that, it is what I did.

I didn't try this on the latest snapshot, but on one from 3 days ago, with this patched FeatureInstaller and all PR's on finder installation applied. It worked fine for me with that.

I didn't try this on the latest snapshot, but on one from 3 days ago

Which build was that? I noticed that this issue didn't exist in 4064, and started in 4065.

this issue didn't exist in 4064

I think it did exist, but it wasn’t as bad as the finders did not get installed at startup due to a bug. Anyway, I am not behind my computer so don’t know the exact version. The only thing I can say is that it did include the changed fixed version of the finder service (which I included manually) and the modified feature installer. It is the bug fix of the finder service that made the problem worse (but did not create it) in the most recent snapshots. And that’s simply because they now install (and didn’t before). But it is the overall feature install that is buggy, probably due to a Karaf version change.

@mherwege I prepared PRs for rollback of the Karaf upgrade, but it did not help if I remember correctly. I will check again in the evening.

I think it did exist, but it wasn’t as bad as the finders did not get installed at startup due to a bug.

Yes, confirmed by @J-N-K . I myself see one error at first startup of 4064 but then all addons were finally installed so it was not so critical.
Now it is critical as OH is simply no more usable.

I just tried to reproduce it with a fresh install (local build of main branches core/distro) and it starts up fine. I then

  • added astro -> no issue
  • added jsscripting-> no issue
  • added systeminfo-> no issue
  • shutdown, restart -> no issue
  • shutdown, clear cache/temp, start -> no issue
openjdk 17.0.11 2024-04-16
OpenJDK Runtime Environment Temurin-17.0.11+9 (build 17.0.11+9)
OpenJDK 64-Bit Server VM Temurin-17.0.11+9 (build 17.0.11+9, mixed mode)

macOS 14.4.1 / Apple M1 Pro

I tried it on Mac and it seems to work fine! The problem seems to exist on Linux and Windows.

@holgerfriedrich @lolodomo Can you comment on OS and Java version? Do you use Oracle, Zulu or Temurin? 64 bit or 32 bit? Arm or x86?

@J-N-K my "broken" setup is Win11, Zulu 64. I updated to latest, did not make a difference.

openjdk version "17.0.11" 2024-04-16 LTS
OpenJDK Runtime Environment Zulu17.50+19-CA (build 17.0.11+9-LTS)
OpenJDK 64-Bit Server VM Zulu17.50+19-CA (build 17.0.11+9-LTS, mixed mode, sharing)

Can you try temurin?

Mac + Zulu: works
Ubuntu 22 + Zulu: doesn't work
Ubuntu 22 + temurin: doesn't work

Interesting. Can you share the output of capabilities --namespace osgi.ee org.eclipse.osgi?

Mine looks like that:

org.eclipse.osgi_3.18.0.v20220516-2155 [0] provides:
----------------------------------------------------
osgi.ee; OSGi/Minimum [1.0.0, 1.1.0, 1.2.0] [UNUSED]
osgi.ee; JavaSE [1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 9.0.0, 10.0.0, 11.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0] required by:
   org.fusesource.jansi_2.4.1 [6]
   org.apache.felix.configadmin.plugin.interpolation_1.2.8 [15]
   org.apache.karaf.features.core_4.4.5 [19]
   org.apache.karaf.features.extension_4.4.5 [1]
   org.apache.karaf.services.eventadmin_4.4.5 [2]
   org.apache.felix.metatype_1.2.4 [11]
   org.apache.karaf.config.core_4.4.5 [17]
   org.apache.felix.configadmin_1.9.26 [12]
   org.apache.sling.commons.johnzon_1.2.16 [14]
   org.apache.felix.coordinator_1.0.2 [8]
   org.ops4j.pax.logging.pax-logging-log4j2_2.2.6 [5]
   org.apache.felix.configurator_1.0.16 [13]
   org.apache.felix.cm.json_1.0.6 [16]
   org.ops4j.pax.logging.pax-logging-api_2.2.6 [4]
   org.apache.felix.converter_1.0.14 [9]
   org.apache.karaf.jaas.config_4.4.5 [21]
   org.apache.karaf.jaas.modules_4.4.5 [22]
   org.openhab.core.ui_4.2.0.202405081529 [224]
   org.openhab.core.config.dispatch_4.2.0.202405081528 [174]
   org.openhab.core.karaf_4.2.0.202405081528 [197]
   com.fasterxml.jackson.core.jackson-databind_2.16.0 [32]
   org.openhab.core.automation_4.2.0.202405081529 [164]
   org.openhab.core.transform_4.2.0.202405081528 [223]
   org.apache.karaf.shell.commands_4.4.5 [23]
   com.fasterxml.woodstox.woodstox-core_6.5.1 [36]
   org.apiguardian.api_1.1.2 [98]
   org.openhab.core.automation.module.script.rulesupport_4.2.0.202405081529 [167]
   org.openhab.core.addon_4.2.0.202405081528 [158]
   org.openhab.core.audio_4.2.0.202405081528 [161]
   io.methvin.directory-watcher_0.18.0 [46]
   org.ops4j.pax.web.pax-web-extender-whiteboard_8.0.24 [231]
   org.objectweb.asm.tree.analysis_9.6.0 [154]
   jakarta.xml.ws-api_2.3.3 [57]
   io.swagger.core.v3.swagger-jaxrs2_2.2.15 [50]
   com.sun.jna_5.14.0 [41]
   org.apache.aries.spifly.dynamic.bundle_1.3.7 [67]
   org.apache.karaf.features.command_4.4.5 [82]
   org.antlr.runtime_3.2.0.v201101311130 [62]
   org.eclipse.jetty.websocket.javax.websocket_9.4.53.v20231009 [133]
   org.eclipse.jetty.websocket.javax.websocket_9.4.53.v20231009 [133]
   org.apache.cxf.cxf-rt-security_3.6.2 [73]
   org.eclipse.jetty.util_9.4.53.v20231009 [128]
   org.eclipse.jetty.util_9.4.53.v20231009 [128]
   org.apache.commons.lang3_3.14.0 [68]
   org.eclipse.jetty.server_9.4.53.v20231009 [125]
   org.eclipse.jetty.server_9.4.53.v20231009 [125]
   org.apache.sshd.scp_2.11.0 [95]
   org.openhab.core.model.sitemap.ide_4.2.0.202405081529 [213]
   io.swagger.core.v3.swagger-annotations_2.2.15 [47]
   org.openhab.core.storage.json_4.2.0.202405081528 [221]
   org.openhab.core.thing_4.2.0.202405081528 [222]
   si.uom.si-quantity_2.1.0 [243]
   com.google.gson_2.10.1.v20230109-0753 [37]
   com.google.gson_2.10.1.v20230109-0753 [37]
   org.eclipse.jetty.http2.hpack_9.4.53.v20231009 [116]
   org.eclipse.jetty.http2.hpack_9.4.53.v20231009 [116]
   org.eclipse.jetty.http2.common_9.4.53.v20231009 [115]
   org.eclipse.jetty.http2.common_9.4.53.v20231009 [115]
   org.openhab.core.io.websocket_4.2.0.202405081528 [196]
   org.apache.karaf.package.core_4.4.5 [86]
   org.openhab.core.model.rule.runtime_4.2.0.202405081530 [208]
   org.openhab.core.model.sitemap.runtime_4.2.0.202405081529 [214]
   org.openhab.core.model.item.runtime_4.2.0.202405081528 [201]
   com.fasterxml.jackson.dataformat.jackson-dataformat-yaml_2.16.0 [34]
   org.openhab.core.io.rest.sitemap_4.2.0.202405081529 [189]
   org.openhab.core.model.item_4.2.0.202405081528 [199]
   org.eclipse.jetty.http_9.4.53.v20231009 [112]
   org.eclipse.jetty.http_9.4.53.v20231009 [112]
   com.google.guava_33.0.0.jre [38]
   org.apache.karaf.instance.core_4.4.5 [83]
   jakarta.xml.bind-api_2.3.3 [56]
   org.openhab.core.model.rule.ide_4.2.0.202405081530 [207]
   org.eclipse.jetty.alpn.api_1.1.3.v20160715 [105]
   org.openhab.core.io.http_4.2.0.202405081527 [179]
   bcpkix_1.75.0 [27]
   org.openhab.core.ephemeris_4.2.0.202405081528 [175]
   tech.units.indriya_2.2.0 [245]
   org.apache.karaf.deployer.features_4.4.5 [78]
   jakarta.inject.jakarta.inject-api_2.0.1 [53]
   org.openhab.core.model.core_4.2.0.202405081528 [198]
   org.apache.servicemix.specs.saaj-api-1.4_1.4.0.2 [93]
   org.openhab.core.io.rest.mdns_4.2.0.202405081529 [188]
   org.openhab.core.model.thing.runtime_4.2.0.202405081529 [217]
   org.eclipse.xtext.common.types_2.34.0.v20240227-0940 [143]
   org.openhab.ui.iconset.classic_4.2.0.202405071606 [228]
   org.apache.karaf.shell.core_4.4.5 [24]
   org.apache.karaf.system.core_4.4.5 [90]
   org.apache.karaf.bundle.core_4.4.5 [76]
   org.apache.cxf.cxf-core_3.6.2 [69]
   org.eclipse.jetty.openid_9.4.53.v20231009 [121]
   org.eclipse.jetty.openid_9.4.53.v20231009 [121]
   org.apache.karaf.scr.state_4.4.5 [87]
   org.eclipse.equinox.common_3.18.0.v20230523-2142 [104]
   org.openhab.core.io.transport.mdns_4.2.0.202405081529 [195]
   jakarta.servlet-api_4.0.0 [54]
   org.eclipse.jetty.xml_9.4.53.v20231009 [137]
   org.eclipse.jetty.xml_9.4.53.v20231009 [137]
   org.apache.servicemix.specs.activation-api-1.2.1_1.2.1.3 [92]
   org.eclipse.emf.ecore.xmi_2.16.0.v20190528-0725 [103]
   org.eclipse.jetty.rewrite_9.4.53.v20231009 [123]
   org.eclipse.jetty.rewrite_9.4.53.v20231009 [123]
   org.openhab.core.model.persistence.ide_4.2.0.202405081528 [204]
   org.openhab.core.model.persistence.runtime_4.2.0.202405081528 [205]
   org.apache.aries.javax.jax.rs-api_1.0.4 [65]
   org.openhab.core.automation.module.media_4.2.0.202405081529 [165]
   org.eclipse.jetty.proxy_9.4.53.v20231009 [122]
   org.eclipse.jetty.proxy_9.4.53.v20231009 [122]
   org.apache.cxf.cxf-rt-rs-sse_3.6.2 [72]
   org.apache.cxf.cxf-rt-frontend-jaxrs_3.6.2 [70]
   org.openhab.core.auth.oauth2client_4.2.0.202405081528 [163]
   si-units_2.1.0 [242]
   org.ops4j.pax.web.pax-web-api_8.0.24 [229]
   org.objectweb.asm_9.6.0 [151]
   org.openhab.core.config.discovery_4.2.0.202405081529 [170]
   jakarta.inject.jakarta.inject-api_1.0.5 [52]
   org.eclipse.jetty.util.ajax_9.4.53.v20231009 [129]
   org.eclipse.jetty.util.ajax_9.4.53.v20231009 [129]
   org.eclipse.jetty.alpn.server_9.4.53.v20231009 [109]
   org.eclipse.jetty.alpn.server_9.4.53.v20231009 [109]
   com.fasterxml.jackson.dataformat.jackson-dataformat-xml_2.16.0 [33]
   org.openhab.core.io.rest.ui_4.2.0.202405081529 [193]
   org.eclipse.xtext.util_2.34.0.v20240227-0940 [145]
   org.apache.servicemix.bundles.saaj-impl_1.4.0.2 [91]
   org.apache.karaf.wrapper.core_4.4.5 [25]
   org.openhab.ui_4.2.0.202405071608 [227]
   org.eclipse.xtend.lib.macro_2.34.0.v20240227-0940 [141]
   org.yaml.snakeyaml_2.2.0 [241]
   org.openhab.core.model.rule_4.2.0.202405081530 [206]
   org.eclipse.jetty.security_9.4.53.v20231009 [124]
   org.eclipse.jetty.security_9.4.53.v20231009 [124]
   javax.jmdns_3.5.9 [59]
   javax.jmdns_3.5.9 [59]
   org.eclipse.jetty.client_9.4.53.v20231009 [110]
   org.eclipse.jetty.client_9.4.53.v20231009 [110]
   org.apache.karaf.deployer.kar_4.4.5 [79]
   org.eclipse.lsp4j.jsonrpc_0.22.0.v20240213-2011 [139]
   org.eclipse.lsp4j.jsonrpc_0.22.0.v20240213-2011 [139]
   org.openhab.core.io.rest_4.2.0.202405081527 [184]
   org.openhab.core.persistence_4.2.0.202405081528 [219]
   org.eclipse.jetty.http2.client_9.4.53.v20231009 [113]
   org.eclipse.jetty.http2.client_9.4.53.v20231009 [113]
   org.eclipse.xtext.xbase_2.34.0.v20240227-0940 [146]
   org.jline_3.21.0 [26]
   org.apache.karaf.service.core_4.4.5 [88]
   org.ops4j.pax.web.pax-web-spi_8.0.24 [234]
   stax2-api_4.2.2 [244]
   org.openhab.core.io.http.auth_4.2.0.202405081527 [180]
   org.ops4j.pax.web.pax-web-runtime_8.0.24 [233]
   org.openhab.core.semantics_4.2.0.202405081528 [220]
   org.apache.karaf.diagnostic.core_4.4.5 [80]
   org.eclipse.jetty.websocket.client_9.4.53.v20231009 [131]
   org.eclipse.jetty.websocket.client_9.4.53.v20231009 [131]
   org.eclipse.jetty.io_9.4.53.v20231009 [118]
   org.eclipse.jetty.io_9.4.53.v20231009 [118]
   org.openhab.core.model.thing.ide_4.2.0.202405081529 [216]
   org.apache.aries.component-dsl.component-dsl_1.2.2 [64]
   org.openhab.core.io.console.karaf_4.2.0.202405081528 [178]
   org.openhab.core.auth.jaas_4.2.0.202405081527 [162]
   org.openhab.core.addon.marketplace.karaf_4.2.0.202405081529 [160]
   org.openhab.core.ui.icon_4.2.0.202405081529 [225]
   org.glassfish.hk2.osgi-resource-locator_1.0.3 [149]
   javax.measure.unit-api_2.2.0 [60]
   org.apache.karaf.log.core_4.4.5 [85]
   org.openhab.core.addon.marketplace_4.2.0.202405081529 [159]
   org.openhab.core.model.thing_4.2.0.202405081529 [215]
   org.openhab.core.model.script_4.2.0.202405081530 [209]
   org.apache.karaf.config.command_4.4.5 [77]
   org.eclipse.xtend.lib_2.34.0.v20240227-0940 [140]
   org.ops4j.pax.web.pax-web-jetty_8.0.24 [232]
   de.focus_shift.jollyday-core_0.27.0 [43]
   org.openhab.core.io.rest.auth_4.2.0.202405081528 [186]
   org.apache.sshd.sftp_2.11.0 [96]
   org.eclipse.jetty.jmx_9.4.53.v20231009 [120]
   org.eclipse.jetty.jmx_9.4.53.v20231009 [120]
   org.openhab.core.config.discovery.addon.process_4.2.0.202405081528 [172]
   org.eclipse.jetty.alpn.java.server_9.4.53.v20231009 [108]
   org.eclipse.jetty.alpn.java.server_9.4.53.v20231009 [108]
   uom-lib-common_2.2.0 [246]
   org.openhab.core.model.yaml_4.2.0.202405081528 [218]
   io.swagger.core.v3.swagger-models_2.2.15 [51]
   bcutil_1.75.0 [29]
   org.openhab.core.config.core_4.2.0.202405081528 [169]
   org.eclipse.xtext.xbase.ide_2.34.0.v20240227-0940 [147]
   org.openhab.core.voice_4.2.0.202405081528 [226]
   org.apache.cxf.cxf-rt-transports-http_3.6.2 [74]
   org.openhab.core.model.sitemap_4.2.0.202405081528 [212]
   org.apache.aries.jax.rs.whiteboard_2.0.0 [66]
   org.eclipse.jetty.alpn.client_9.4.53.v20231009 [106]
   org.eclipse.jetty.alpn.client_9.4.53.v20231009 [106]
   org.openhab.core.io.monitor_4.2.0.202405081529 [182]
   com.google.inject_7.0.0 [40]
   com.google.inject_7.0.0 [40]
   org.eclipse.jetty.websocket.server_9.4.53.v20231009 [135]
   org.eclipse.jetty.websocket.server_9.4.53.v20231009 [135]
   jakarta.validation.jakarta.validation-api_2.0.2 [55]
   org.apache.ws.xmlschema.core_2.3.1 [97]
   org.openhab.core.io.rest.transform_4.2.0.202405081528 [192]
   org.openhab.core.model.item.ide_4.2.0.202405081529 [200]
   org.openhab.core.io.rest.core_4.2.0.202405081529 [187]
   org.ops4j.pax.web.pax-web-tomcat-common_8.0.24 [235]
   org.openhab.core.config.discovery.mdns_4.2.0.202405081529 [173]
   org.openhab.core.io.rest.swagger_4.2.0.202405081527 [191]
   org.eclipse.jetty.websocket.common_9.4.53.v20231009 [132]
   org.eclipse.jetty.websocket.common_9.4.53.v20231009 [132]
   org.eclipse.jetty.websocket.javax.websocket.server_9.4.53.v20231009 [134]
   org.eclipse.jetty.websocket.javax.websocket.server_9.4.53.v20231009 [134]
   org.openhab.core.model.script.ide_4.2.0.202405081530 [210]
   com.sun.xml.bind.jaxb-osgi_2.3.8 [42]
   org.openhab.core.io.jetty.certificate_4.2.0.202405081527 [181]
   org.threeten.extra_1.7.2 [240]
   org.eclipse.emf.ecore_2.26.0.v20220123-0838 [101]
   org.eclipse.jetty.websocket.api_9.4.53.v20231009 [130]
   org.eclipse.jetty.websocket.api_9.4.53.v20231009 [130]
   org.apache.karaf.kar.core_4.4.5 [84]
   org.eclipse.jetty.continuation_9.4.53.v20231009 [111]
   org.eclipse.jetty.continuation_9.4.53.v20231009 [111]
   org.openhab.core.io.console_4.2.0.202405081528 [177]
   org.openhab.core_4.2.0.202405081527 [157]
   bcprov_1.75.0 [28]
   org.apache.karaf.shell.ssh_4.4.5 [89]
   org.eclipse.emf.ecore.change_2.14.0.v20190528-0725 [102]
   de.focus_shift.jollyday-jackson_0.27.0 [44]
   io.swagger.core.v3.swagger-core_2.2.15 [48]
   io.swagger.core.v3.swagger-integration_2.2.15 [49]
   org.eclipse.emf.common_2.24.0.v20220123-0838 [100]
   org.eclipse.jetty.servlets_9.4.53.v20231009 [127]
   org.eclipse.jetty.servlets_9.4.53.v20231009 [127]
   org.apache.karaf.jaas.command_4.4.5 [20]
   org.objectweb.asm.commons_9.6.0 [152]
   org.openhab.base-fixes_1.0.0 [156]
   org.apache.sshd.osgi_2.11.0 [94]
   org.openhab.core.io.rest.voice_4.2.0.202405081528 [194]
   org.eclipse.jetty.alpn.java.client_9.4.53.v20231009 [107]
   org.eclipse.jetty.alpn.java.client_9.4.53.v20231009 [107]
   com.fasterxml.jackson.core.jackson-core_2.16.0 [31]
   io.github.classgraph.classgraph_4.8.165 [45]
   org.eclipse.xtext_2.34.0.v20240227-0940 [142]
   org.eclipse.jetty.http2.client.http_9.4.53.v20231009 [114]
   org.eclipse.jetty.http2.client.http_9.4.53.v20231009 [114]
   org.eclipse.jetty.http2.server_9.4.53.v20231009 [117]
   org.eclipse.jetty.http2.server_9.4.53.v20231009 [117]
   org.openhab.core.io.rest.sse_4.2.0.202405081528 [190]
   org.openhab.core.config.discovery.addon_4.2.0.202405081528 [171]
   org.openhab.core.id_4.2.0.202405081528 [176]
   org.openhab.core.model.script.runtime_4.2.0.202405081530 [211]
   org.openhab.core.io.net_4.2.0.202405081527 [183]
   com.fasterxml.jackson.core.jackson-annotations_2.16.0 [30]
   org.openhab.core.model.lsp_4.2.0.202405081530 [202]
   com.fasterxml.jackson.datatype.jackson-datatype-jsr310_2.16.0 [35]
   org.objectweb.asm.util_9.6.0 [155]
   org.objectweb.asm.tree_9.6.0 [153]
   org.openhab.core.model.persistence_4.2.0.202405081528 [203]
   org.eclipse.lsp4j_0.22.0.v20240213-2011 [138]
   org.eclipse.lsp4j_0.22.0.v20240213-2011 [138]
   org.openhab.core.automation.module.script_4.2.0.202405081529 [166]
   org.ops4j.pax.web.pax-web-websocket_8.0.24 [236]
   org.openhab.core.automation.rest_4.2.0.202405081529 [168]
   org.eclipse.xtext.ide_2.34.0.v20240227-0940 [144]
   org.aopalliance_1.0.0.v201105210816 [63]
   org.apache.karaf.event_4.4.5 [81]
   org.eclipse.xtext.xbase.lib_2.34.0.v20240227-0940 [148]
   org.eclipse.jetty.servlet_9.4.53.v20231009 [126]
   org.eclipse.jetty.servlet_9.4.53.v20231009 [126]
   org.eclipse.jetty.jaas_9.4.53.v20231009 [119]
   org.eclipse.jetty.jaas_9.4.53.v20231009 [119]
   com.google.guava.failureaccess_1.0.2 [39]
   org.eclipse.jetty.websocket.servlet_9.4.53.v20231009 [136]
   org.eclipse.jetty.websocket.servlet_9.4.53.v20231009 [136]
   org.apache.cxf.cxf-rt-rs-client_3.6.2 [71]
   org.openhab.core.io.rest.audio_4.2.0.202405081528 [185]
   org.openhab.core.config.discovery.addon.usb_4.2.0.202405081529 [258]
   org.openhab.core.config.discovery.usbserial_4.2.0.202405081529 [259]
   org.openhab.automation.jsscripting_4.2.0.202405080328 [252]
   org.openhab.binding.systeminfo_4.2.0.202405080413 [254]
   org.openhab.core.io.transport.serial.rxtx_4.2.0.202405081528 [264]
   nrjavaserial_5.2.1.OH1 [249]
   org.openhab.core.config.discovery.usbserial.ser2net_4.2.0.202405081529 [260]
   org.jupnp_3.0.1 [251]
   org.openhab.core.config.discovery.addon.ip_4.2.0.202405081528 [255]
   org.openhab.core.config.serial_4.2.0.202405081529 [262]
   org.openhab.core.config.discovery.addon.upnp_4.2.0.202405081528 [257]
   org.openhab.core.config.discovery.addon.mdns_4.2.0.202405081529 [256]
   org.apache.commons.commons-net_3.9.0 [250]
   org.openhab.core.config.jupnp_4.2.0.202405081527 [261]
   org.openhab.core.io.transport.serial_4.2.0.202405081528 [263]
   org.openhab.binding.astro_4.2.0.202405080331 [253]
   com.sun.jna.platform_5.14.0 [248]
   org.openhab.core.io.transport.serial.rxtx.rfc2217_4.2.0.202405081528 [265]
osgi.ee; JRE [1.0.0, 1.1.0] [UNUSED]
osgi.ee; JavaSE/compact1 [1.8.0, 9.0.0, 10.0.0, 11.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0] required by:
   org.eclipse.osgi_3.18.0.v20220516-2155 [0]
   org.osgi.util.function_1.2.0.202109301733 [7]
   org.osgi.util.promise_1.3.0.202212101352 [10]
   org.apache.felix.scr_2.2.6 [75]
   org.osgi.service.jaxrs_1.0.1.202109301733 [239]
   org.osgi.service.component.annotations_1.5.0.202109301733 [238]
   org.osgi.service.component_1.5.1.202212101352 [237]
osgi.ee; JavaSE/compact2 [1.8.0, 9.0.0, 10.0.0, 11.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0] [UNUSED]
osgi.ee; JavaSE/compact3 [1.8.0, 9.0.0, 10.0.0, 11.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0] [UNUSED]

@holgerfriedrich @lolodomo Can you comment on OS and Java version? Do you use Oracle, Zulu or Temurin? 64 bit or 32 bit? Arm or x86?

For me: RPI3, Pi OS, Zulu17, 32 bit

on Ubuntu 20 + Zulu17 which exbited the problem too:

openjdk version "17.0.11" 2024-04-16 LTS
OpenJDK Runtime Environment Zulu17.50+19-CA (build 17.0.11+9-LTS)
OpenJDK 64-Bit Server VM Zulu17.50+19-CA (build 17.0.11+9-LTS, mixed mode, sharing)

This is the output of capabilities --namespace osgi.ee org.eclipse.osgi

org.eclipse.osgi_3.18.0.v20220516-2155 [0] provides:
----------------------------------------------------
osgi.ee; OSGi/Minimum [1.0.0, 1.1.0, 1.2.0] [UNUSED]
osgi.ee; JavaSE [1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 9.0.0, 10.0.0, 11.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0] required by:
   org.apache.karaf.services.eventadmin_4.4.5 [2]
   org.apache.karaf.features.extension_4.4.5 [1]
   org.ops4j.pax.logging.pax-logging-log4j2_2.2.6 [5]
   org.apache.sling.commons.johnzon_1.2.16 [14]
   org.apache.felix.configadmin.plugin.interpolation_1.2.8 [15]
   org.apache.felix.configadmin_1.9.26 [12]
   org.apache.felix.configurator_1.0.16 [13]
   org.apache.karaf.config.core_4.4.5 [17]
   org.ops4j.pax.logging.pax-logging-api_2.2.6 [4]
   org.apache.felix.coordinator_1.0.2 [8]
   org.apache.felix.metatype_1.2.4 [11]
   org.apache.karaf.features.core_4.4.5 [19]
   org.apache.felix.cm.json_1.0.6 [16]
   org.fusesource.jansi_2.4.1 [6]
   org.apache.felix.converter_1.0.14 [9]
   org.apache.karaf.jaas.modules_4.4.5 [22]
   org.apache.karaf.jaas.config_4.4.5 [21]
   org.eclipse.xtext.ide_2.34.0.v20240227-0940 [144]
   org.eclipse.jetty.xml_9.4.53.v20231009 [137]
   org.eclipse.jetty.xml_9.4.53.v20231009 [137]
   org.openhab.core.model.script_4.2.0.202405070315 [209]
   org.eclipse.emf.ecore.change_2.14.0.v20190528-0725 [102]
   org.eclipse.xtext.util_2.34.0.v20240227-0940 [145]
   org.apache.karaf.diagnostic.core_4.4.5 [80]
   org.openhab.core.io.rest.sse_4.2.0.202405070307 [190]
   org.eclipse.jetty.openid_9.4.53.v20231009 [121]
   org.eclipse.jetty.openid_9.4.53.v20231009 [121]
   org.apache.aries.spifly.dynamic.bundle_1.3.7 [67]
   org.eclipse.emf.common_2.24.0.v20220123-0838 [100]
   org.aopalliance_1.0.0.v201105210816 [63]
   org.eclipse.jetty.continuation_9.4.53.v20231009 [111]
   org.eclipse.jetty.continuation_9.4.53.v20231009 [111]
   org.objectweb.asm.tree.analysis_9.6.0 [154]
   org.openhab.core.model.item.ide_4.2.0.202405070310 [200]
   org.openhab.core.model.thing.runtime_4.2.0.202405070312 [217]
   org.openhab.core.io.rest.core_4.2.0.202405070312 [187]
   org.apache.servicemix.specs.saaj-api-1.4_1.4.0.2 [93]
   org.eclipse.jetty.alpn.api_1.1.3.v20160715 [105]
   org.openhab.core.io.rest.auth_4.2.0.202405070306 [186]
   org.openhab.core.model.item_4.2.0.202405070308 [199]
   org.eclipse.jetty.websocket.common_9.4.53.v20231009 [132]
   org.eclipse.jetty.websocket.common_9.4.53.v20231009 [132]
   org.eclipse.emf.ecore.xmi_2.16.0.v20190528-0725 [103]
   org.openhab.core.io.rest.mdns_4.2.0.202405070313 [188]
   org.objectweb.asm_9.6.0 [151]
   org.openhab.core.voice_4.2.0.202405070311 [226]
   org.yaml.snakeyaml_2.2.0 [241]
   org.apache.karaf.shell.core_4.4.5 [24]
   org.apache.karaf.instance.core_4.4.5 [83]
   org.apache.cxf.cxf-rt-rs-client_3.6.2 [71]
   org.apiguardian.api_1.1.2 [98]
   org.openhab.core.model.script.ide_4.2.0.202405070315 [210]
   si.uom.si-quantity_2.1.0 [243]
   jakarta.inject.jakarta.inject-api_2.0.1 [53]
   com.google.inject_7.0.0 [40]
   com.google.inject_7.0.0 [40]
   io.swagger.core.v3.swagger-jaxrs2_2.2.15 [50]
   org.eclipse.jetty.alpn.java.client_9.4.53.v20231009 [107]
   org.eclipse.jetty.alpn.java.client_9.4.53.v20231009 [107]
   org.apache.karaf.jaas.command_4.4.5 [20]
   org.openhab.core.io.http.auth_4.2.0.202405070305 [180]
   org.eclipse.jetty.servlets_9.4.53.v20231009 [127]
   org.eclipse.jetty.servlets_9.4.53.v20231009 [127]
   org.apache.karaf.wrapper.core_4.4.5 [25]
   bcprov_1.75.0 [28]
   org.eclipse.jetty.http2.common_9.4.53.v20231009 [115]
   org.eclipse.jetty.http2.common_9.4.53.v20231009 [115]
   org.openhab.core.config.discovery.addon.process_4.2.0.202405070310 [172]
   org.openhab.core.io.rest.transform_4.2.0.202405070307 [192]
   org.openhab.core.model.lsp_4.2.0.202405070317 [202]
   org.eclipse.jetty.client_9.4.53.v20231009 [110]
   org.eclipse.jetty.client_9.4.53.v20231009 [110]
   org.openhab.core.model.persistence_4.2.0.202405070308 [203]
   org.openhab.core.model.sitemap_4.2.0.202405070308 [212]
   io.methvin.directory-watcher_0.18.0 [46]
   org.ops4j.pax.web.pax-web-api_8.0.24 [229]
   org.openhab.core.config.dispatch_4.2.0.202405070307 [174]
   org.openhab.core.io.websocket_4.2.0.202405070307 [196]
   org.ops4j.pax.web.pax-web-websocket_8.0.24 [236]
   stax2-api_4.2.2 [244]
   com.fasterxml.woodstox.woodstox-core_6.5.1 [36]
   org.openhab.core.model.core_4.2.0.202405070306 [198]
   org.objectweb.asm.commons_9.6.0 [152]
   org.eclipse.jetty.websocket.javax.websocket.server_9.4.53.v20231009 [134]
   org.eclipse.jetty.websocket.javax.websocket.server_9.4.53.v20231009 [134]
   org.eclipse.jetty.security_9.4.53.v20231009 [124]
   org.eclipse.jetty.security_9.4.53.v20231009 [124]
   si-units_2.1.0 [242]
   org.eclipse.xtext.xbase.lib_2.34.0.v20240227-0940 [148]
   org.apache.karaf.kar.core_4.4.5 [84]
   com.fasterxml.jackson.datatype.jackson-datatype-jsr310_2.16.0 [35]
   org.apache.karaf.deployer.features_4.4.5 [78]
   org.openhab.core.io.rest.swagger_4.2.0.202405070305 [191]
   org.openhab.core.karaf_4.2.0.202405070309 [197]
   jakarta.xml.ws-api_2.3.3 [57]
   org.apache.karaf.scr.state_4.4.5 [87]
   org.openhab.core.config.discovery_4.2.0.202405070311 [170]
   uom-lib-common_2.2.0 [246]
   org.openhab.core.thing_4.2.0.202405070308 [222]
   org.eclipse.jetty.http_9.4.53.v20231009 [112]
   org.eclipse.jetty.http_9.4.53.v20231009 [112]
   org.threeten.extra_1.7.2 [240]
   org.ops4j.pax.web.pax-web-spi_8.0.24 [234]
   org.eclipse.emf.ecore_2.26.0.v20220123-0838 [101]
   com.fasterxml.jackson.core.jackson-annotations_2.16.0 [30]
   org.openhab.core.model.sitemap.ide_4.2.0.202405070310 [213]
   org.eclipse.jetty.util_9.4.53.v20231009 [128]
   org.eclipse.jetty.util_9.4.53.v20231009 [128]
   de.focus_shift.jollyday-core_0.27.0 [43]
   org.eclipse.jetty.alpn.client_9.4.53.v20231009 [106]
   org.eclipse.jetty.alpn.client_9.4.53.v20231009 [106]
   org.eclipse.jetty.io_9.4.53.v20231009 [118]
   org.eclipse.jetty.io_9.4.53.v20231009 [118]
   org.openhab.core.auth.oauth2client_4.2.0.202405070305 [163]
   javax.jmdns_3.5.9 [59]
   javax.jmdns_3.5.9 [59]
   io.swagger.core.v3.swagger-integration_2.2.15 [49]
   org.apache.karaf.bundle.core_4.4.5 [76]
   org.openhab.core.automation.module.media_4.2.0.202405070314 [165]
   org.apache.aries.javax.jax.rs-api_1.0.4 [65]
   com.google.gson_2.10.1.v20230109-0753 [37]
   com.google.gson_2.10.1.v20230109-0753 [37]
   bcpkix_1.75.0 [27]
   com.fasterxml.jackson.dataformat.jackson-dataformat-yaml_2.16.0 [34]
   org.openhab.core.io.rest_4.2.0.202405070304 [184]
   org.apache.cxf.cxf-rt-security_3.6.2 [73]
   org.apache.servicemix.specs.activation-api-1.2.1_1.2.1.3 [92]
   org.antlr.runtime_3.2.0.v201101311130 [62]
   org.openhab.core.model.script.runtime_4.2.0.202405070315 [211]
   org.jline_3.21.0 [26]
   org.eclipse.equinox.common_3.18.0.v20230523-2142 [104]
   com.sun.jna_5.14.0 [41]
   org.objectweb.asm.util_9.6.0 [155]
   jakarta.inject.jakarta.inject-api_1.0.5 [52]
   org.eclipse.jetty.proxy_9.4.53.v20231009 [122]
   org.eclipse.jetty.proxy_9.4.53.v20231009 [122]
   org.openhab.core.io.jetty.certificate_4.2.0.202405070301 [181]
   org.openhab.core.storage.json_4.2.0.202405070307 [221]
   org.apache.karaf.service.core_4.4.5 [88]
   org.openhab.core.io.console.karaf_4.2.0.202405070309 [178]
   org.openhab.core_4.2.0.202405070301 [157]
   org.openhab.core.id_4.2.0.202405070306 [176]
   org.openhab.core.io.net_4.2.0.202405070304 [183]
   org.openhab.core.model.yaml_4.2.0.202405070305 [218]
   com.fasterxml.jackson.core.jackson-databind_2.16.0 [32]
   org.openhab.core.addon.marketplace.karaf_4.2.0.202405070314 [160]
   org.eclipse.jetty.http2.server_9.4.53.v20231009 [117]
   org.eclipse.jetty.http2.server_9.4.53.v20231009 [117]
   io.swagger.core.v3.swagger-annotations_2.2.15 [47]
   org.eclipse.xtend.lib_2.34.0.v20240227-0940 [140]
   io.swagger.core.v3.swagger-core_2.2.15 [48]
   jakarta.servlet-api_4.0.0 [54]
   javax.measure.unit-api_2.2.0 [60]
   org.eclipse.xtend.lib.macro_2.34.0.v20240227-0940 [141]
   org.openhab.core.io.rest.ui_4.2.0.202405070312 [193]
   org.apache.karaf.shell.commands_4.4.5 [23]
   org.openhab.core.model.persistence.ide_4.2.0.202405070310 [204]
   org.eclipse.jetty.websocket.api_9.4.53.v20231009 [130]
   org.eclipse.jetty.websocket.api_9.4.53.v20231009 [130]
   org.apache.commons.lang3_3.14.0 [68]
   org.openhab.core.addon_4.2.0.202405070306 [158]
   org.openhab.core.automation.module.script_4.2.0.202405070313 [166]
   org.openhab.ui_4.2.0.202405071109 [227]
   org.ops4j.pax.web.pax-web-tomcat-common_8.0.24 [235]
   org.openhab.core.ui.icon_4.2.0.202405070312 [225]
   bcutil_1.75.0 [29]
   org.eclipse.jetty.rewrite_9.4.53.v20231009 [123]
   org.eclipse.jetty.rewrite_9.4.53.v20231009 [123]
   org.openhab.core.model.persistence.runtime_4.2.0.202405070310 [205]
   org.eclipse.lsp4j.jsonrpc_0.22.0.v20240213-2011 [139]
   org.eclipse.lsp4j.jsonrpc_0.22.0.v20240213-2011 [139]
   jakarta.xml.bind-api_2.3.3 [56]
   org.eclipse.jetty.jaas_9.4.53.v20231009 [119]
   org.eclipse.jetty.jaas_9.4.53.v20231009 [119]
   org.openhab.core.automation_4.2.0.202405070311 [164]
   org.openhab.core.ui_4.2.0.202405070310 [224]
   org.apache.cxf.cxf-rt-frontend-jaxrs_3.6.2 [70]
   com.fasterxml.jackson.dataformat.jackson-dataformat-xml_2.16.0 [33]
   org.openhab.core.config.discovery.addon_4.2.0.202405070307 [171]
   io.swagger.core.v3.swagger-models_2.2.15 [51]
   org.openhab.base-fixes_1.0.0 [156]
   de.focus_shift.jollyday-jackson_0.27.0 [44]
   org.eclipse.xtext.common.types_2.34.0.v20240227-0940 [143]
   org.ops4j.pax.web.pax-web-jetty_8.0.24 [232]
   org.openhab.core.io.rest.audio_4.2.0.202405070311 [185]
   org.ops4j.pax.web.pax-web-runtime_8.0.24 [233]
   org.eclipse.jetty.alpn.java.server_9.4.53.v20231009 [108]
   org.eclipse.jetty.alpn.java.server_9.4.53.v20231009 [108]
   tech.units.indriya_2.2.0 [245]
   com.fasterxml.jackson.core.jackson-core_2.16.0 [31]
   org.openhab.ui.iconset.classic_4.2.0.202405071106 [228]
   org.apache.cxf.cxf-rt-transports-http_3.6.2 [74]
   org.eclipse.xtext.xbase.ide_2.34.0.v20240227-0940 [147]
   org.openhab.core.persistence_4.2.0.202405070306 [219]
   org.eclipse.jetty.websocket.client_9.4.53.v20231009 [131]
   org.eclipse.jetty.websocket.client_9.4.53.v20231009 [131]
   org.apache.aries.jax.rs.whiteboard_2.0.0 [66]
   org.eclipse.jetty.servlet_9.4.53.v20231009 [126]
   org.eclipse.jetty.servlet_9.4.53.v20231009 [126]
   com.sun.xml.bind.jaxb-osgi_2.3.8 [42]
   org.openhab.core.model.thing_4.2.0.202405070311 [215]
   org.openhab.core.model.sitemap.runtime_4.2.0.202405070310 [214]
   org.openhab.core.semantics_4.2.0.202405070305 [220]
   org.eclipse.lsp4j_0.22.0.v20240213-2011 [138]
   org.eclipse.lsp4j_0.22.0.v20240213-2011 [138]
   org.eclipse.jetty.http2.client.http_9.4.53.v20231009 [114]
   org.eclipse.jetty.http2.client.http_9.4.53.v20231009 [114]
   org.apache.karaf.shell.ssh_4.4.5 [89]
   org.openhab.core.addon.marketplace_4.2.0.202405070313 [159]
   org.openhab.core.model.rule.ide_4.2.0.202405070316 [207]
   org.apache.sshd.sftp_2.11.0 [96]
   org.apache.karaf.system.core_4.4.5 [90]
   org.openhab.core.model.rule.runtime_4.2.0.202405070316 [208]
   org.apache.karaf.deployer.kar_4.4.5 [79]
   jakarta.validation.jakarta.validation-api_2.0.2 [55]
   org.openhab.core.io.monitor_4.2.0.202405070313 [182]
   org.eclipse.jetty.http2.hpack_9.4.53.v20231009 [116]
   org.eclipse.jetty.http2.hpack_9.4.53.v20231009 [116]
   org.eclipse.jetty.websocket.javax.websocket_9.4.53.v20231009 [133]
   org.eclipse.jetty.websocket.javax.websocket_9.4.53.v20231009 [133]
   com.google.guava_33.0.0.jre [38]
   org.eclipse.jetty.jmx_9.4.53.v20231009 [120]
   org.eclipse.jetty.jmx_9.4.53.v20231009 [120]
   org.eclipse.xtext.xbase_2.34.0.v20240227-0940 [146]
   org.apache.aries.component-dsl.component-dsl_1.2.2 [64]
   org.openhab.core.transform_4.2.0.202405070306 [223]
   org.openhab.core.model.rule_4.2.0.202405070316 [206]
   org.apache.ws.xmlschema.core_2.3.1 [97]
   com.google.guava.failureaccess_1.0.2 [39]
   org.openhab.core.ephemeris_4.2.0.202405070306 [175]
   org.openhab.core.auth.jaas_4.2.0.202405070304 [162]
   org.eclipse.jetty.util.ajax_9.4.53.v20231009 [129]
   org.eclipse.jetty.util.ajax_9.4.53.v20231009 [129]
   org.openhab.core.config.core_4.2.0.202405070305 [169]
   org.openhab.core.automation.rest_4.2.0.202405070313 [168]
   org.openhab.core.io.rest.sitemap_4.2.0.202405070314 [189]
   org.eclipse.xtext_2.34.0.v20240227-0940 [142]
   org.openhab.core.io.console_4.2.0.202405070307 [177]
   org.openhab.core.model.item.runtime_4.2.0.202405070310 [201]
   io.github.classgraph.classgraph_4.8.165 [45]
   org.objectweb.asm.tree_9.6.0 [153]
   org.openhab.core.io.rest.voice_4.2.0.202405070312 [194]
   org.apache.karaf.log.core_4.4.5 [85]
   org.eclipse.jetty.alpn.server_9.4.53.v20231009 [109]
   org.eclipse.jetty.alpn.server_9.4.53.v20231009 [109]
   org.eclipse.jetty.server_9.4.53.v20231009 [125]
   org.eclipse.jetty.server_9.4.53.v20231009 [125]
   org.openhab.core.audio_4.2.0.202405070309 [161]
   org.apache.karaf.config.command_4.4.5 [77]
   org.openhab.core.automation.module.script.rulesupport_4.2.0.202405070314 [167]
   org.apache.sshd.scp_2.11.0 [95]
   org.apache.karaf.event_4.4.5 [81]
   org.apache.servicemix.bundles.saaj-impl_1.4.0.2 [91]
   org.apache.karaf.features.command_4.4.5 [82]
   org.openhab.core.model.thing.ide_4.2.0.202405070312 [216]
   org.apache.karaf.package.core_4.4.5 [86]
   org.eclipse.jetty.websocket.server_9.4.53.v20231009 [135]
   org.eclipse.jetty.websocket.server_9.4.53.v20231009 [135]
   org.apache.cxf.cxf-core_3.6.2 [69]
   org.glassfish.hk2.osgi-resource-locator_1.0.3 [149]
   org.eclipse.jetty.http2.client_9.4.53.v20231009 [113]
   org.eclipse.jetty.http2.client_9.4.53.v20231009 [113]
   org.openhab.core.io.http_4.2.0.202405070301 [179]
   org.apache.sshd.osgi_2.11.0 [94]
   org.ops4j.pax.web.pax-web-extender-whiteboard_8.0.24 [231]
   org.eclipse.jetty.websocket.servlet_9.4.53.v20231009 [136]
   org.eclipse.jetty.websocket.servlet_9.4.53.v20231009 [136]
   org.apache.cxf.cxf-rt-rs-sse_3.6.2 [72]
   org.openhab.core.config.discovery.mdns_4.2.0.202405070313 [173]
   org.openhab.core.io.transport.mdns_4.2.0.202405070312 [195]
   org.openhab.core.config.discovery.addon.ip_4.2.0.202405070309 [252]
   org.openhab.core.config.discovery.addon.upnp_4.2.0.202405070310 [254]
   org.openhab.core.io.transport.serial.rxtx.rfc2217_4.2.0.202405070312 [263]
   org.openhab.core.config.discovery.usbserial_4.2.0.202405070312 [256]
   org.openhab.core.config.discovery.addon.usb_4.2.0.202405070313 [255]
   org.openhab.core.config.discovery.usbserial.linuxsysfs_4.2.0.202405070313 [257]
   org.openhab.core.config.discovery.usbserial.ser2net_4.2.0.202405070313 [258]
   org.openhab.core.config.discovery.addon.mdns_4.2.0.202405070314 [253]
   org.apache.commons.commons-net_3.9.0 [250]
   org.openhab.core.io.transport.serial_4.2.0.202405070309 [261]
   org.openhab.core.config.jupnp_4.2.0.202405070301 [259]
   org.openhab.core.config.serial_4.2.0.202405070314 [260]
   org.openhab.core.io.transport.serial.rxtx_4.2.0.202405070310 [262]
   nrjavaserial_5.2.1.OH1 [249]
   org.jupnp_3.0.1 [251]
   com.sun.jna.platform_5.14.0 [248]
osgi.ee; JRE [1.0.0, 1.1.0] [UNUSED]
osgi.ee; JavaSE/compact1 [1.8.0, 9.0.0, 10.0.0, 11.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0] required by:
   org.eclipse.osgi_3.18.0.v20220516-2155 [0]
   org.osgi.util.function_1.2.0.202109301733 [7]
   org.osgi.util.promise_1.3.0.202212101352 [10]
   org.osgi.service.component_1.5.1.202212101352 [237]
   org.osgi.service.jaxrs_1.0.1.202109301733 [239]
   org.osgi.service.component.annotations_1.5.0.202109301733 [238]
   org.apache.felix.scr_2.2.6 [75]
osgi.ee; JavaSE/compact2 [1.8.0, 9.0.0, 10.0.0, 11.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0] [UNUSED]
osgi.ee; JavaSE/compact3 [1.8.0, 9.0.0, 10.0.0, 11.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0] [UNUSED]

quick status update:

  • Temurin 64 Win11 does not work (similar as Zulu)
  • rollback of Karaf to 4.4.4 did not work as well (have to check if something went wrong)
  • capabilities roughly same as for @J-N-K (sorted all capabilities, missing the failed installs like mapdb, additional Windows finder is there), visible difference is that felix.scr is in the block below compact1, as we see in @jimtng's output

@holgerfriedrich Can you try moving l. 198

processingConfigQueue.set(false);

below the try-catch-block:

        try {
            if (changed) {
                featuresService.refreshFeatures(EnumSet.noneOf(FeaturesService.Option.class));
            }
        } catch (Exception e) {
            logger.error("Failed to refresh bundles after processing config update", e);
        }

        processingConfigQueue.set(false);

In case there are different modifications at the same time, it might be we install new features before the refresh of the old is done. Everthing else looks good IMO.

No, that doesn't work. What I found is that there is a difference in capability namespaces in the BaseRespository on a working system and a non-working system:

Bildschirmfoto 2024-05-09 um 13 27 19 Bildschirmfoto 2024-05-09 um 13 29 12

Resolving of osgi.ee fails because of that. I have no idea how that can happen, though.

I came a bit closer. The difference between both is that the managedBundles contains bundle 0 in the case of a failure, and does not contain bundle 0 if it works fine. The file state.json for the bundle state is in <USERDATA>/cache/org.eclipse.osgi/19/data. Can cou cross-check that in an instalation that shows the error managed / root contains 0 and that working installations miss 0?

Broken install on linux:

"managed":{"root":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263]}

Working on mac:

"managed":{"root":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266]}

@J-N-K confirmed,
broken installation on Windows contains 0,
working on Windows (e.g. w/o 4188/4206/4209) does not contain 0,
working on RPI does not contain 0.
Can we do anything else to support?

btw:
Karaf 4.4.4 seems to be affected as well. I tried reverting the Karaf upgrade on current main branch, it fails as well. Next step to follow up on Karaf 4.4.4/4.4.5 would be to apply 4188/4206/4209 on top of last core commit before Karaf upgrade. - Just to be sure that I did not mess up anything during the revert and proof that 4.4.4 is affected.

btw2:
Currently this issue blocks all further development and the next milestone build. Reverting 4188/4206/4209 on top of current master would also be an intermediate solution for now. I tested this, it seems to work fine - at least on my Windows system. Reverting is nothing I like to do, but maybe we need to go forward with this if we cannot find the root cause the next days.
Reverting would give us some time to bring the change and fix back to main line.

I tracked it down a bit further. It seems that #3934 is the root cause of the issue. The conditional blocks result in issues when the wiring is computed. I'm not sure that is intentional - might be a bug in karaf - but removing these blocks fixes the issue. The drawback is that unnecessary bundles are installed.

I can confirm the fix.
I just installed snapshot 4077 with success and no error.