JMeter-WebSocketSampler
JMeter-WebSocketSampler copied to clipboard
Getting "Unexpected Error: NULL"
I have added websocket sampler in the Jmeter with all the dependencies.
In my recorded script I have put the Websocket sampler after the HTTP request:
https://example.server.com/socket.io/1/?t=${timestamp} I am getting the response like - "TSiJ56ESavsfGEQcsBj9:17:60:websocket,xhr-polling,htmlfile,jsonp-polling". So from that I am extracting the socket id/connection id i.e first 20 alphabets and passing in the WSS connection id. In websocket sampler I am providing following Parameter path: socket.io/1/websocket/${socid} connestion id: ${socid} Response pattern: *Blank Close connection: *Blank Request data: 5:::{"name":"join","args":["Ag_1250","${GUID}"]}
But while executing the Script getting this error [Execution Flow]
- Opening new connection
- Using response message pattern ""
- Using disconnect pattern ""
[Problems]
- Unexpected error: null JMeter.plugins.functional.samplers.websocket.ServiceSocket.sendMessage(ServiceSocket.java:131) JMeter.plugins.functional.samplers.websocket.WebSocketSampler.sample(WebSocketSampler.java:102) org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434) org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261) java.lang.Thread.run(Unknown Source)
I am not sure whether I am using the Websocket in correct way or not. So kindly help me on this
Please use new version of jar. I too faced the same issue and resolved
Can you please tell me where I can download latest set of JARs? I have downloaded version of 9.1.1...something. That are mentioned in the Dependencies List of this Page
Hi @pontiyaraja, which version of JARs, would you be please specific?