如何避免“java.util.zip.ZipException: Not in GZIP format"?使用 JMeter 2.12 时出错 [英] How do I avoid the "java.util.zip.ZipException: Not in GZIP format" error while using 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(Unknown Source)在 java.util.zip.GZIPInputStream.(Unknown Source)在 java.util.zip.GZIPInputStream.(Unknown Source)在 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 中找到了一个 :Bug 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: Not in GZIP format"?使用 JMeter 2.12 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!