# Binding handler registration issues

**URL:** <https://community.openhab.org/t/binding-handler-registration-issues/17422>\
**Category:** Runtime\
**Tags:** hue, harmonyhub, binding\
**Created:** [November 28, 2016, 1:17pm UTC](https://community.openhab.org/t/binding-handler-registration-issues/17422 "2016-11-28T13:17:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mudsie](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@Mudsie](https://community.openhab.org/u/Mudsie)\
**Post date:** [November 28, 2016, 1:17pm UTC](https://community.openhab.org/t/binding-handler-registration-issues/17422/1 "2016-11-28T13:17:16Z")

</div>

Since the refactoring to the new folder structure I have noticed a degradation in system startup and binding activation. The binding that fails most often is the hue binding so it may be specific to that but I have also noticed that the Harmony Hub binding does not reliably detect the hubs at startup.  
The issue seen with the hue binding is that several, sometimes all, lights are not ONLINE. They remain at

> UNINITIALIZED (HANDLER MISSING ERROR)

During startup there are several messages;

> 12:57:15.681 [WARN] [ome.core.thing.internal.ThingManager] - Registering handler for thing ‘hue:0200:XXXXXXXXXXX:10’ takes more than 5000ms.

These messages appear for the hue and harmony hub bindings as well as the FirmwareUpdateService and EventLogger. A reboot sometimes resolves the issue but not always.

My current binding list is hue,zwave,harmonyhub,xbmc,onkyo using mysql persistence with hueemulation for voice control. If there is anything more you need me to do please ask, happy to test / try new things.

---

<div class="post-metadata">

**Author:** ![Kai](https://community.openhab.org/user_avatar/community.openhab.org/kai/32/116281_2.png) [@Kai](https://community.openhab.org/u/Kai)\
**Post date:** [November 29, 2016, 1:53pm UTC](https://community.openhab.org/t/binding-handler-registration-issues/17422/2 "2016-11-29T13:53:28Z")

</div>

Looks like a bug to me, I have entered [ThingHandlers stay UNINITIALIZED of registration runs into timeout · Issue #2559 · eclipse-archived/smarthome · GitHub](https://github.com/eclipse/smarthome/issues/2559) for it.

Would you have more detailed log files available, best by first setting

```auto
log:set DEBUG org.eclipse.smarthome.core.thing

```

on the console? Thanks!

---

<div class="post-metadata">

**Author:** ![Mudsie](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@Mudsie](https://community.openhab.org/u/Mudsie)\
**Post date:** [November 29, 2016, 7:44pm UTC](https://community.openhab.org/t/binding-handler-registration-issues/17422/3 "2016-11-29T19:44:35Z")

</div>

Hi Kai, thanks for responding. I will try and get some more logs tomorrow, I would do it tonight but would be in a world of pain from the other half for fiddling whilst we have guests!

I managed to drastically improve the situation (as in it runs up reliably again) by removing the harmony hub binding which is the only binding I have seen raise these warnings. At the same time I have disabled the Onkyo and xbmc bindings so it “may” be connected to those although I have never seen the warnings generated by them. I see there is quite a large change to the backend database coming tonight so will run an upgrade tomorrow and re-test to confirm if this is linked to the harmony hub binding or a more generic problem.

If the behaviour is exhibited I will get some debug logs.

---

<div class="post-metadata">

**Author:** ![Mudsie](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@Mudsie](https://community.openhab.org/u/Mudsie)\
**Post date:** [November 30, 2016, 3:00pm UTC](https://community.openhab.org/t/binding-handler-registration-issues/17422/4 "2016-11-30T15:00:11Z")

</div>

This issue still occurs, reading the bug report that is not a major surprise, and does seem to be more prevalent when additional bindings, such as the harmony hub binding, are installed.

What is the best way to post a section of the openhab log with debug? Do you want me to post here or on the bug itself.

---

<div class="post-metadata">

**Author:** ![Kai](https://community.openhab.org/user_avatar/community.openhab.org/kai/32/116281_2.png) [@Kai](https://community.openhab.org/u/Kai)\
**Post date:** [November 30, 2016, 3:07pm UTC](https://community.openhab.org/t/binding-handler-registration-issues/17422/5 "2016-11-30T15:07:42Z")

</div>

Check out [fix handler initialization if child registration takes too long by sjsf · Pull Request #2568 · eclipse-archived/smarthome · GitHub](https://github.com/eclipse/smarthome/pull/2568), a fix is currently under review and it will be available by this weekend in openHAB 2!

---

<div class="post-metadata">

**Author:** ![Mudsie](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@Mudsie](https://community.openhab.org/u/Mudsie)\
**Post date:** [November 30, 2016, 3:58pm UTC](https://community.openhab.org/t/binding-handler-registration-issues/17422/6 "2016-11-30T15:58:16Z")

</div>

Perfect! Thanks Kai (and the team - wish I could code better to help) I will keep an eye out and run some tests once it is committed.

---

<div class="post-metadata">

**Author:** ![Kai](https://community.openhab.org/user_avatar/community.openhab.org/kai/32/116281_2.png) [@Kai](https://community.openhab.org/u/Kai)\
**Post date:** [December 1, 2016, 8:45am UTC](https://community.openhab.org/t/binding-handler-registration-issues/17422/7 "2016-12-01T08:45:23Z")

</div>

Latest distro should include this change - so please let us know in case you still see this error!

---

<div class="post-metadata">

**Author:** ![Mudsie](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@Mudsie](https://community.openhab.org/u/Mudsie)\
**Post date:** [December 2, 2016, 12:28pm UTC](https://community.openhab.org/t/binding-handler-registration-issues/17422/8 "2016-12-02T12:28:52Z")

</div>

Hi there, I am still getting this error although less frequently now. I have enabled debugging but when I restart all is well so it is definitely a little intermittent. I will leave debugging enabled and if I see it again will update…where is the best place to post a log?

---

<div class="post-metadata">

**Author:** ![Kai](https://community.openhab.org/user_avatar/community.openhab.org/kai/32/116281_2.png) [@Kai](https://community.openhab.org/u/Kai)\
**Post date:** [December 2, 2016, 1:02pm UTC](https://community.openhab.org/t/binding-handler-registration-issues/17422/9 "2016-12-02T13:02:31Z")

</div>

> [@Mudsie](#):
>
> where is the best place to post a log?

Either here or you post it on [ThingHandlers stay UNINITIALIZED of registration runs into timeout · Issue #2559 · eclipse-archived/smarthome · GitHub](https://github.com/eclipse/smarthome/issues/2559) (if it is exactly the same issue still, otherwise feel free to create a new issue at [GitHub · Where software is built](https://github.com/eclipse/smarthome/issues).

Cheers,  
Kai
