Closed mhilbush closed 8 years ago
All cases that you mention refer to the Z-Wave binding. Does the same problem occur with e.g. any of the ESH bindings or anything "simpler" than Z-Wave?
I experienced it with zwave and systeminfo. I'm unable to provide specific details on systeminfo because systeminfo was not in debugging mode at the time.
In the forum topics cited above, others have commented that they've seen similar behavior with other bindings, including as knx, rfxcom, meteostick, max, and ntp. I referenced those in this issue, but I don't have any specific log detail, such as what I provided for zwave.
Yes - This is the same issue that I periodically have with the meteostick binding. There are also reports on the MAX binding and RFXCOM binding and Astro. I wouldn’t like to say if it’s all ‘exactly’ the same as there aren’t logs for all these instances.
I don’t believe this is anything to do with zwave - it started happening with no changes to the binding - of course, I could be wrong...
Does this only happen on Karaf or did anyone see this happening when being started from within the IDE?
I’ve personally never seen any of these issues in the IDE.
@kaikreuzer installed today complete clean fresh version. Indeed stalling issue still occurs, at least with the MAX! binding.
Discovery services work fine, but seems like something goes haywire with the initialize method. I think it may be at the time the status update is done (as the thing goes never online) I also see that once the issue occurs, the logout command in karaf goes very slow.
openhab> log:tail
19:47:03.569 [DEBUG] [org.openhab.binding.max ] - BundleEvent INSTALLED - org.openhab.binding.max
19:47:03.942 [DEBUG] [org.openhab.binding.max ] - BundleEvent RESOLVED - org.openhab.binding.max
19:47:03.955 [DEBUG] [org.openhab.binding.max ] - BundleEvent STARTING - org.openhab.binding.max
19:47:03.973 [DEBUG] [org.openhab.binding.max ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={component.name=org.ope nhab.binding.max.internal.discovery, component.id=7, service.id=117, service.bundleid=190, service.scope=bundle} - org.openhab.binding.max
19:47:04.008 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - Start MAX! Cube background discovery
19:47:04.014 [DEBUG] [org.openhab.binding.max ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=or g.openhab.binding.max.internal.factory.MaxCubeHandlerFactory, component.id=8, service.id=118, service.bundleid=190, service.scope=bundle} - org.openhab.binding.max
19:47:04.021 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - Run MAX! Cube discovery
19:47:04.078 [DEBUG] [org.openhab.binding.max ] - BundleEvent STARTED - org.openhab.binding.max
19:47:04.783 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - MAX! Cube found on network
19:47:04.790 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - Found at : 192.168.3.9
19:47:04.793 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - Serial : KEQ0565026
19:47:04.802 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - RF Address: 0b5951
19:47:04.812 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - Firmware : 01.13
19:47:04.857 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
19:47:04.928 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - MAX! Cube found on network
19:47:04.929 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - Found at : 192.168.3.191
19:47:04.930 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - Serial : KEQ1069808
19:47:04.931 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - RF Address: 0d9763
19:47:04.932 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - Firmware : 01.13
19:47:09.992 [DEBUG] [nal.discovery.MaxCubeBridgeDiscovery] - Done receiving discovery messages.
19:47:20.155 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'max:bridge:KEQ1069808' to inbox.
19:47:20.595 [DEBUG] [org.openhab.binding.max ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=210, servic e.bundleid=190, service.scope=singleton} - org.openhab.binding.max
19:47:20.607 [DEBUG] [org.openhab.binding.max ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandler}={thing.type=max:bridge, t hing.id=max:bridge:KEQ1069808, service.id=211, service.bundleid=190, service.scope=singleton} - org.openhab.binding.max
19:47:20.648 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Initializing MAX! Cube bridge handler.
19:47:20.700 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Cube IP 192.168.3.191.
19:47:20.702 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Port 62910.
19:47:20.705 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - RefreshInterval 30.
19:47:20.708 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Exclusive mode true.
19:47:20.710 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Max Requests 1000.
19:47:24.833 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /ui
19:47:25.145 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
19:47:25.349 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
19:47:25.382 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
19:48:08.588 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update received
19:48:08.591 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update rfAddress to 0d9763
19:48:08.594 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update serialNumber to KEQ1069808
19:48:08.599 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update action-cubeReset to -1
19:48:08.603 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update action-cubeReboot to -1
19:48:08.607 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update ntpServer1 to ntp.homematic.com
19:48:08.652 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Handler disposed.
19:48:08.653 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Initializing MAX! Cube bridge handler.
19:48:08.655 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Cube IP 192.168.3.191.
19:48:08.655 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Port 62910.
19:48:08.656 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - RefreshInterval 30.
19:48:08.657 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Exclusive mode true.
19:48:08.658 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Max Requests 1000.
19:48:13.665 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occured while calling thing updated at ThingHandler 'org.openhab.binding.max.internal.handler.Max CubeBridgeHandler@5a02b: null
java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)[:1.8.0_91]
at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:186)
at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:79)
at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:63)
at org.eclipse.smarthome.core.thing.internal.ThingManager.thingUpdated(ThingManager.java:538)
at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyTrackers(ThingRegistryImpl.java:218)
at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyListenersAboutUpdatedElement(ThingRegistryImpl.java:141)
at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyListenersAboutUpdatedElement(ThingRegistryImpl.java:1)
at org.eclipse.smarthome.core.common.registry.AbstractRegistry.updated(AbstractRegistry.java:102)
at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListeners(AbstractProvider.java:57)
at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListenersAboutUpdatedElement(AbstractProvider.java:82)
at org.eclipse.smarthome.core.common.registry.AbstractManagedProvider.update(AbstractManagedProvider.java:134)
at org.eclipse.smarthome.io.rest.core.thing.ThingResource.update(ThingResource.java:399)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[152:org.glassfish.j ersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[152:org.glassfish.jersey. core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[152:org.glassfish.jersey .core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)[1 52:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[152:org.glassfish.jerse y.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[149:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[149:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[149:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[149:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[149:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[12:com.eclipsesource.jaxrs.publisher:5.3.1.201602281 253]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[80:org.eclipse.jetty.servlet:9.2.14.v20151106]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[80:org.eclipse.jetty.servlet:9.2.14.v20151106]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[165:org.ops4j.pax.web.pax-web-jetty:4.2.4]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[78:org.eclipse.jetty.security:9.2.14.v20151106]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[165:org.ops4j.pax.web.pax-web-jetty:4.2.4]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[80:org.eclipse.jetty.servlet:9.2.14.v20151106]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[165:org.ops4j.pax.web.pax-web-jetty:4.2.4]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.Server.handle(Server.java:499)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[71:org.eclipse.jetty.io:9.2.14.v20151106]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[82:org.eclipse.jetty.util:9.2.14.v20151106]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[82:org.eclipse.jetty.util:9.2.14.v20151106]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
19:49:28.047 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Connection timed out on 192.168.3.191 port 62910
19:49:28.063 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Command queued id 0 (Cube(KEQ1069808)-F_Command:Update NTP info).
19:49:28.065 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update port to 62910
19:49:28.066 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Command 0 (Cube(KEQ1069808)-F_Command:Update NTP info) sent to MAX! Cube at IP: 192.168.3.191
19:49:28.073 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update refreshInterval to 30
19:49:28.075 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update ntpServer2 to ntp.homematic.com
19:50:52.896 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update received
19:50:52.906 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update rfAddress to 0d9763
19:50:52.908 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update serialNumber to KEQ1069808
19:50:52.912 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update action-cubeReset to -1
19:50:52.914 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update action-cubeReboot to -1
19:50:52.917 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - MAX! Cube max:bridge: Configuration update ntpServer1 to ntp.homematic.com
19:50:52.945 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Handler disposed.
19:50:52.947 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Initializing MAX! Cube bridge handler.
19:50:52.950 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Cube IP 192.168.3.191.
19:50:52.952 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Port 62910.
19:50:52.953 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - RefreshInterval 30.
19:50:52.955 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Exclusive mode true.
19:50:52.956 [DEBUG] [nternal.handler.MaxCubeBridgeHandler] - Max Requests 1000.
19:50:57.950 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occured while calling thing updated at ThingHandler 'org.openhab.binding.max.internal.handler.Max CubeBridgeHandler@5a02b: null
java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)[:1.8.0_91]
at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:186)
at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:79)
at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:63)
at org.eclipse.smarthome.core.thing.internal.ThingManager.thingUpdated(ThingManager.java:538)
at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyTrackers(ThingRegistryImpl.java:218)
at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyListenersAboutUpdatedElement(ThingRegistryImpl.java:141)
at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyListenersAboutUpdatedElement(ThingRegistryImpl.java:1)
at org.eclipse.smarthome.core.common.registry.AbstractRegistry.updated(AbstractRegistry.java:102)
at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListeners(AbstractProvider.java:57)
at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListenersAboutUpdatedElement(AbstractProvider.java:82)
at org.eclipse.smarthome.core.common.registry.AbstractManagedProvider.update(AbstractManagedProvider.java:134)
at org.eclipse.smarthome.io.rest.core.thing.ThingResource.update(ThingResource.java:399)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[152:org.glassfish.j ersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[152:org.glassfish.jersey. core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[152:org.glassfish.jersey .core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)[1 52:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[152:org.glassfish.jerse y.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[151:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[152:org.glassfish.jersey.core.jersey-server:2.22.2]
at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[149:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[149:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[149:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[149:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[149:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[12:com.eclipsesource.jaxrs.publisher:5.3.1.201602281 253]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[80:org.eclipse.jetty.servlet:9.2.14.v20151106]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[80:org.eclipse.jetty.servlet:9.2.14.v20151106]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[165:org.ops4j.pax.web.pax-web-jetty:4.2.4]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[78:org.eclipse.jetty.security:9.2.14.v20151106]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[165:org.ops4j.pax.web.pax-web-jetty:4.2.4]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[80:org.eclipse.jetty.servlet:9.2.14.v20151106]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[165:org.ops4j.pax.web.pax-web-jetty:4.2.4]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.Server.handle(Server.java:499)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[79:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[71:org.eclipse.jetty.io:9.2.14.v20151106]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[82:org.eclipse.jetty.util:9.2.14.v20151106]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[82:org.eclipse.jetty.util:9.2.14.v20151106]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
btw, I can also confirm that in the IDE this issue does not happen
Guys, I have just installed snapshot number 402 and have now restarted 6 times in a row without problems
https://community.openhab.org/t/binding-not-starting-consistently-since-6-19-build/11741/49
Please let me know if there is anything I can provide to help track down the problem.
I am using Eclipse SmartHome based distributions myself that differ from openHAB. So I am willing to do some tests if I can reproduce it there, too.
Is there any scenario that should be tested that triggers the failure very frequently? Can I use Eclipse SmartHome bindings e.g. Sonos (hardare for this binding available), YahooWeather or NTP? I assume I can also add the Z-Wave binding to the runtime if an USB stick without devices is enough to test it.
All, good news! I think I have found the issue - it had been introduced by https://github.com/eclipse/smarthome/pull/1419.
Will work now on a fix and provide you an update soon.
All, good news! I think I have found the issue - it had been introduced by #1847.
As I am very interested in, could you please fix the reference?
Will work now on a fix and provide you an update soon.
Thanks
As I am very interested in, could you please fix the reference?
It is a recursive bug ;-) Fixed the link!
All, please have a look at #1856 - I hope it solves the issue once and for all!
Unfortunately, #1856 does not fully solve the issue yet :-( I wonder, why I only ever notice it on the officially build OH distro and never on my local test builds before...? Anyhow, I just have this in my log, which leaves the Things in uninitialized status:
14:37:05.286 [DEBUG] [ig.xml.osgi.XmlDocumentBundleTracker] - Reading the XML document '/ESH-INF/thing/fibaro_fgs212_0_0.xml' in module 'org.openhab.binding.zwave'...
14:37:05.288 [DEBUG] [ig.xml.osgi.XmlDocumentBundleTracker] - Reading the XML document '/ESH-INF/thing/popp_005107_0_0.xml' in module 'org.openhab.binding.zwave'...
14:37:05.289 [DEBUG] [ig.xml.osgi.XmlDocumentBundleTracker] - Reading the XML document '/ESH-INF/thing/yale_yrd210_0_0.xml' in module 'org.openhab.binding.zwave'...
14:37:05.312 [DEBUG] [ome.core.thing.internal.ThingManager] - 'org.openhab.binding.zwave' still vetoed by '[org.eclipse.smarthome.config.xml.osgi.XmlDocumentBundleTracker$1@445ff462(/ESH-INF/thing/)]'
14:37:05.313 [DEBUG] [ome.core.thing.internal.ThingManager] - 'org.openhab.binding.zwave' queued '[org.openhab.binding.zwave.handler.ZWaveThingHandler@6f00219f, org.openhab.binding.zwave.handler.ZWaveSerialHandler@2a02a21b]'
@kaikreuzer @maggu2810 @cdjackson I was away on holidays, just upgraded the runtime here, and ran in the same problems. My findings are:
[ome.core.thing.internal.ThingManager] - Meta-data of bundle 'org.openhab.binding.systeminfo' is not fully loaded ([org.eclipse.smarthome.config.xml.osgi.XmlDocumentBundleTracker$1@4dd96849(/ESH-INF/thing/), org.eclipse.smarthome.config.xml.osgi.XmlDocumentBundleTracker$1@779b2abf(/ESH-INF/config/), org.eclipse.smarthome.config.xml.osgi.XmlDocumentBundleTracker$1@3e3645fd(/ESH-INF/binding/)]), deferring handler initialization for thing 'systeminfo:computer:work'
after which the thing is either initialised, or either not. It is random behaviour, and seems to be linked to a timing issue (e.g. workload issue). I do have a lot of bindings, and some with '00's of Things. They tend to take a while to get processed, and have an effect on the overall environment
2016-08-23 21:06:20.178 [DEBUG] [ome.core.thing.internal.ThingManager] - 'org.openhab.binding.systeminfo' still vetoed by '[org.eclipse.smarthome.config.xml.osgi.XmlDocumentBundleTracker$1@4dd96849(/ESH-INF/thing/)]'
2016-08-23 21:06:20.183 [DEBUG] [ome.core.thing.internal.ThingManager] - 'org.openhab.binding.systeminfo' queued '[org.openhab.binding.systeminfo.handler.SysteminfoHandler@1ea54d9d, org.openhab.binding.systeminfo.handler.SysteminfoHandler@62b1f856]'
2016-08-23 21:06:20.183 [DEBUG] [ome.core.thing.internal.ThingManager] - 'org.openhab.binding.systeminfo' queued '[org.openhab.binding.systeminfo.handler.SysteminfoHandler@1ea54d9d, org.openhab.binding.systeminfo.handler.SysteminfoHandler@62b1f856]'
and then life goes on normally.
@kgoderis I assume I don't understand the problem. The "deferring handler initialization" is no error itself, it is only a log message that the XML files are not fully processed yet and the handler initialization will be done later.
Do you want to say, that the handler initialization not done at all?
I think we should split your problem. "Deferred Handler initialization" and "missing dynamic channels". (I replied to the first one above)
Do you want to say, that the handler initialization not done at all?
is it initialised, but part of the channels as defined in the XML are not added to the Thing. I have created https://github.com/eclipse/smarthome/issues/2042
This all works ok in the zwave binding. Karel - have you changed the definition to add new channels to the XML? If so, they won’t be added unless you delete the thing and add it again (at this stage anyway - I think there’s moves to change this with the thing migration service).
@cdjackson Did a bundle:restart a few times. Will try your suggestion.
err... openhab> things remove knx:ip:ip1 Could not delete thing knx:ip:ip1.
guess that is a no no
@cdjackson Not sure what you mean by "adding" in this context (@ runtime?), but cold starting the runtime generates the problem, with the correct definition in place.
By ‘adding’ I meant to recreate the thing so that it re-read all the definitions. If the correct definition is already in place then it’s probably broken.
@kaikreuzer @maggu2810 shall we continue in this thread, or open an new issue? the issue of some bindings not initiliazing is still there
I'd suggest to first review and merge https://github.com/eclipse/smarthome/pull/2087 as this is anyhow changing a lot of the underlying infrastructure.
@kgoderis Is it okay for you to create a new one after #2087 has been merged?
ok
There have been numerous reports of bindings "stalling" (for lack of a better word) at startup. I have experienced the problem with the zwave and systeminfo bindings. Others have reported similar behavior with knx, rfxcom, meteostick, and max.
I first noticed this behavior with the 6/19 build, and it continues through the most current build (#399). At the time I was installing builds on almost a daily basis, and I do not recall seeing this behavior in the 6/17 and prior builds (I think I skipped installing the 6/18 build, so I don't know about that one). I started this forum thread, which has now become quite long. https://community.openhab.org/t/binding-not-starting-consistently-since-6-19-build/11741
There are other forum threads describing similar behavior.
Here. https://community.openhab.org/t/z-wave-binding-things-initializing-after-restart/12173 And here. https://community.openhab.org/t/testing-z-wave-binding-on-openhab-2/7522/1372
This originally was thought to be related to the circular reference issue. However, the problem continues even after the circular reference fix.
There may be some relationship to the XML file loading issue, but perhaps not. https://github.com/eclipse/smarthome/issues/1796
Here's the summary of what I'm seeing:
Start openhab. Things start out pretty normal.
But at this point there's nothing. Initialization of the zwave stick and nodes never starts.
When things start normally I would see messages like this.
The "Initializing ZWave thing handler" message is the first thing called in the ThingHandler's initialize() method, so I'm assuming that the initialize() method is never being called.
@cdjackson, please feel free to add to this if you have any additional information.