1、在JMeter执行后执行失败的请求中显示的为乱码(录制的为QQ登陆与登出操作)
2、通过查看日志发现报以下错误:
ERROR - jmeter.JMeter: Uncaught exception: java.lang.NullPointerException
at org.apache.jmeter.protocol.http.visualizers.RequestViewHTTP.getQueryMap(RequestViewHTTP.java:304)
at org.apache.jmeter.protocol.http.visualizers.RequestViewHTTP.setSamplerResult(RequestViewHTTP.java:223)
at org.apache.jmeter.visualizers.RequestPanel.setSamplerResult(RequestPanel.java:109)
at org.apache.jmeter.visualizers.SamplerResultTab.setupTabPane(SamplerResultTab.java:229)
at org.apache.jmeter.visualizers.ViewResultsFullVisualizer.valueChanged(ViewResultsFullVisualizer.java:263)
at javax.swing.JTree.fireValueChanged(Unknown Source)
3、曾经尝试以下两种方法都未能解决:
1)修改JMeter的配置文件,将sampleresult.default.encoding设置为UTF-8
2)加入HTTP信息头管理器,增加名称:Accept,值:application/xml;application/json;charset=uft-8
,