emqx / mqtt-jmeter

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

Unable to publish by selecting 'hex' #93

Open Samwise15 opened 3 years ago

Samwise15 commented 3 years ago

Hi, I am using SSL connection for MQTT. The connect is successful. To Publish/ Subscribe, I have added the respective samplers and the required 'topic' name. In Payloads, I have selected ' Hex' string and put the required data, however getting below error : at net.xmeter.samplers.PubSampler.hexToBinary(PubSampler.java:86) ~[mqtt-xmeter-2.0.2-jar-with-dependencies.jar:?]

Am I missing something here, also tried to convert the same to 'String' but still not able to get this working.

Baaamm commented 2 years ago

In our case, the problem was that java version > 8 not including jaxb anymore this was the solution.

https://stackoverflow.com/questions/49880678/error-with-jdbc-using-java-9-and-jmeter-4-0

"Add jaxb-api jar to JMeter lib folder and restart JMeter to load jar with missing class"