MagicMarcus / mqtt-spy

Automatically exported from code.google.com/p/mqtt-spy
0 stars 0 forks source link

Can no longer connect to local broker #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load mqtt-spy v0.0.11 with existing config and it fails to connect
2.
3.

What is the expected output? What do you see instead?
Config was working with previous version (v0.0.10) now I get the following 
error in the log;

2014-09-29 09:24:06,378 WARN  [MQTT Rec: mqtt-spy-mqttwarn   ] 
[MqttConnectionResultHandler   ]  - Connecting to 192.168.1.21 failed
Not authorized to connect (5)
    at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:24)
    at org.eclipse.paho.client.mqttv3.internal.ClientState.notifyReceivedAck(ClientState.java:773)
    at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:110)
    at java.lang.Thread.run(Unknown Source)

What version of the product are you using? On what operating system?
v0.0.11 (build 41)

Please provide any additional information below.
I am able to connect to the broker using the same username/password via the 
standard mosquitto-sub client. The mosquitto logs show no sign of any error, I 
just get;

Sep 29 09:12:03 weka mosquitto[20448]: New connection from 192.168.1.25 on port 
1883.

Original issue reported on code.google.com by ben.jone...@gmail.com on 28 Sep 2014 at 8:31

GoogleCodeExporter commented 9 years ago

Original comment by kamil.ba...@gmail.com on 14 Oct 2014 at 8:38

GoogleCodeExporter commented 9 years ago
Username & password were not properly passed onto the MQTT client library. 
Fixed in 0.1.0 beta (build 68).

Original comment by kamil.ba...@gmail.com on 14 Oct 2014 at 10:23