Java client with websocket : Invalid Frame : Opcode 15 error [message #1724318] |
Tue, 23 February 2016 02:16  |
Eclipse User |
|
|
|
Hello,
I am using the development build org.eclipse.paho.client.mqttv3-1.0.3-SNAPSHOT.jar to connect to a Mosquitto 1.4.8 using wss://
.
The client disconnects due to "Invalid Frame" error pasted below.
Publishing at: 2016-02-22 22:59:03.496 to topic "mqtt/demo" qos 2
WebSocketReceiver.java : run(): Exception Occured.
java.io.IOException: Invalid Frame: Opcode: 15
at org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketFrame.<init>(WebSocketFrame.java:187)
at org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketReceiver.run(WebSocketReceiver.java:98)
at java.lang.Thread.run(Thread.java:745)
Disconnected
This happens over ws:// as well. Same client can connect to Mosca broker just fine, both over ws:// and wss://. Similarly, other clients (iOS, Node.js, C) can connect to Mosquitto 1.4.8 just fine, both over ws:// and wss://
I ran wireshark to see if Mosquitto was sending a frame with opcode 15, but I couldn't locate any such frame.
I still haven't looked into the websocket implementation, but thought someone might be able to shed light on this error.
Thx,
Vineet
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03577 seconds