paho.mqtt.java icon indicating copy to clipboard operation
paho.mqtt.java copied to clipboard

StackOverflow in MQTTv5 when subscribing with a topicfilter, qos and a IMqttMessageListener

Open Questlog opened this issue 3 years ago • 3 comments

  • [x] Bug exists Release Version 1.2.5 ( Master Branch)
  • [ ] Bug exists in MQTTv3 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
  • [x] Bug exists in MQTTv5 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)

https://github.com/eclipse/paho.mqtt.java/blob/develop/org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/MqttClient.java#L523-L525

The subscribe method is calling itself.

public IMqttToken subscribe(String[] topicFilters, int[] qos, IMqttMessageListener[] messageListeners)
			throws MqttException {
	return this.subscribe(topicFilters, qos, messageListeners);
}

Questlog avatar Feb 04 '21 16:02 Questlog

When will it be fixed? Please repair it ASAP !

fengyuanhui avatar May 06 '21 03:05 fengyuanhui

It works .....

https://github.com/eclipse/paho.mqtt.java/blob/240f82f8c99d4b2301cf44c4d3b57f234be5d409/org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/MqttClient.java#L528

Yeah, use that one. The other two subscribe methods would be more convenient though.

Questlog avatar Jun 19 '21 14:06 Questlog