With today update mqtt-binding 1.9 will not work anymore in oh2 snapshot.
Any suggestions?
2017-01-02 16:21:19.541 [ERROR] [penhab.io.transport.mqtt.MqttService] - Error starting broker connection
java.lang.IllegalArgumentException
at org.eclipse.paho.client.mqttv3.MqttConnectOptions.validateWill(MqttConnectOptions.java:144)[201:org.openhab.io.transport.mqtt:1.9.0.201701020211]
at org.eclipse.paho.client.mqttv3.MqttConnectOptions.setWill(MqttConnectOptions.java:134)[201:org.openhab.io.transport.mqtt:1.9.0.201701020211]
at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.openConnection(MqttBrokerConnection.java:340)[201:org.openhab.io.transport.mqtt:1.9.0.201701020211]
at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.start(MqttBrokerConnection.java:112)[201:org.openhab.io.transport.mqtt:1.9.0.201701020211]
at org.openhab.io.transport.mqtt.MqttService.updated(MqttService.java:109)[201:org.openhab.io.transport.mqtt:1.9.0.201701020211]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1461)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1417)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)[3:org.apache.felix.configadmin:1.8.12]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_65]
Did you recently add an lwt parameter to your mqtt.cfg configuration file, even if you’ve now removed it or commented it out? Use the config command at the openhab> prompt to inspect your configuration to see if it contains unexpected contents. Either delete the incorrect configuration, or as a stopgap, define a differently named broker in your mqtt.cfg file and reference that instead. If none of that works, please share your configuration here.
I saw the exception in the log you posted and looked at the referenced code, and it could only be reached by having an lwt configuration parameter. (I think someone could program a bot to replace me. )
2017-07-03 20:08:32.334 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'test’
2017-07-03 20:08:32.355 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'm2m-eclipse’
2017-07-03 20:08:32.355 [ERROR] [penhab.io.transport.mqtt.MqttService] - Error starting broker connection
java.lang.IllegalArgumentException: tcp://10.0.0.26:8883/
at org.eclipse.paho.client.mqttv3.MqttConnectOptions.validateURI(MqttConnectOptions.java:433)[214:org.openhab.io.transport.mqtt:1.9.0]
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.(MqttAsyncClient.java:260)[214:org.openhab.io.transport.mqtt:1.9.0]
at org.eclipse.paho.client.mqttv3.MqttClient.(MqttClient.java:222)[214:org.openhab.io.transport.mqtt:1.9.0]
at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.openConnection(MqttBrokerConnection.java:291)[214:org.openhab.io.transport.mqtt:1.9.0]
at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.start(MqttBrokerConnection.java:112)[214:org.openhab.io.transport.mqtt:1.9.0]
at org.openhab.io.transport.mqtt.MqttService.updated(MqttService.java:109)[214:org.openhab.io.transport.mqtt:1.9.0]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1772)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)[3:org.apache.felix.configadmin:1.8.12]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]
I’m trying to access an MQTT Broker on raspberry Pi running Openhab2
You know the Story…