I get the following error when I attempt to submit a request to an endpoint: "Error getting response; java.lang.Exception: java.net.SocketException: Connection reset"
I have verified that the endpoint service is running. I've tried deleting the service proxy in my workspace and then recreating it by pointing it at the WSDL url. It reads the WSDL and creates the call templates ok, but when I try to use any of them I get this error.
Please see the environment and stack trace below for more information.
Environment:
lkyrala@lkyrala-ibex-64:~$ uname -a
Linux lkyrala-ibex-64 2.6.27-11-generic #1 SMP Thu Jan 29 19:28:32 UTC 2009 x86_64 GNU/Linux
Ubuntu Ibex (8.10)
lkyrala@lkyrala-ibex-64:~$ java -version
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)
SoapUI 2.5.1; build dist-104-2009-02-01
This is the standalone app (not a plugin).
Stack trace:
java.lang.NullPointerException
at org.apache.commons.httpclient.HttpMethodBase.getStatusCode(HttpMethodBase.java:570)
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.<init>(BaseHttpResponse.java:71)
at com.eviware.soapui.impl.wsdl.submit.transports.http.SinglePartHttpResponse.<init>(SinglePartHttpResponse.java:40)
at com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.WsdlSinglePartHttpResponse.<init>(WsdlSinglePartHttpResponse.java:35)
at com.eviware.soapui.impl.wsdl.submit.filters.WsdlPackagingResponseFilter.afterWsdlRequest(WsdlPackagingResponseFilter.java:45)
at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.afterAbstractHttpResponse(AbstractRequestFilter.java:62)
at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.afterRequest(AbstractRequestFilter.java:56)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:164)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:118)
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:619)
java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.initHeaders(BaseHttpResponse.java:90)
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.<init>(BaseHttpResponse.java:81)
at com.eviware.soapui.impl.wsdl.submit.transports.http.SinglePartHttpResponse.<init>(SinglePartHttpResponse.java:40)
at com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.WsdlSinglePartHttpResponse.<init>(WsdlSinglePartHttpResponse.java:35)
at com.eviware.soapui.impl.wsdl.submit.filters.WsdlPackagingResponseFilter.afterWsdlRequest(WsdlPackagingResponseFilter.java:45)
at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.afterAbstractHttpResponse(AbstractRequestFilter.java:62)
at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.afterRequest(AbstractRequestFilter.java:56)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:164)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:118)
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:619)
13:59:49,507 ERROR [WsdlSubmit] Exception in request: java.lang.Exception: java.net.SocketException: Connection reset
13:59:49,507 ERROR [SoapUI] An error occured [java.net.SocketException: Connection reset], see error log for details
13:59:49,523 INFO [AbstractHttpRequestDesktopPanel] Error getting response for [EntitlementServiceSoapBinding.getEntitlements:example]; java.lang.Exception: java.net.SocketException: Connection reset
Thanks,
-lk
I just downloaded SoapUI 2.0.2; build soapui-dist-321 and loaded the same endpoints/workspace and it works fine. (same jdk, same env). So this must be a change within soapui? Hope this helps narrow it down.
I haven't confirmed this, but a friend of mine was having a similar problem and told me that a project created in version 2.0.2 will run ok in 2.5.1. If so, perhaps it's some kind of default setting that changed between the two?
Hi!
please check that the http-version in the http-preferences tab is 1.0 or 1.1 and not 0.9, which could be causing this.
If that doesn't help, I wonder if you could attach the contents of the http log for the failing request?
regards!
/Ole
eviware.com
Ah, yes, I checked the preferences and the default was indeed set to HTTP 0.9. HTTP 1.1 worked with my endpoints, so this fixed the problem.
I might question the default of "0.9" at this point with so many vendors on 1.0 or higher, but I'll leave that people in the know since there are probably other reasons for it.
Thanks!
The problem was solved by checking the preferences and setting HTTP preferences correctly. The default is http-version '0.9' which was incorrect for my web services.
It's a bug in 2.5.X.. fixed in 2.5.2.. sorry for the inconvenience..
regards,
/Ole
eviware.com
no problem, thanks. (I'm not sure what the etiquette is here so I didn't close the bug, but feel free to close it.)
closing this out since the problem was resolved as commented.
Hi Larry,
I am getting same error, I am using the SOAP UI version 4.5.2. The error is as follows