Apache jmeter-2.10-运行现有脚本时出现空点异常 [英] Apache jmeter - 2.10 - Null point exception while running an existing script

查看:155
本文介绍了Apache jmeter-2.10-运行现有脚本时出现空点异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jmeter脚本在apache-jmeter2.8上运行良好.我最近升级到apache-jmeter-2.10,开始出现Null Point异常.

The Jmeter script runs fine on apache-jmeter2.8. I upgraded recently to apache-jmeter-2.10 and I started getting Null Point exception.

我恢复为apache-jmeter2.8,脚本运行正常.

I revert back to apache-jmeter2.8 and the script works fine.

        java.lang.NullPointerException
at org.apache.jorphan.util.JOrphanUtils.replaceAllChars(JOrphanUtils.java:264)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.encodeSpaces(HTTPSamplerBase.java:1332)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.followRedirects(HTTPSamplerBase.java:1404)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing(HTTPSamplerBase.java:1482)
at org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.resultProcessing(HTTPAbstractImpl.java:306)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:381)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1105)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1094)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
at java.lang.Thread.run(Unknown Source)

该脚本是常规的登录脚本,尝试发布时会失败.

The script is general login script and the failure happens when it is trying to post.

如果您需要更多信息,请告诉我.

Let me know if you need more info.

推荐答案

您可能会遇到此已知错误,该错误已在每晚构建中修复:

You may be facing this known bug that has been fixed in nightly build:

作为一种解决方法,请尝试将http实现更改为Java,而不是HttpClient4实现.

As a workaround, try changing http implementation to Java instead of HttpClient4 implementation.

如果您想每晚进行尝试,请参阅:

If you want to give nightly build a try, see:

http://jmeter.apache.org/nightly.html

阅读:

安装JMeter运行时

Installing JMeter runtime

下载_bin和_lib文件

Download the _bin and _lib files

将归档文件解压缩到相同的目录结构中

Unpack the archives into the same directory structure

运行JMeter不需要其他档案.

The other archives are not needed to run JMeter.

这篇关于Apache jmeter-2.10-运行现有脚本时出现空点异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆