openhab-addons: [mqtt] Errors in the log file after MQTT binding installation

Hi guys! (@davidgraeff)

I’m trying the latest openHAB 2.5.0 SNAPSHOT version and I have found the following errors after installing the MQTT binding:

2019-03-26 15:34:17.609 [ERROR] [org.openhab.binding.mqtt.generic    ] - bundle org.openhab.binding.mqtt.generic:2.5.0.201903260114 (223)[org.openhab.binding.mqtt.MqttChannelStateDescriptionProvider(215)] : Could not load implementation object class org.openhab.binding.mqtt.MqttChannelStateDescriptionProvider
java.lang.ClassNotFoundException: org.openhab.binding.mqtt.MqttChannelStateDescriptionProvider cannot be found by org.openhab.binding.mqtt.generic_2.5.0.201903260114

Many thanks for your work and support!

PS: The long version of the error message can be found here: https://pastebin.com/14RHjbd5

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 30 (8 by maintainers)

Commits related to this issue

Most upvoted comments

@bodiroga It doesn’t hurt to have them in different packages. Can you prepare a PR?

Done: #5259! 👍

With build 1564 (built on 31.3.2018) and the jars above I am getting

2019-04-02 18:17:14.623 [ERROR] [org.openhab.binding.mqtt.homie      ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.homie
org.osgi.framework.ServiceException: Exception in org.apache.felix.scr.impl.manager.SingleComponentManager.getService()
...
Caused by: java.lang.NoClassDefFoundError: org/openhab/binding/mqtt/TransformationServiceProvider
...
Caused by: java.lang.ClassNotFoundException: org.openhab.binding.mqtt.TransformationServiceProvider cannot be found by org.openhab.binding.mqtt.homie_2.5.0.201903310938
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433) ~[?:?]

Downloading the jars mentioned above helps reading data from my broker, but publishing does not work…