Unanswered question

what is the meaning of "java.util.zip.ZipException: Invalid gzip bytes" error?

After upgrade of NeoLoad from 4.2.2 to 5.2.4, the script which is running successfully in older version is getting failed in new version with below error during script validation. Please suggest on this error.

Error detected by NeoLoad
Error Code: NL-RUNTIME-01 Message: Internal error occurred sending the request. See response for more details. Details: java.lang.RuntimeException: java.util.zip.ZipException: Invalid gzip bytes
Please refer to the documentation for further details and advice

Load Generator Log:
2016/10/17 02:06:26 INFO - neoload.LG_INFO: Starting LoadGenerator Version 5.2.4 ;build=20160915-619
2016/10/17 02:06:26 INFO - neoload.LG_INFO: OS Version: amd64 - Windows Server 2012 - 6.2
2016/10/17 02:06:26 INFO - neoload.LG_INFO: JVM Version: Oracle Corporation - 1.8.0_51 - Java HotSpot(TM) 64-Bit Server VM - Xmx= 1908932608 bytes
2016/10/17 02:06:26 INFO - neoload.LG_INFO: Sockets Tuning information: MaxUserPort registry key not found;TcpTimedWaitDelay registry key not found;
2016/10/17 02:06:26 INFO - neoload.LG_INFO: ALPN boot status: present
2016/10/17 02:06:26 INFO - neoload.LG: Registered to Agent. Port 20571
2016/10/17 02:06:26 INFO - neoload.LG: Launching inbound connection listener on port:20622
2016/10/17 02:06:26 INFO - neoload.LG: Connection established with the Controller localhost:7100:20622
2016/10/17 02:06:27 INFO - neoload.LG_INFO: WAN Emulation: enabled
2016/10/17 02:06:35 INFO - neoload.LG: Connection established with the Controller localhost:7100:20622
2016/10/17 02:06:35 INFO - neoload.LG_INFO: Jetty ThreadPool configuration: MinThread=20; MaxThread=20000; IdleTimeoutMs=10000; QueueSize=6000
2016/10/17 02:06:51 ERROR - neoload.HttpClient: Exception during the send java.lang.RuntimeException: java.util.zip.ZipException: Invalid gzip bytes
at org.eclipse.jetty.client.GZIPContentDecoder.decode(GZIPContentDecoder.java:298)
at org.eclipse.jetty.client.HttpReceiver.responseContent(HttpReceiver.java:333)
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.content(HttpReceiverOverHTTP.java:256)
at org.eclipse.jetty.http.HttpParser.parseContent(HttpParser.java:1475)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1218)
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:158)
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:119)
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:69)
at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:92)
at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:126)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:264)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.zip.ZipException: Invalid gzip bytes
at org.eclipse.jetty.client.GZIPContentDecoder.decode(GZIPContentDecoder.java:86)
... 17 more

nagaraju P.
nagaraju P.

nagaraju P.

Level
0
4 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

It seems that your server may have sent uncompressed data or at least NeoLoad is not able to unzip it. If the HTTP header contains the Content-Encoding: gzip value and the content is not compresse then the issue is with your application.

You can use Wireshark to confirm that.