【发布时间】:2012-12-12 18:51:43
【问题描述】:
我有一个 Java 网络服务器。它使用 localhost 和端口 9090。(自定义,但不是 8080)
(Socket[addr=/127.0.0.1,port=59507,localport=9090]) // in the log
它工作正常,我不会使用 Apache JMeter 对其进行测试。
这是我的结构 (HTTP 请求与其名称匹配。)
当我启动它时 - 日志显示以下错误:
<httpSample t="157" lt="0" ts="1356605101476" s="false" lb="/index.html" rc="Non HTTP response code: org.apache.http.client.ClientProtocolException" rm="Non HTTP response message: null" tn="Thread Group 1-1" dt="text" by="2021"/>
<httpSample t="10" lt="0" ts="1356605101637" s="false" lb="/about.html" rc="Non HTTP response code: org.apache.http.client.ClientProtocolException" rm="Non HTTP response message: null" tn="Thread Group 1-1" dt="text" by="2021"/>
<httpSample t="16" lt="0" ts="1356605101651" s="false" lb="/404e.html" rc="Non HTTP response code: org.apache.http.client.ClientProtocolException" rm="Non HTTP response message: null" tn="Thread Group 1-1" dt="text" by="2021"/>
如果您能给我一些提示,我将非常感激。
【问题讨论】:
-
使用查看结果树更容易调试
-
@AndreyBotalov,感谢您的建议,但我的日志文件中得到了相同的结果。
标签: java apache testing localhost jmeter