cancel
Showing results for 
Search instead for 
Did you mean: 

SocketTimeoutException in SOAP UI

Contributor

SocketTimeoutException in SOAP UI

Hi,

we are facing SocketTimeoutException in SOAP UI

do we need to take any precautions for doing load tests for range of 50000 or more?

I'm attaching the screen shot of the test steps we are using in Load Test

PFA

This is error we got,


at java.lang.Thread.run(Unknown Source)
12:17:37,060 INFO [SoapUIProLoadTestRunner] LoadTest [LoadTest 1] progress: 0.0
13266667, 50
12:17:37,408 ERROR [WsdlSubmit] Exception in request: java.net.SocketTimeoutExce
ption: Read timed out
12:17:37,408 ERROR [SoapUI] An error occured [Read timed out], see error log for
details
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:
78)
at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106
)
at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.
java:1116)
at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConn
ectionManager$HttpConnectionAdapter.readLine(SoapUIMultiThreadedHttpConnectionMa
nager.java:1706)
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMetho
dBase.java:1973)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodB
ase.java:1735)
at com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods.E
xtendedPostMethod.readResponse(ExtendedPostMethod.java:80)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j
ava:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
pMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
thodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:397)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequest
Transport.sendRequest(HttpClientRequestTransport.java:202)
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.rest.RestRequest.submit(RestRequest.java:208)

at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTe
stRequestStep.java:853)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestSt
ep(AbstractTestCaseRunner.java:232)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTe
stStep(WsdlTestCaseRunner.java:48)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalR
un(AbstractTestCaseRunner.java:141)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalR
un(AbstractTestCaseRunner.java:42)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractT




Regards,
Krish
12 REPLIES 12
Contributor

Re: SocketTimeoutException in SOAP UI

Fri Jan 20 10:43:32 EST 2012:login - Request 1:TestStep [login - Request 1] result status is FAILED; [java.net.SocketTimeoutException: Read timed out]:3
----------------------------------------------------
Status: FAILED
Time Taken: 0
Size: 0
Timestamp: Fri Jan 20 10:43:32 EST 2012
TestStep: login - Request 1

----------------- Messages ------------------------------
java.net.SocketTimeoutException: Read timed out

----------------- Properties ------------------------------
StatusCode: 0
Method: POST
HTTP Version: HTTP/1.1
Endpoint: http://localhost
URL: http://localhost/v1/users/login.xml

---------------- Request ---------------------------

<user>
<login>uname</login>
<password>pwd</password>
</user>

---------------- Response --------------------------

- missing response / garbage collected -

Re: SocketTimeoutException in SOAP UI

Hello,

Error you are getting ( java.net.SocketTimeoutException: Read timed out ) means that your server did not responded in defined time interval after request have been sent. This could be indication that something is not working properly on server you are hitting.
You can set your own in global preferences -> http settings tab.

robert
/SmartBear


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.
Contributor

Re: SocketTimeoutException in SOAP UI

Hello,

can you guys explain me clearly what needs to be done to over come the socket Timeout Exception while running load testing.

I'm facing this every time..


Kindly help out this.

Thanks,
Krish
Contributor

Re: SocketTimeoutException in SOAP UI

Issues I'm facing
----------------

1.explain me clearly how to configure and set time intervals to over come the Socket Time out Errors

2.How can we stop executing the tests once one of the test is failed
can you explain me how stop the tests automatically once the tests starts failing?

( Its waste of time to continue the tests further)

3.I'm running the Load Tests from command line,
I'm passing these parameters

C:\Program Files\eviware\soapUI-Pro-4.0.0\bin\loadtestrunner.bat -ehttp://173.251.31.170 -sTestProject -cMultipleRequest2 -l"LoadTest 1" -m20000 -n50 -r -f"C:\Users\randell\Desktop\Soapuitest" -o -R"LoadTest Report" -F PDF C:\Users\randell\Documents\devproject-soapui-project.xml

Is this right way?


correct me if I'm wrong


Thanks,
Krish

Re: SocketTimeoutException in SOAP UI

Hi Krish,

I'm guessing you need to improve the performance of either your server or your network - the error indicates that these can not handle the load sent by the loadtest.

regards!

/Ole
SmartBear Software


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.
Contributor

Re: SocketTimeoutException in SOAP UI

can you check my last post about the issues im facing

correct me if im wrong...

Re: SocketTimeoutException in SOAP UI

Hi Krish,

yes, this look correct to me - do you get the same errors if you decrease the thread-limit override?

regards!

/Ole
SmartBear Software


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.
Contributor

Re: SocketTimeoutException in SOAP UI

Hi,

How can we stop executing the tests once one of the test is failed
can you explain me how to stop the tests automatically once the tests starts failing?

( Its waste of time to continue the tests further)


Krish

Re: SocketTimeoutException in SOAP UI

Hi Krish,

Try adding TestStep Status Assertions to your LoadTest for the steps that timeout - set the limits so that it fails the LoadTest.

Hope this helps!

/Ole
SmartBear Software


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.
New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors