emqx / mqtt-jmeter

MQTT JMeter Plugin
https://www.emqx.com/en
Apache License 2.0
445 stars 194 forks source link

MQTT connect failed #59

Closed ChangXiaoliu closed 5 years ago

ChangXiaoliu commented 5 years ago

1.set MQTT connect : ip/port/mqtt version; Protocols:SSL not choice Dual SSL authentication

  1. run jmx,MQTT connect failed ,result : Mar 12, 2019 9:11:28 PM net.xmeter.samplers.ConnectSampler sample SEVERE: For input string: ""
jinfahua commented 5 years ago

Could you please post your connection sampler screenshot?

ChangXiaoliu commented 5 years ago

JD20190312211155

jinfahua commented 5 years ago

Could you try constant string with username & password field?

ChangXiaoliu commented 5 years ago

userName:ffffff password:34AD4D042A6ACB25EB0814AD2DFF5BFD5A140DB5 The parameters are correct,and I use another tool called eclipase paho MQTT Utility,and send with these two parameters and *.jks,then connect successfully.

jinfahua commented 5 years ago

Could you please delete the jmeter.log and restart JMeter, then re-run the script. Finally attach the jmeter.log to this thread.

ChangXiaoliu commented 5 years ago

JD20190314094000

jinfahua commented 5 years ago

It seems your "Timeout(s)" field is empty, could you set it to the default value (it should be 10) ?

ChangXiaoliu commented 5 years ago

Thank you.