Bug 41543

Summary: exception when webserver returns "500 Internal Server Error" and content-lenght is 0
Product: JMeter - Now in Github Reporter: Christoph <christoph.schragen>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: qa.bgonepudi
Priority: P2    
Version: 2.2   
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Attachments: Patch for this bug

Description Christoph 2007-02-05 07:07:02 UTC
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.
Comment 1 Christoph 2007-02-05 07:09:52 UTC
Created attachment 19515 [details]
Patch for this bug

We generated a JMeter patch, which results in the expected behaviour.
Comment 2 Sebb 2007-02-05 14:37:06 UTC
Thanks for the patch; I've applied it.

Does the same problem occur with the HttpClient sampler?
Comment 3 Christoph 2007-02-08 01:17:31 UTC
(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
Comment 4 Sebb 2007-02-08 02:23:02 UTC
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!
Comment 5 The ASF infrastructure team 2022-09-24 20:37:38 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1859