How do I avoid the “java.util.zip.ZipException: Not in GZIP format” error while using JMeter 2.12

大城市里の小女人 提交于 2020-01-13 03:37:47

问题


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: 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

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


回答1:


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!



来源:https://stackoverflow.com/questions/29026273/how-do-i-avoid-the-java-util-zip-zipexception-not-in-gzip-format-error-while

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!