Skip to content

Handle Cannot connect to the remote server error #88

Description

@ngannt-vn

I faced this issue when trying to connect Websocket through Jmeter plugin, I fixed this by updating java from version 1.8 to version 17. Hope it help for someone

Thread Name:Thread Group 1-1
Sample Start:2025-04-02 18:56:03 ICT
Load time:5066
Connect Time:0
Latency:0
Size in bytes:0
Sent bytes:0
Headers size in bytes:0
Body size in bytes:0
Sample Count:1
Error Count:1
Data type ("text"|"bin"|""):
Response code:
Response message: - Using response message pattern ""

  • Using disconnect pattern ""

[Execution Flow]

  • Opening new connection
  • Waiting for the server connection for 5000 MILLISECONDS
  • Cannot connect to the remote server

[Variables]

  • Message count: 0

[Problems]

  • Unexpected error: null
    JMeter.plugins.functional.samplers.websocket.ServiceSocket.sendMessage(servicesocket.java:188)
    JMeter.plugins.functional.samplers.websocket.WebSocketSampler.sample(websocketsampler.java:160)
    org.apache.jmeter.threads.JMeterThread.doSampling(jmeterthread.java:638)
    org.apache.jmeter.threads.JMeterThread.executeSamplePackage(jmeterthread.java:558)
    org.apache.jmeter.threads.JMeterThread.processSampler(jmeterthread.java:489)
    org.apache.jmeter.threads.JMeterThread.run(jmeterthread.java:256)
    java.lang.Thread.run(thread.java:748)

SampleResult fields:
ContentType:
DataEncoding: UTF-8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions