Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Unexpected Error: NULL" #51

Open
prutheel opened this issue Jan 21, 2016 · 3 comments
Open

Getting "Unexpected Error: NULL" #51

prutheel opened this issue Jan 21, 2016 · 3 comments

Comments

@prutheel
Copy link

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

@pontiyaraja
Copy link

Please use new version of jar. I too faced the same issue and resolved

@prutheel
Copy link
Author

prutheel commented Mar 9, 2016

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

@4M01
Copy link

4M01 commented Jun 13, 2017

Hi @pontiyaraja,
which version of JARs, would you be please specific?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants