CXin
13 years agoFrequent Contributor
SoapUI 4.5.1 error
Below is error we encounted. Please refer to below request & error message.
Request:
POST http://ecg-api.kijiji.ca.staging.intern ... om/api/ads HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml;charset=UTF-8
Authorization: Basic QWx2aW5hOkFsdmluYQ==
Accept-Language: fr-CA
Content-Length: 3339
Host: ecg-api.kijiji.ca.staging.intern.qa-kijiji.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Error Message:
• Tue Aug 07 09:32:24 CST 2012:ERROR:org.apache.http.client.ClientProtocolException
• org.apache.http.client.ClientProtocolException
• at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:822)
• at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
• at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:236)
• at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:345)
• at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:241)
• at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
• at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
• at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
• at java.util.concurrent.FutureTask.run(FutureTask.java:138)
• at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
• at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
• at java.lang.Thread.run(Thread.java:680)
• Caused by: org.apache.http.ProtocolException: Content-Length header already present
• at org.apache.http.protocol.RequestContent.process(RequestContent.java:67)
• at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:108)
• at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:174)
• at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.preProcess(HttpClientSupport.java:106)
• at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:452)
• at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
• ... 11 more
Please advice us how to solve the error.
Request:
POST http://ecg-api.kijiji.ca.staging.intern ... om/api/ads HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml;charset=UTF-8
Authorization: Basic QWx2aW5hOkFsdmluYQ==
Accept-Language: fr-CA
Content-Length: 3339
Host: ecg-api.kijiji.ca.staging.intern.qa-kijiji.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Error Message:
• Tue Aug 07 09:32:24 CST 2012:ERROR:org.apache.http.client.ClientProtocolException
• org.apache.http.client.ClientProtocolException
• at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:822)
• at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
• at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:236)
• at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:345)
• at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:241)
• at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
• at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
• at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
• at java.util.concurrent.FutureTask.run(FutureTask.java:138)
• at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
• at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
• at java.lang.Thread.run(Thread.java:680)
• Caused by: org.apache.http.ProtocolException: Content-Length header already present
• at org.apache.http.protocol.RequestContent.process(RequestContent.java:67)
• at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:108)
• at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:174)
• at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.preProcess(HttpClientSupport.java:106)
• at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:452)
• at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
• ... 11 more
Please advice us how to solve the error.