Skip to content

JMeter Non HTTP response code

Understand JMeter Non HTTP response code and Non HTTP response message: connection, SSL, and client exceptions. Symptom, causes, and how to fix samples.

Difficulty
intermediate
Guide type
troubleshooting
Estimated read time
6 min read
Last verified version
Verified JMeter 5.6

View Results Tree or the results file shows:

  • Response code: Non HTTP response code: java.net.… (or similar)
  • Response message: Non HTTP response message: …

There is no standard HTTP status such as 200, 401, or 503. The sample is failed because the HTTP client threw an exception before a normal status line was available.

Common nested types:

  • java.net.ConnectException
  • java.net.SocketException / connection reset
  • javax.net.ssl.SSLHandshakeException
  • java.net.SocketTimeoutException
  • java.net.UnknownHostException
CauseTypical nested message
Cannot connectConnectException, connection refused/timed out
DNS failureUnknownHostException
TLS trust / handshakeSSLHandshakeException, PKIX path building failed
Peer closed socketConnection reset, SocketException, socket closed
Read/connect timeoutSocketTimeoutException
Wrong proxy settingsConnect or tunnel failures when a proxy is required

Official debugging still starts with one thread and View Results Tree (best practices recommend Tree only while scripting).

  1. Read the full message after Non HTTP response code: / message: - treat the Java exception as the real error.

  2. Route to the dedicated playbook:

  3. Confirm protocol/host/port via HTTP Request Defaults.

  4. Check connect and response timeouts on the HTTP Request sampler.

  5. Disable corporate proxy surprises: if the OS proxy is set but the SUT is internal, configure JMeter proxy fields deliberately or clear them.

  6. Re-run CLI with logging:

    Terminal window
    jmeter -n -t plan.jmx -l results.jtl -j jmeter.log
  7. After connect works, add assertions so HTTP 5xx pages are not mistaken for success (API guide).

ResourceUse when
ConnectExceptionRefused / timed out connect
SSLHandshakeExceptionCertificate and TLS failures
Dashboard reportAggregate error rates after CLI
Troubleshooting overviewBroader checklist

Is Non HTTP response code a real HTTP status?

Section titled “Is Non HTTP response code a real HTTP status?”

No. It is JMeter’s way of saying the sampler failed with a client-side exception instead of an HTTP status line.

Can Non HTTP errors appear only under load?

Section titled “Can Non HTTP errors appear only under load?”

Yes. Connection limits, TLS session issues, or server overload can surface as resets and timeouts only at higher concurrency. Still fix connectivity for one thread first.

Yes. Failed samples increase error % on the HTML dashboard and in listeners.

On this page