如何避免出现"java.util.zip.ZipException:不是GZIP格式"使用JMeter 2.12时出错 [英] How do I avoid the "java.util.zip.ZipException: Not in GZIP format" error while using JMeter 2.12

查看:2401
本文介绍了如何避免出现"java.util.zip.ZipException:不是GZIP格式"使用JMeter 2.12时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to record my interactions with a SAAS website using JMeter 2.12. I get the following error trace as soon as I try to login:

java.util.zip.ZipException:不是GZIP格式 在java.util.zip.GZIPInputStream.readHeader(未知来源) 在java.util.zip.GZIPInputStream.(未知来源) 在java.util.zip.GZIPInputStream.(未知来源) 在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.DecompressingEntity.getContent(DecompressingEntity.java:82) 在org.apache.http.client.entity.GzipDecompressingEntity.getContent(GzipDecompressingEntity.java:41) 在org.apache.http.conn.BasicManagedEntity.getContent(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.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1141) 在org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:236) 引用

java.util.zip.ZipException: Not in GZIP format at java.util.zip.GZIPInputStream.readHeader(Unknown Source) at java.util.zip.GZIPInputStream.(Unknown Source) at java.util.zip.GZIPInputStream.(Unknown Source) at org.apache.http.client.entity.GzipDecompressingEntity.decorate(GzipDecompressingEntity.java:56) at org.apache.http.client.entity.DecompressingEntity.getDecompressingStream(DecompressingEntity.java:68) at org.apache.http.client.entity.DecompressingEntity.getContent(DecompressingEntity.java:82) at org.apache.http.client.entity.GzipDecompressingEntity.getContent(GzipDecompressingEntity.java:41) at org.apache.http.conn.BasicManagedEntity.getContent(BasicManagedEntity.java:89) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:348) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1141) at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:236) Blockquote

我搜索了解决方案,并在BugZilla:错误51918 >表示关闭并发下载的位置.我尝试通过取消选中"HTTP请求默认值"中的检索所有嵌入式资源"选项来进行尝试,但是仍然出现错误并且无法继续.

I searched for the solution and found one in BugZilla: Bug 51918 where it says to turn off the concurrent download. I tried that by unchecking the "Retrieve All Embedded Resources" option in the 'HTTP Requests Defaults'- but still getting the error and cannot proceed.

任何人都可以帮忙吗?非常感谢! -伊什蒂

Can anyone please help? Thanks a lot! --Ishti

推荐答案

好的,我想我得到了答案.感谢 Bhargav的著作中,他基本上告诉过将"HTTP采样器设置"(在HTTP测试脚本记录器中)更改为"Java".我试过了,它不再给我错误了.我可以继续.谢谢!

Ok, I think I got an answer. Thanks to Bhargav in his post where he basically told to change the 'HTTP sampler settings' (in the HTTP test script recorder) to 'Java'. I tried that and it's not giving me the error anymore. I can proceed. Thanks!

这篇关于如何避免出现"java.util.zip.ZipException:不是GZIP格式"使用JMeter 2.12时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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