Hue binding not working with openhab 2.0

Hi, I am using openhab 2.0 offline from downloads. And I am using the add on org.openhab.binding.hue-1.8.2.jar. I get the following error when i use log:tail. I have copied this binding in addon folder and in conf/services i have created hue.cgf on my own with refresh, secret and ip adress set according to the “Getting started with openhab 2” wiki.

here is the error

10:52:46.309 [ERROR] [org.openhab.binding.hue ] - [org.openhab.binding.hue(147)] unbind method [removeBindingProvider] not found
10:52:46.310 [ERROR] [org.openhab.binding.hue ] - [org.openhab.binding.hue(147)] bind method [addBindingProvider] not found
10:52:46.433 [ERROR] [org.apache.felix.configadmin ] - [, org.osgi.service.event.EventHandler, id=266, bundle=188/file:/home/moisesjimenez/openhab2website/addons/org.openhab.binding.hue-1.8.2.jar]: Unexpected problem updating configuration org.openhab.hue
java.lang.NoClassDefFoundError: Could not initialize class
at com.sun.jersey.core.header.MediaTypes.(
at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(
at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(
at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(
at com.sun.jersey.api.client.Client.init(
at com.sun.jersey.api.client.Client.access$000(
at com.sun.jersey.api.client.Client$1.f(
at com.sun.jersey.api.client.Client$1.f(
at com.sun.jersey.spi.inject.Errors.processWithErrors(
at com.sun.jersey.api.client.Client.(
at com.sun.jersey.api.client.Client.(
at com.sun.jersey.api.client.Client.create(
at org.openhab.binding.hue.internal.hardware.HueBridge.(
at org.openhab.binding.hue.internal.HueBinding.updated(
10:52:46.437 [ERROR] [org.openhab.binding.hue ] - [org.openhab.binding.hue(147)] unbind method [removeBindingProvider] not found

I know that there is a problem with this hue binding. Is there any new hue binding present for openhab 2.0.

Why not just using the 2.0 binding packaged with the distribution ? It is working.

I cannot see a hue binding for 2.0 in the distribution. Can you please help me find it. I have also tried adding bindings to addons.cfg in conf/services and i get this

188 | Active | 80 | 1.8.2 | org.openhab.binding.hue
189 | Active | 80 | 1.8.2 | org.openhab.binding.http
190 | Active | 80 | 1.8.2 | org.openhab.binding.exec
191 | Active | 80 | | org.openhab.binding.http

Which means that i still have active 1.8.2 for hue

Run bundle:uninstall 188 and of course remove your hue jar file from add-ons folder.
Yes you can add hue in addons.cfg and hue binding 2.0 will be installed at startup.
Or you can install it from Paper UI. Find it in extensions.

why not use online distro?

I tried installing the hue binding with PaperUI today and it wouldn’t install.

I added ‘hue’ to my addons,cfg file and openHAB wouldn’t restart (lots of errors in log pertaining to the hue binding.

I removed it from the addons,cfg file and restarted openHAB almost successfully - now paperUI has disappeared - I get:


Problem accessing /paperui/index.html. Reason:

    Not Found

Any ideas for:

  1. Installing the hue binding?
  2. Getting paperUI back?


openHAB 2.2.0~20171030010135-1 (Build #1072)

Fixed. I didn’t think it would work but I upgraded everything using openHabian-config and now paperUI has returned and I was able to install the Hue binding with paperUI.