Forum Discussion

sbeauvais's avatar
sbeauvais
Contributor
11 years ago

[Res]Not in GZIP format

Hello,

I am getting an error / ZipException when receiving the following response.

Is the response incorrect (since it specifies Content-Encoding: gzip but the attachment is clear text?) or is it some other setting or internal error? (There seems to be no impact other than a lot of log output.)

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: ssnid=1a91b090959811e39b30a7663eb38fea; Domain=wsgw.dev.ag.gov.bc.ca; Path=/courts
Content-Encoding: gzip
Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_295EA83027EE90CE101392396632224; type="application/xop+xml"; start="<0.urn:uuid:295EA83027EE90CE101392396632225@apache.org>"; start-info="application/soap+xml"; action="http://courts.gov.bc.ca/xml/ns/pcss/report/v1/pcssReport_PortType/getJustinReportResponse"
Content-Length: 2497
Date: Fri, 14 Feb 2014 16:50:31 GMT


--MIMEBoundaryurn_uuid_295EA83027EE90CE101392396632224
Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml"
Content-Transfer-Encoding: binary
Content-ID: <0.urn:uuid:295EA83027EE90CE101392396632225@apache.org>

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><ser-root:getJustinReportResponse xmlns:ser-root="http://courts.gov.bc.ca/xml/ns/pcss/report/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><getJustinReportResponse><pcss:getJustinReportResponse xmlns:pcss="http://courts.gov.bc.ca/XMLSchema/PCSS/1.0.0"><pcss:ResponseCd>0</pcss:ResponseCd><pcss:ReportContent><xop:Include href="cid:1.urn:uuid:295EA83027EE90CE101392396632227@apache.org" xmlns:xop="http://www.w3.org/2004/08/xop/include" /></pcss:ReportContent></pcss:getJustinReportResponse></getJustinReportResponse></ser-root:getJustinReportResponse></soapenv:Body></soapenv:Envelope>

--MIMEBoundaryurn_uuid_295EA83027EE90CE101392396632224
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-ID: <1.urn:uuid:295EA83027EE90CE101392396632227@apache.org>

%PDF-1.4
1 0 obj
<<
/Creator (Oracle11gR1 AS Reports Services)
/CreationDate (D:20140214085030)
/ModDate (D:20140214085030)
/Producer (Oracle PDF driver)

...

%%EOF

--MIMEBoundaryurn_uuid_295EA83027EE90CE101392396632224--



Sincerely,
Severin B.

9 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Can you post the error that you are getting?




    Regards,
    Marcus
    SmartBear Support
  • Here is the error (from the testrunner output):

    00:04:42,436 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /courts/pcssReport HTTP/1.1
    00:04:42,499 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
    00:04:42,499 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
    00:04:42,514 ERROR [SoapUI] An error occurred [Not in GZIP format], see error log for details
    java.util.zip.ZipException: Not in GZIP format
    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    at com.eviware.soapui.impl.wsdl.support.CompressionSupport.GZIPDecompress(CompressionSupport.java:113)
    at com.eviware.soapui.impl.wsdl.support.CompressionSupport.decompress(CompressionSupport.java:75)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.PostResponseDataSource.<init>(PostResponseDataSource.java:52)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.MimeMessageResponse.<init>(MimeMessageResponse.java:54)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.WsdlMimeMessageResponse.<init>(WsdlMimeMessageResponse.java:56)
    at com.eviware.soapui.impl.wsdl.submit.filters.HttpPackagingResponseFilter.wsdlRequest(HttpPackagingResponseFilter.java:67)
    at com.eviware.soapui.impl.wsdl.submit.filters.HttpPackagingResponseFilter.afterAbstractHttpResponse(HttpPackagingResponseFilter.java:48)
    at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.afterRequest(AbstractRequestFilter.java:64)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:290)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:76)
    at com.eviware.soapui.impl.wsdl.WsdlRequest.submit(WsdlRequest.java:238)
    at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:417)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:235)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:148)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:43)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


    And from the error log:

    Fri Feb 14 11:17:41 PST 2014:ERROR:java.util.zip.ZipException: Not in GZIP format
    java.util.zip.ZipException: Not in GZIP format
    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    at com.eviware.soapui.impl.wsdl.support.CompressionSupport.GZIPDecompress(CompressionSupport.java:113)
    at com.eviware.soapui.impl.wsdl.support.CompressionSupport.decompress(CompressionSupport.java:75)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.PostResponseDataSource.<init>(PostResponseDataSource.java:52)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.MimeMessageResponse.<init>(MimeMessageResponse.java:54)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.WsdlMimeMessageResponse.<init>(WsdlMimeMessageResponse.java:56)
    at com.eviware.soapui.impl.wsdl.submit.filters.HttpPackagingResponseFilter.wsdlRequest(HttpPackagingResponseFilter.java:67)
    at com.eviware.soapui.impl.wsdl.submit.filters.HttpPackagingResponseFilter.afterAbstractHttpResponse(HttpPackagingResponseFilter.java:48)
    at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.afterRequest(AbstractRequestFilter.java:64)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:290)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Do you have deflate in the Accept-Encoding when sending the request?

    Example:
    Accept-Encoding: gzip, deflate




    Regards,
    Marcus
    SmartBear Support
  • SmartBear Support wrote:
    Do you have deflate in the Accept-Encoding when sending the request?


    Yes. Is this good or bad?

    The request header is as follows (without auth or host strings):

    POST https://***/courts/pcssReport HTTP/1.1
    Accept-Encoding: gzip,deflate
    Content-Type: application/soap+xml;charset=UTF-8;action="JusticePCSSCommon_wsProvider_pcssReport_Binder_getJustinReport"
    Authorization: Basic ***==
    Content-Length: 942
    Host: ***
    Connection: Keep-Alive
    User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,
    The response seems to be incorrect. As you can see, Content-Encoding is gzip in the response header but the individual part is not in compressed format.

    Best Regards,
    Prakash
    SmartBear Sweden
      • RahulADF's avatar
        RahulADF
        Occasional Visitor

        HI, still not able to find any solution with this post? Any one please share.

         

        Thanks,

        Rahul

    • Anitha1's avatar
      Anitha1
      New Contributor

      HI I dont understand, How to resolve this error:java.util.zip.zipExceptions: Not in GZIP format. Plz helps me.

      SmartBear_Suppo wrote:
      Hi,
      The response seems to be incorrect. As you can see, Content-Encoding is gzip in the response header but the individual part is not in compressed format.

      Best Regards,
      Prakash
      SmartBear Sweden

      SmartBear_Suppo wrote:
      Hi,
      The response seems to be incorrect. As you can see, Content-Encoding is gzip in the response header but the individual part is not in compressed format.

      Best Regards,
      Prakash
      SmartBear Sweden

      SmartBear_Suppo wrote:
      Hi,
      The response seems to be incorrect. As you can see, Content-Encoding is gzip in the response header but the individual part is not in compressed format.

      Best Regards,
      Prakash
      SmartBear Sweden

      SmartBear_Suppo wrote:
      Hi,
      The response seems to be incorrect. As you can see, Content-Encoding is gzip in the response header but the individual part is not in compressed format.

      Best Regards,
      Prakash
      SmartBear Sweden