{"action":"closed","issue":{"url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1442","repository_url":"https://api.github.com/repos/openhab/openhab2-addons","labels_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1442/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1442/comments","events_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1442/events","html_url":"https://github.com/openhab/openhab2-addons/issues/1442","id":190519964,"number":1442,"title":"[Homematic] NPE after connection to the CCU got lost","user":{"login":"MHerbst","id":616792,"avatar_url":"https://avatars.githubusercontent.com/u/616792?v=3","gravatar_id":"","url":"https://api.github.com/users/MHerbst","html_url":"https://github.com/MHerbst","followers_url":"https://api.github.com/users/MHerbst/followers","following_url":"https://api.github.com/users/MHerbst/following{/other_user}","gists_url":"https://api.github.com/users/MHerbst/gists{/gist_id}","starred_url":"https://api.github.com/users/MHerbst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MHerbst/subscriptions","organizations_url":"https://api.github.com/users/MHerbst/orgs","repos_url":"https://api.github.com/users/MHerbst/repos","events_url":"https://api.github.com/users/MHerbst/events{/privacy}","received_events_url":"https://api.github.com/users/MHerbst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-19T20:59:51Z","updated_at":"2016-11-26T17:59:55Z","closed_at":"2016-11-26T17:59:55Z","body":"Some time after the start of openHAB I got a message that the connection was lost. After this message appeared I have tried to set a new temperature value (via Paper UI). This lead to a NPE in the Homematic binding each time I tried it.\r\n\r\n```\r\n13:44:09.102 [WARN ] [ternal.communicator.HomematicGateway] - Connection lost on gateway '6f25505a'\r\n13:44:09.110 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'homematic:bridge:6f25505a' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Connection lost\r\n13:44:09.114 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'homematic:HM-Sec-SD-2:6f25505a:NEQ0002819' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)\r\n13:44:09.116 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'homematic:HM-WDS10-TH-O:6f25505a:MEQ0202430' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)\r\n13:44:09.116 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'homematic:HM-CC-RT-DN:6f25505a:MEQ1555808' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)\r\n13:49:47.818 [INFO ] [ternal.communicator.HomematicGateway] - No event since 338 seconds from gateway '6f25505a', restarting RPC server\r\n                                                                                                                                                                                                              14:21:26.687 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'homematic_HM_CC_RT_DN_6f25505a_MEQ1555808_4_SET_TEMPERATURE' received command 20.7\r\n'org.apache.felix.eventadmin.impl.adapter.LogEventAdapter$1@3030a6dd' is removed as a LogListener, since it threw an exception.14:21:26.689 [ERROR] [ematic.handler.HomematicThingHandler] -\r\njava.lang.NullPointerException\r\n        at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway$1.execute(AbstractHomematicGateway.java:534)[194:org.openhab.binding.homematic:2.0.0.201611181914]\r\n        at org.openhab.binding.homematic.internal.misc.DelayedExecuter.start(DelayedExecuter.java:61)[194:org.openhab.binding.homematic:2.0.0.201611181914]\r\n        at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.sendDatapoint(AbstractHomematicGateway.java:513\r\n)[194:org.openhab.binding.homematic:2.0.0.201611181914]\r\n        at org.openhab.binding.homematic.internal.communicator.AbstractHomematicGateway.sendDatapoint(AbstractHomematicGateway.java:488)[194:org.openhab.binding.homematic:2.0.0.201611181914]\r\n        at org.openhab.binding.homematic.handler.HomematicThingHandler.handleCommand(HomematicThingHandler.java:175)[194:org.openhab.binding.homematic:2.0.0.201611181914]\r\n        at org.eclipse.smarthome.core.thing.internal.ThingManager$3.call(ThingManager.java:352)[103:org.eclipse.smarthome.core.thing:0.9.0.201611161058]\r\n        at org.eclipse.smarthome.core.thing.internal.ThingManager$3.call(ThingManager.java:1)[103:org.eclipse.smarthome.core.thing:0.9.0.201611161058]\r\n        at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:177)[96:org.eclipse.smarthome.core:0.9.0.201611161058]\r\n        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_102]\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_102]\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_102]\r\n        at java.lang.Thread.run(Thread.java:745)[:1.8.0_102]\r\n14:21:26.693 [INFO ] [marthome.event.ItemStateChangedEvent] - homematic_HM_CC_RT_DN_6f25505a_MEQ1555808_4_SET_TEMPERATURE changed from 21.00 to 20.7\r\n14:22:56.082 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'homematic_HM_CC_RT_DN_6f25505a_MEQ1555808_4_SET_TEMPERATURE' received command 20\r\n```\r\nAccording to the log the temperature was changed from 21.00 to 20.7 but when I look at the CCU Web API nothing was really changed.\r\nTo me it seems that after the connection was lost it failed to reconnect to the CCU. After a restart of openHAB everything worked again.\r\n\r\nMy test environment: Windows 10 Pro with JDK 1.8 (64 Bit), OpenHab build 594. The CCU 2 runs the latest firmware 2.25.14).\r\n\r\n@gerrieg I was not able to reproduce this problem. After the restart the connection was stable."}}
{"actor":{"display_login":"MHerbst"}}