If a server returns a http-response 500 Internal Server Error and the content- lenght is 0 then JMeter throws a Java Exception instead of returning the error code 500. This results in 'non HTTP response' messages to be shown.
Created attachment 19515 [details] Patch for this bug We generated a JMeter patch, which results in the expected behaviour.
Thanks for the patch; I've applied it. Does the same problem occur with the HttpClient sampler?
(In reply to comment #2) > Thanks for the patch; I've applied it. > Does the same problem occur with the HttpClient sampler? i'm sorry but i don't really know if the problem also occurs with the httpclient... we just use the java httpsampler and we needed to patch this bug
OK - no problem. If you do end up using HttpClient instead and it shows the same problem, please update the bug (or open a new one) - thanks!
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1859