Forum Discussion

pratoa's avatar
pratoa
Occasional Contributor
7 years ago
Solved

Decompression of response failed

Hi I am getting this error when I try to run my suite programmatically. I did what I saw in another response, eliminating the httpcomponents dependency, but this didn't work for me.

 

017-06-02 11:47:54,545 [TestNGInvoker-setUpTestCase()] INFO com.eviware.soapui.impl.wsdl.WsdlProject - Loaded project from [file:/Users/andres.prato/Documents/Bitbucket/genesis-auto-tests/src/test/soapUIProjects/QRT-soapui-project.xml]
java.io.IOException: Decompression of response failed
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpMethodSupport.getResponseBody(HttpMethodSupport.java:264)
at com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods.ExtendedGetMethod.getResponseBody(ExtendedGetMethod.java:154)
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.<init>(BaseHttpResponse.java:85)
at com.eviware.soapui.impl.wsdl.submit.transports.http.SinglePartHttpResponse.<init>(SinglePartHttpResponse.java:44)
at com.eviware.soapui.impl.wsdl.submit.filters.HttpPackagingResponseFilter.httpRequest(HttpPackagingResponseFilter.java:81)
at com.eviware.soapui.impl.wsdl.submit.filters.HttpPackagingResponseFilter.afterAbstractHttpResponse(HttpPackagingResponseFilter.java:52)
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:265)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:119)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:79)
at com.eviware.soapui.impl.rest.RestRequest.submit(RestRequest.java:192)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTestRequestStep.java:794)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:211)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:138)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:46)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:129)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.start(AbstractTestRunner.java:77)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:595)
at virginpulse.restcontracts.representations.rewards.RewardCase.executeGetActivities(RewardCase.java:177)
at virginpulse.restcontracts.representations.rewards.RewardCase.checkActivitiesListReturnRewardCount(RewardCase.java:186)
at virginpulse.functionalTest.reward.engage.SelfEnteredValidatedMeasurementRewardsTest.setUpTestCase(SelfEnteredValidatedMeasurementRewardsTest.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:54)
at org.testng.internal.InvokeMethodRunnable.run(InvokeMethodRunnable.java:44)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at org.apache.http.protocol.HttpCoreContext.getAttribute(HttpCoreContext.java:102)
at org.apache.http.protocol.HttpCoreContext.getAttribute(HttpCoreContext.java:117)
at org.apache.http.client.protocol.HttpClientContext.getRequestConfig(HttpClientContext.java:241)
at org.apache.http.client.protocol.ResponseContentEncoding.process(ResponseContentEncoding.java:129)
at com.eviware.soapui.impl.wsdl.support.CompressionSupport.decompress(CompressionSupport.java:86)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpMethodSupport.getResponseBody(HttpMethodSupport.java:262)
... 33 more

 

Any Ideas?

3 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Do you face any issue if the same project is used within soapui?
    Are you able to run this project using SOAPUI_HOME/bin/testrunner(.bat/.sh)?

    It is difficult without knowing how you are using or relevant code.
    • pratoa's avatar
      pratoa
      Occasional Contributor

      Hi Rao,

       

      When I run it within SoapUI it works perfectly. The error only shows up when running it programmatically. I narrow down the error to this:

       

      When calling it programmatically, instead of returning a string in JSON format it is returning a string with weird characters like this "�_o۶�� ��l@�XIܴ�;i�ũ{ ���D[D%R#�d�E��%�?". It looks like SoapUI is encrypting the response?

       

      Thank you,

       

      Andres Prato