ruebox / openhab2-addons

Add-ons for openHAB 2.x
Eclipse Public License 1.0
16 stars 6 forks source link

No reconnect after update of bridge thing #39

Closed xlrx closed 6 years ago

xlrx commented 6 years ago

The binding looses connection after updating the bridge thing (of course) – but stays disconnected. One use case to update the bridge is to enable debug mode in PaperUI in my case. Maybe there is a possibility to trigger reconnection.

    ------- snip --------   <-- pressed update button in PaperUI
2018-05-07 23:35:46.677 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - Bridge connection lost. Updating thing status to OFFLINE.
2018-05-07 23:35:46.678 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - rocks.xmpp.core.session.SessionStatusEvent[source=rocks.xmpp.core.session.XmppClient@53ea0e84]
2018-05-07 23:35:46.681 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - rocks.xmpp.core.session.SessionStatusEvent[source=rocks.xmpp.core.session.XmppClient@53ea0e84]
2018-05-07 23:35:46.682 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - Initializing FreeAtHome bridge handler.
2018-05-07 23:35:46.682 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - Gateway IP            192.168.XXX.XXX.
2018-05-07 23:35:46.683 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - Port                  5280.
2018-05-07 23:35:46.683 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - Login                 XXXXXXXX.
2018-05-07 23:35:46.683 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - Password              XXXXXXXX.
2018-05-07 23:35:46.683 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - log_enabled           true.
2018-05-07 23:35:46.684 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - log_dir               /openhab/userdata/tmp/.
2018-05-07 23:35:46.684 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - dummy_things_enabled  false.
2018-05-07 23:35:46.689 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - rocks.xmpp.core.session.SessionStatusEvent[source=rocks.xmpp.core.session.XmppClient@b49b7de]
2018-05-07 23:35:46.694 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - rocks.xmpp.core.session.SessionStatusEvent[source=rocks.xmpp.core.session.XmppClient@b49b7de]
2018-05-07 23:35:46.694 [DEBUG] [home.handler.FreeAtHomeBridgeHandler] - Bridge connection lost. Updating thing status to OFFLINE.
2018-05-07 23:35:46.695 [ERROR] [home.handler.FreeAtHomeBridgeHandler] - Can not connect to IP gateway
2018-05-07 23:35:46.695 [ERROR] [home.handler.FreeAtHomeBridgeHandler] - javax.xml.bind.JAXBException: class rocks.xmpp.extensions.httpbind.model.Body nor any of its super class is known to this context.
2018-05-07 23:35:46.698 [ERROR] [st.core.internal.thing.ThingResource] - Exception during HTTP PUT request for update config at 'things/freeathome:bridge:9ae416eb/config'
java.lang.IllegalStateException: Session is not connected to server
    at rocks.xmpp.core.session.XmppSession.send(XmppSession.java:653) [234:org.openhab.binding.freeathome:2.0.0.201803181048]
    at rocks.xmpp.core.session.XmppClient.send(XmppClient.java:467) [234:org.openhab.binding.freeathome:2.0.0.201803181048]
    at rocks.xmpp.core.session.XmppSession.sendAndAwait(XmppSession.java:606) [234:org.openhab.binding.freeathome:2.0.0.201803181048]
    at rocks.xmpp.core.session.XmppSession.query(XmppSession.java:537) [234:org.openhab.binding.freeathome:2.0.0.201803181048]
    at rocks.xmpp.core.session.XmppSession.query(XmppSession.java:518) [234:org.openhab.binding.freeathome:2.0.0.201803181048]
    at rocks.xmpp.extensions.rpc.RpcManager.call(RpcManager.java:115) [234:org.openhab.binding.freeathome:2.0.0.201803181048]
    at org.openhab.binding.freeathome.handler.FreeAtHomeBridgeHandler.getAll(FreeAtHomeBridgeHandler.java:217) [234:org.openhab.binding.freeathome:2.0.0.201803181048]
    at org.openhab.binding.freeathome.handler.FreeAtHomeBridgeHandler.initialize(FreeAtHomeBridgeHandler.java:125) [234:org.openhab.binding.freeathome:2.0.0.201803181048]
    ------- snip --------  <-- no more vital signs