Menu

#397 Error getting response... connection reset

closed-accepted
nobody
general (369)
5
2015-11-04
2009-03-12
No

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

Discussion

  • Larry Kyrala

    Larry Kyrala - 2009-03-12

    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.

     
  • Nobody/Anonymous

    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?

     
  • Ole Lensmar

    Ole Lensmar - 2009-03-13

    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

     
  • Larry Kyrala

    Larry Kyrala - 2009-03-13

    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!

     
  • Larry Kyrala

    Larry Kyrala - 2009-03-13
    • status: open --> open-accepted
     
  • Larry Kyrala

    Larry Kyrala - 2009-03-13

    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.

     
  • Ole Lensmar

    Ole Lensmar - 2009-03-13

    It's a bug in 2.5.X.. fixed in 2.5.2.. sorry for the inconvenience..

    regards,

    /Ole
    eviware.com

     
  • Larry Kyrala

    Larry Kyrala - 2009-03-13

    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.)

     
  • Larry Kyrala

    Larry Kyrala - 2009-04-07

    closing this out since the problem was resolved as commented.

     
  • Larry Kyrala

    Larry Kyrala - 2009-04-07
    • status: open-accepted --> closed-accepted
     
  • srini

    srini - 2015-11-04

    Hi Larry,
    I am getting same error, I am using the SOAP UI version 4.5.2. The error is as follows

    Wed Nov 04 11:43:24 GST 2015:ERROR:java.net.SocketException: Connection reset
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at sun.security.ssl.InputRecord.readFully(Unknown Source)
    at sun.security.ssl.InputRecord.read(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
    at sun.security.ssl.AppOutputStream.write(Unknown Source)
    at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:131)
    at org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:138)
    at org.apache.http.impl.conn.LoggingSessionOutputBuffer.flush(LoggingSessionOutputBuffer.java:95)
    at org.apache.http.impl.io.ContentLengthOutputStream.flush(ContentLengthOutputStream.java:102)
    at org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:69)
    at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:96)
    at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108)
    at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:120)
    at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:263)
    at org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(AbstractClientConnAdapter.java:227)
    at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:255)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doSendRequest(HttpClientSupport.java:117)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
    at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:633)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:454)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:246)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:356)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:234)
    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$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)

    Thanks
    
     

Log in to post a comment.