Connection from paho java client failed

1,614 views
Skip to first unread message

manish

unread,
Aug 1, 2016, 4:40:11 AM8/1/16
to rabbitmq-users
Status command show this

{listeners,[{clustering,25672,"::"},{amqp,5672,"::"},{mqtt,1883,"::"}]},

but when i do "tcp://localhost:1883" from java paho client i get

reason 32109
msg Connection lost
loc Connection lost
cause java.io.EOFException
excep Connection lost (32109) - java.io.EOFException
Connection lost (32109) - java.io.EOFException
  at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:146)
  at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.EOFException
  at java.io.DataInputStream.readByte(DataInputStream.java:267)
  at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:65)
  at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:107)
  ... 1 more

Michael Klishin

unread,
Aug 1, 2016, 10:07:43 AM8/1/16
to rabbitm...@googlegroups.com
See server logs for possible clues.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

manish

unread,
Aug 1, 2016, 10:31:00 AM8/1/16
to rabbitmq-users
If i am accessing from paho JS client i am getting

=INFO REPORT==== 1-Aug-2016::19:58:56 ===
accepting Web MQTT connection <0.9281.0> (127.0.0.1:34882 -> 127.0.0.1:15675)

=INFO REPORT==== 1-Aug-2016::19:59:17 ===
accepting Web MQTT connection <0.9491.0> (127.0.0.1:34885 -> 127.0.0.1:15675)


But from paho java client its not showing anything in log. for java i am using "tcp://127.0.0.1:8883"

manish

unread,
Aug 1, 2016, 10:39:09 AM8/1/16
to rabbitmq-users
I just change to port 1883

MQTT protocol error qos2_not_supported for connection "127.0.0.1:55436 -> 127.0.0.1:1883"

then change QOS to 1 and it worked.

Why qos2 is not working ?

Michael Klishin

unread,
Aug 1, 2016, 11:33:11 AM8/1/16
to rabbitm...@googlegroups.com
RabbitMQ MQTT plugin does not support the QoS 2 level. This has been explained
many times on the list: QoS 2 promises a feature that cannot be delivered on in a realistic
system without compromising *a lot* of throughput.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages