I updated to version 4.1.0 2 days ago.
Everything has worked well so far.
Now I felt like installing the suggested bindings.
I tried to install the Android TV binding and UPnP.
Both seem to have gone completely wrong.
I didnβt do anything on the side during the installation and gave the system ~10 minutes for the installation.
Now openHAB starts, but the UI crashes after about 1-2 minutes.
The API interface is completely offline, other parts still seem to work in the background, which I can see in the log.
I have already cleared the cache and restarted the entire system several times.
Unfortunately, the UI still crashes.
The log itself shows that OH is still trying to install the binding somehow.
2023-12-27 18:37:50.206 [INFO ] [rketplace.MarketplaceBundleInstaller] - Reinstalling missing marketplace bundle: marketplace:130350
2023-12-27 18:37:50.286 [WARN ] [rketplace.MarketplaceBundleInstaller] - Failed reinstalling add-on from cache
org.openhab.core.addon.marketplace.MarketplaceHandlerException: Cannot install bundle from marketplace cache: Error occurred installing a bundle.
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.installFromCache(MarketplaceBundleInstaller.java:99) ~[?:?]
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.lambda$3(MarketplaceBundleInstaller.java:158) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.ensureCachedBundlesAreInstalled(MarketplaceBundleInstaller.java:155) ~[?:?]
at org.openhab.core.addon.marketplace.internal.community.CommunityBundleAddonHandler.lambda$0(CommunityBundleAddonHandler.java:58) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: org.osgi.framework.BundleException: Error occurred installing a bundle.
at org.eclipse.osgi.storage.Storage.install(Storage.java:756) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:182) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.installFromCache(MarketplaceBundleInstaller.java:90) ~[?:?]
... 21 more
Caused by: java.util.zip.ZipException: Exception in opening zip file: /var/lib/openhab/cache/org.eclipse.osgi/358/0/bundleFile
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:356) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.doOpen(ZipBundleFile.java:51) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.CloseableBundleFile.internalOpen(CloseableBundleFile.java:140) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.CloseableBundleFile.open(CloseableBundleFile.java:422) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.Storage.install(Storage.java:720) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:182) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.installFromCache(MarketplaceBundleInstaller.java:90) ~[?:?]
... 21 more
Caused by: java.util.zip.ZipException: zip END header not found
at java.util.zip.ZipFile$Source.findEND(ZipFile.java:1633) ~[?:?]
at java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1641) ~[?:?]
at java.util.zip.ZipFile$Source.<init>(ZipFile.java:1479) ~[?:?]
at java.util.zip.ZipFile$Source.get(ZipFile.java:1441) ~[?:?]
at java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:718) ~[?:?]
at java.util.zip.ZipFile.<init>(ZipFile.java:252) ~[?:?]
at java.util.zip.ZipFile.<init>(ZipFile.java:181) ~[?:?]
at java.util.zip.ZipFile.<init>(ZipFile.java:195) ~[?:?]
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:342) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.doOpen(ZipBundleFile.java:51) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.CloseableBundleFile.internalOpen(CloseableBundleFile.java:140) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.bundlefile.CloseableBundleFile.open(CloseableBundleFile.java:422) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.storage.Storage.install(Storage.java:720) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:182) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.openhab.core.addon.marketplace.MarketplaceBundleInstaller.installFromCache(MarketplaceBundleInstaller.java:90) ~[?:?]
... 21 more
The crash itself then looks like this:
2023-12-27 18:41:01.207 [WARN ] [ROOT ] - bundle org.openhab.ui.habot:4.1.0 (347) BundleComponentActivator is not active; not scheduling Async Deactivate: org.openhab.ui.habot.notification.internal.WebPushNotificationModuleHandlerFactory id: 2
2023-12-27 18:41:01.223 [INFO ] [hab.ui.habot.tile.internal.HABotTile] - Stopped HABot
2023-12-27 18:41:01.325 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2023-12-27 18:41:01.689 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed to refresh bundles after processing config update
java.lang.IllegalStateException: Resource has no uri
at org.apache.karaf.features.internal.service.Deployer.getBundleInputStream(Deployer.java:1631) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:904) ~[?:?]
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(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:840) [?:?]
How do I get rid of the binding-rest completely?
Raspberry Pi 4B
openjdk version β17.0.9β 2023-10-17 LTS | OpenJDK Runtime Environment Zulu17.46+19-CA (build 17.0.9+8-LTS) | OpenJDK Server VM Zulu17.46+19-CA (build 17.0.9+8-LTS, mixed mode)
Currently OH has the following behavior:
When starting, it spams these error messages in the log: 2023-12-27 20:00:50.513 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 2035ec55-8302-42d0-b890-e97fe22ddab7
I also found this error:
2023-12-27 20:00:00.500 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /rest/events/states
java.lang.NullPointerException: Cannot invoke "org.apache.cxf.transport.MessageObserver.onMessage(org.apache.cxf.message.Message)" because "this.incomingObserver" is null
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) ~[?:?]
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) ~[?:?]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) ~[?:?]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) ~[?:?]
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:225) ~[?:?]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:304) ~[?:?]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:222) ~[?:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:497) ~[bundleFile:4.0.4]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:279) ~[?:?]
at org.ops4j.pax.web.service.spi.servlet.OsgiInitializedServlet.service(OsgiInitializedServlet.java:102) ~[?:?]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) ~[?:?]
at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656) ~[?:?]
at org.ops4j.pax.web.service.spi.servlet.OsgiFilterChain.doFilter(OsgiFilterChain.java:100) ~[?:?]
at org.ops4j.pax.web.service.jetty.internal.PaxWebServletHandler.doHandle(PaxWebServletHandler.java:320) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) ~[?:?]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) ~[?:?]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234) ~[bundleFile:9.4.52.v20230823]
at org.ops4j.pax.web.service.jetty.internal.PrioritizedHandlerCollection.handle(PrioritizedHandlerCollection.java:96) ~[?:?]
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) ~[bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) [bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) [bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) [bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) [bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) [bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) [bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) [bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) [bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) [bundleFile:9.4.52.v20230823]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) [bundleFile:9.4.52.v20230823]
at java.lang.Thread.run(Thread.java:840) [?:?]
The marketplace folder did not contain any of these bindings either.
It only contained the binding for the Signal app and a Yamaha AV, which had previously worked.
After the restart, the folder has not yet been recreated.
In general does not look bad. I wonder why there are so many bundles in βResolvedβ state. Is that the first start after you deleted the marketplace folder? If so, please re-start. If not, try to start some of the bundles start <bundleId>. The bundle id is the number in the first column.
Yes, I restarted OH after deleting it.
I stop OH, deletee the folder, start OH.
I also cleared the cache again after deleting.
After two more restarts, OH seems to have recovered.
Currently, the UI has been accessible again for several minutes and there are no more error messages in the log.
There are only these lines, which still give me a bad feeling:
2023-12-27 20:48:29.556 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0dea2bfa1:Main_Zone' are missing in the respective registry for more than 120s. In case it does not happen immediately after an upgrade, it should be fixed in the binding.
2023-12-27 20:48:29.567 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0dea2bfa1:Main_Zone': {thing/channel=Type description yamahareceiver:namedpresetMain_Zone for yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0dea2bfa1:Main_Zone:playback_channels#preset not found, although we checked the presence before.}
2023-12-27 20:48:29.689 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0dea2bfa1:Zone_2' are missing in the respective registry for more than 120s. In case it does not happen immediately after an upgrade, it should be fixed in the binding.
2023-12-27 20:48:29.694 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0dea2bfa1:Zone_2': {thing/channel=Type description yamahareceiver:availableinputZone_2 for yamahareceiver:zone:5f9ec1b3_ed59_1900_4530_00a0dea2bfa1:Zone_2:zone_channels#input not found, although we checked the presence before.}
2023-12-27 20:48:38.363 [WARN ] [apache.cxf.jaxrs.utils.ResourceUtils] - No resource methods have been found for resource class javax.ws.rs.core.Response
2023-12-27 20:48:38.369 [WARN ] [apache.cxf.jaxrs.utils.ResourceUtils] - No resource methods have been found for resource class javax.ws.rs.core.Response
2023-12-27 20:48:43.503 [WARN ] [apache.cxf.jaxrs.utils.ResourceUtils] - No resource methods have been found for resource class javax.ws.rs.core.Response
2023-12-27 20:48:43.509 [WARN ] [apache.cxf.jaxrs.utils.ResourceUtils] - No resource methods have been found for resource class javax.ws.rs.core.Response
2023-12-27 20:49:10.592 [WARN ] [apache.cxf.jaxrs.utils.ResourceUtils] - No resource methods have been found for resource class javax.ws.rs.core.Response
2023-12-27 20:49:10.603 [WARN ] [apache.cxf.jaxrs.utils.ResourceUtils] - No resource methods have been found for resource class javax.ws.rs.core.Response
2023-12-27 20:52:38.307 [WARN ] [apache.cxf.jaxrs.utils.ResourceUtils] - No resource methods have been found for resource class javax.ws.rs.core.Response
2023-12-27 20:52:38.312 [WARN ] [apache.cxf.jaxrs.utils.ResourceUtils] - No resource methods have been found for resource class javax.ws.rs.core.Response
openhab> start 251
Error executing command: Error executing command on bundles:
Error starting bundle 251: Invalid operation on a fragment. osgi.identity; type="osgi.fragment"; version:Version="1.2.18"; osgi.identity="com.github.jnr.jffi.native" [id=251]
I also sat down and installed a fresh OH instance on a Proxmox host.
I wanted to import a backup there, which is always created automatically.
Backup is from 22.12.2023.
The import of the backup seems to have worked well, only OH cannot be started
I tried to install the UPNP binding again and OH was broken again.
Apparently it is currently not compatible with my OH instance.
The UI is now stuck in a boot loop the whole time.
It is briefly available, crashes and restarts.
You can find this in the log:
2023-12-27 21:41:56.697 [WARN ] [ueemulation.internal.upnp.UpnpServer] - Upnp server: Address test failed
java.util.concurrent.CompletionException: java.lang.RuntimeException: java.lang.ClassNotFoundException
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) [?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) [?:?]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:649) [?:?]
at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483) [?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:?]
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:64) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:48) ~[?:?]
at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:35) ~[?:?]
at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:43) ~[?:?]
at org.apache.cxf.jaxrs.client.spec.ClientImpl.target(ClientImpl.java:120) ~[?:?]
at org.openhab.io.hueemulation.internal.upnp.UpnpServer.performAddressTest(UpnpServer.java:252) ~[?:?]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
... 6 more
Caused by: java.lang.ClassNotFoundException
at javax.ws.rs.ext.RuntimeDelegateFinder.newInstance(RuntimeDelegateFinder.java:120) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegateFinder.find(RuntimeDelegateFinder.java:96) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:58) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:48) ~[?:?]
at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:35) ~[?:?]
at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:43) ~[?:?]
at org.apache.cxf.jaxrs.client.spec.ClientImpl.target(ClientImpl.java:120) ~[?:?]
at org.openhab.io.hueemulation.internal.upnp.UpnpServer.performAddressTest(UpnpServer.java:252) ~[?:?]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
... 6 more
Caused by: java.lang.InstantiationException
at jdk.internal.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?]
at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) ~[?:?]
at java.lang.Class.newInstance(Class.java:645) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegateFinder.newInstance(RuntimeDelegateFinder.java:116) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegateFinder.find(RuntimeDelegateFinder.java:96) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:58) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:48) ~[?:?]
at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:35) ~[?:?]
at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:43) ~[?:?]
at org.apache.cxf.jaxrs.client.spec.ClientImpl.target(ClientImpl.java:120) ~[?:?]
at org.openhab.io.hueemulation.internal.upnp.UpnpServer.performAddressTest(UpnpServer.java:252) ~[?:?]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
... 6 more
The backup problem has also been solved, I installed Java21 in a hurry.
OH wonβt start with it.
It only works with Java17.
Update 2:
In my test VM with my backup, I was able to reproduce the problem.
I installed OH 4.1.0, imported the backup and restarted the server once.
OH starts without any problems.
A binding installed (e.g. AVM) β Broken.
2023-12-27 22:22:23.475 [WARN ] [apache.cxf.jaxrs.utils.ResourceUtils] - No resource methods have been found for resource class javax.ws.rs.core.Response
2023-12-27 22:22:23.476 [WARN ] [apache.cxf.jaxrs.utils.ResourceUtils] - No resource methods have been found for resource class javax.ws.rs.core.Response
2023-12-27 22:22:24.506 [WARN ] [rd.internal.AriesJaxrsServiceRuntime] - Application CachingServiceReference {
cachedProperties={osgi.jaxrs.application.select=null (cached), osgi.jaxrs.application.base=/api, service.id=2280, application.ready.service.filter=null (cached), objectClass=[javax.ws.rs.core.Application], service.scope=singleton, osgi.jaxrs.name=null (cached), osgi.jaxrs.extension.select=null (cached), osgi.http.whiteboard.context.select=null (cached), osgi.jaxrs.whiteboard.target=null (cached), service.bundleid=343}
serviceReference={javax.ws.rs.core.Application}={osgi.jaxrs.application.base=/api, service.id=2280, service.bundleid=343, service.scope=singleton}
} is registered with error
2023-12-27 22:22:24.506 [INFO ] [ulation.internal.HueEmulationService] - Hue Emulation service available under /api
2023-12-27 22:22:24.508 [WARN ] [rd.internal.AriesJaxrsServiceRuntime] - Errored application CachingServiceReference {
cachedProperties={osgi.jaxrs.application.select=null (cached), osgi.jaxrs.application.base=/api, service.id=2280, application.ready.service.filter=null (cached), objectClass=[javax.ws.rs.core.Application], service.scope=singleton, osgi.jaxrs.name=null (cached), osgi.jaxrs.extension.select=null (cached), osgi.http.whiteboard.context.select=null (cached), osgi.jaxrs.whiteboard.target=null (cached), service.bundleid=343}
serviceReference={javax.ws.rs.core.Application}={osgi.jaxrs.application.base=/api, service.id=2280, service.bundleid=343, service.scope=singleton}
} is gone
2023-12-27 22:22:24.517 [WARN ] [ueemulation.internal.upnp.UpnpServer] - Upnp server: Address test failed
java.util.concurrent.CompletionException: java.lang.RuntimeException: java.lang.ClassNotFoundException
at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) [?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) [?:?]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source) [?:?]
at java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source) [?:?]
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) [?:?]
at java.util.concurrent.ForkJoinPool.scan(Unknown Source) [?:?]
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:?]
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:64) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:48) ~[?:?]
at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:35) ~[?:?]
at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:43) ~[?:?]
at org.apache.cxf.jaxrs.client.spec.ClientImpl.target(ClientImpl.java:120) ~[?:?]
at org.openhab.io.hueemulation.internal.upnp.UpnpServer.performAddressTest(UpnpServer.java:252) ~[?:?]
... 7 more
Caused by: java.lang.ClassNotFoundException
at javax.ws.rs.ext.RuntimeDelegateFinder.newInstance(RuntimeDelegateFinder.java:120) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegateFinder.find(RuntimeDelegateFinder.java:96) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:58) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:48) ~[?:?]
at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:35) ~[?:?]
at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:43) ~[?:?]
at org.apache.cxf.jaxrs.client.spec.ClientImpl.target(ClientImpl.java:120) ~[?:?]
at org.openhab.io.hueemulation.internal.upnp.UpnpServer.performAddressTest(UpnpServer.java:252) ~[?:?]
... 7 more
Caused by: java.lang.InstantiationException
at jdk.internal.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source) ~[?:?]
at java.lang.reflect.ReflectAccess.newInstance(Unknown Source) ~[?:?]
at jdk.internal.reflect.ReflectionFactory.newInstance(Unknown Source) ~[?:?]
at java.lang.Class.newInstance(Unknown Source) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegateFinder.newInstance(RuntimeDelegateFinder.java:116) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegateFinder.find(RuntimeDelegateFinder.java:96) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:58) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:48) ~[?:?]
at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:35) ~[?:?]
at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:43) ~[?:?]
at org.apache.cxf.jaxrs.client.spec.ClientImpl.target(ClientImpl.java:120) ~[?:?]
at org.openhab.io.hueemulation.internal.upnp.UpnpServer.performAddressTest(UpnpServer.java:252) ~[?:?]
... 7 more
2023-12-27 22:22:24.539 [INFO ] [ulation.internal.HueEmulationService] - Hue Emulation service available under /api
2023-12-27 22:22:24.563 [INFO ] [ulation.internal.HueEmulationService] - Hue Emulation service available under /api
2023-12-27 22:22:24.568 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Stopped HABPanel
2023-12-27 22:22:24.579 [WARN ] [ROOT ] - bundle org.openhab.ui.habot:4.1.0 (349) BundleComponentActivator is not active; not scheduling Async Deactivate: org.openhab.ui.habot.notification.internal.WebPushNotificationModuleHandlerFactory id: 20
2023-12-27 22:22:24.580 [INFO ] [hab.ui.habot.tile.internal.HABotTile] - Stopped HABot
2023-12-27 22:22:24.586 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2023-12-27 22:22:24.605 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed to refresh bundles after processing config update
java.lang.IllegalStateException: Resource has no uri
at org.apache.karaf.features.internal.service.Deployer.getBundleInputStream(Deployer.java:1631) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:904) ~[?:?]
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) [?:?]
The following system is used:
Proxmox Host
LXC Container
Debian 12
Java openjdk version β17.0.9β 2023-10-17 LTS | OpenJDK Runtime Environment Zulu17.46+19-CA (build 17.0.9+8-LTS) | OpenJDK 64-Bit Server VM Zulu17.46+19-CA (build 17.0.9+8-LTS, mixed mode, sharing)
I have this issue as well. When installing a binding from the marketplace, the UI crashes shortly after and the βopenHAB is offlineβ screen is displayed. When restarting OpenHAB, the UI works for a minute or so before crashing again. The log says that the addon installation failed and then various UIs and the OpenHAB cloud connection mysteriously stop.
2024-02-11 17:41:56.277 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-androidtv': Resource has no uri
2024-02-11 17:42:04.471 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Stopped HABPanel
2024-02-11 17:42:04.564 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2024-02-11 17:42:04.610 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2024-02-11 17:42:04.633 [WARN ] [io.openhabcloud.internal.CloudClient] - Socket.IO disconnected: io client disconnect
2024-02-11 17:42:04.635 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 5a...ce, base URL = http://localhost:8080)
2024-02-11 17:42:04.882 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed to refresh bundles after processing config update
java.lang.IllegalStateException: Resource has no uri
at org.apache.karaf.features.internal.service.Deployer.getBundleInputStream(Deployer.java:1631) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:904) ~[?:?]
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(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:840) [?:?]
I can get the UI working again by editing /var/lib/openhab4/config/org/openhab/addons.config, removing the offending addons from the binding= line, and restarting OpenHAB. However, I have not found out yet how to install the addons without breaking the UI once again. I have tried androidtv, wled and tasmotaplug and all of them caused this problem.
Iβm running OpenHAB 4.1.1 from the AUR on Arch Linux ARM. I just upgraded from OpenHAB 3.4.5.
I have now reinstalled openHAB.
I canβt figure out the Java messages and openHAB just has to run for some things, so I took the βeasyβ way.
It took a bit of effort, but now it works again.
Addons can now also be installed again without any problems.