Error message on startup - new install

  • Platform information:

    • Hardware:
      Processor Intel(R) Core™ i7-9750H CPU @ 2.60GHz 2.59 GHz
      Installed RAM 16.0 GB (15.7 GB usable)
      System type 64-bit operating system, x64-based processor

    • OS:
      Windows 11 Home Version 22H2
      OS build 22621.1105

    • Java Runtime Environment:
      openjdk 11.0.18 2023-01-17 LTS
      OpenJDK Runtime Environment Zulu11.62+17-CA (build 11.0.18+10-LTS)
      OpenJDK 64-Bit Server VM Zulu11.62+17-CA (build 11.0.18+10-LTS, mixed mode)

    • openHAB version:
      3.4.2. Release Build

  • Issue of the topic: This is a new install and after running start.bat OpenHAB appears to start up but after a couple of seconds produces the errors shown below. I have know idea where to start. Any help would be very welcome.

Thanks Mark

openhab> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-runtime-base; type=karaf.feature; version=“[3.4.2,3.4.2]”; filter:=“(&(osgi.identity=openhab-runtime-base)(type=karaf.feature)(version>=3.4.2)(version<=3.4.2))” [caused by: Unable to resolve openhab-runtime-base/3.4.2: missing requirement [openhab-runtime-base/3.4.2] osgi.identity; osgi.identity=openhab-core-io-rest-swagger; type=karaf.feature [caused by: Unable to resolve openhab-core-io-rest-swagger/3.4.2: missing requirement [openhab-core-io-rest-swagger/3.4.2] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.4.2: missing requirement [openhab-core-base/3.4.2] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version=“[3.4.2,3.4.2]”; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.4.2: missing requirement [org.openhab.core.automation/3.4.2] osgi.wiring.package; filter:=“(&(osgi.wiring.package=org.openhab.core)(version>=3.4.0)(!(version>=4.0.0)))” [caused by: Unable to resolve org.openhab.core/3.4.2: missing requirement [org.openhab.core/3.4.2] osgi.ee; filter:=“(&(osgi.ee=JavaSE)(version=11))”]]]]]
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:257)
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 openhab-runtime-base/3.4.2: missing requirement [openhab-runtime-base/3.4.2] osgi.identity; osgi.identity=openhab-core-io-rest-swagger; type=karaf.feature [caused by: Unable to resolve openhab-core-io-rest-swagger/3.4.2: missing requirement [openhab-core-io-rest-swagger/3.4.2] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.4.2: missing requirement [openhab-core-base/3.4.2] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version=“[3.4.2,3.4.2]”; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.4.2: missing requirement [org.openhab.core.automation/3.4.2] osgi.wiring.package; filter:=“(&(osgi.wiring.package=org.openhab.core)(version>=3.4.0)(!(version>=4.0.0)))” [caused by: Unable to resolve org.openhab.core/3.4.2: missing requirement [org.openhab.core/3.4.2] osgi.ee; filter:=“(&(osgi.ee=JavaSE)(version=11))”]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
… 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-io-rest-swagger/3.4.2: missing requirement [openhab-core-io-rest-swagger/3.4.2] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/3.4.2: missing requirement [openhab-core-base/3.4.2] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version=“[3.4.2,3.4.2]”; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.4.2: missing requirement [org.openhab.core.automation/3.4.2] osgi.wiring.package; filter:=“(&(osgi.wiring.package=org.openhab.core)(version>=3.4.0)(!(version>=4.0.0)))” [caused by: Unable to resolve org.openhab.core/3.4.2: missing requirement [org.openhab.core/3.4.2] osgi.ee; filter:=“(&(osgi.ee=JavaSE)(version=11))”]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
… 13 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve openhab-core-base/3.4.2: missing requirement [openhab-core-base/3.4.2] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version=“[3.4.2,3.4.2]”; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/3.4.2: missing requirement [org.openhab.core.automation/3.4.2] osgi.wiring.package; filter:=“(&(osgi.wiring.package=org.openhab.core)(version>=3.4.0)(!(version>=4.0.0)))” [caused by: Unable to resolve org.openhab.core/3.4.2: missing requirement [org.openhab.core/3.4.2] osgi.ee; filter:=“(&(osgi.ee=JavaSE)(version=11))”]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
… 14 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core.automation/3.4.2: missing requirement [org.openhab.core.automation/3.4.2] osgi.wiring.package; filter:=“(&(osgi.wiring.package=org.openhab.core)(version>=3.4.0)(!(version>=4.0.0)))” [caused by: Unable to resolve org.openhab.core/3.4.2: missing requirement [org.openhab.core/3.4.2] osgi.ee; filter:=“(&(osgi.ee=JavaSE)(version=11))”]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
… 15 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.openhab.core/3.4.2: missing requirement [org.openhab.core/3.4.2] osgi.ee; filter:=“(&(osgi.ee=JavaSE)(version=11))”
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
… 16 more

Are you sure you use Java 11?

Thanks for the reply.
As far as I can see I am. This is the result of “java --version” command:

PS C:\Users\mark> java --version
openjdk 11.0.18 2023-01-17 LTS
OpenJDK Runtime Environment Zulu11.62+17-CA (build 11.0.18+10-LTS)
OpenJDK 64-Bit Server VM Zulu11.62+17-CA (build 11.0.18+10-LTS, mixed mode)
PS C:\Users\mark>