首页 文章

使用JMeter 2.12时如何避免“java.util.zip.ZipException:Not in GZIP format”错误

提问于
浏览
3

我正在尝试使用JMeter 2.12记录我与SAAS网站的交互 . 我尝试登录后立即收到以下错误跟踪:

java.util.zip.ZipException:java.util.zip.GZIPInputStream中的java.util.zip.GZIPInputStream . (Unknown Source)中的java.util.zip.GZIPInputStream.readHeader(未知源)不是GZIP格式 . (来自org.apache的org.apache.http.client.entity.GzipDecompressingEntity.decorate(GzipDecompressingEntity.java:56)org.apache.http.client.entity.DecompressingEntity.getDecompressingStream(DecompressingEntity.java:68)中的未知来源 . 位于org.apache.http.client.entity.GzipDecompressingEntity.getContent(GzipDecompressingEntity.java:41)的org.apache.http.conn.BasicManagedEntity.getContent中的http.client.entity.DecompressingEntity.getContent(DecompressingEntity.java:82)( BasicManagedEntity.java:89)org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:348)org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java: 74)在org.apache.jmeter.protocol.http.proxy上的org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1141) . Proxy.run(Proxy.java:236)Blockquote

我搜索了解决方案,发现一个in BugZilla: Bug 51918,它说要关闭并发下载 . 我通过取消选中'HTTP Requests Defaults'中的"Retrieve All Embedded Resources"选项尝试了这一点 - 但仍然收到错误而无法继续 .

有人可以帮忙吗?非常感谢! --Ishti

1 回答

  • 2

    好的,我想我得到了答案 . 感谢Bhargav in his post,他基本上告诉将'HTTP sampler settings'(在HTTP测试脚本 Logger 中)更改为'Java' . 我试过了,它不再给我错误了 . 我可以继续谢谢!

相关问题