Forum Discussion

jlfabi's avatar
jlfabi
New Member
10 years ago

Testrunner Error - java.net.SocketTimeoutException: Read timed out

I have a SOAPUI project that completes succesfully when run in the UI. However when I run same project using the command line (testrunner.bat) it fails. The error is "java.net.SocketTimeoutException: Read timed out". The failure happens after the first two tests complete succesfully.

 

The test runner is being executed via a Jenkins project.

 

Any idea's or solutions on why this is occurring would be appreciated.

 

Below is the output

 

[echo] Running soapUI Test...
[echo] soapUI project folder is C:\gatewayservice\Services\CustomerProfileService\trunk\soapui\GatewayCustomerProfileLocalTest-soapui-project
[echo] soapUI test runner folder is C:\Jenkins\projects\Gateway\tools\soapui-4.5.1\bin\testrunner.bat
[exec] soapUI 4.5.1 TestCase Runner
[exec] 11:59:08,678 INFO [DefaultSoapUICore] Creating new settings at [C:\Windows\System32\config\systemprofile\soapui-settings.xml]
[exec] 11:59:09,392 INFO [WsdlProject] Loaded project from [file:/C:/gatewayservice/Services/CustomerProfileService/trunk/soapui/GatewayCustomerProfileLocalTest-soapui-project.xml]
[exec] 11:59:09,805 INFO [SoapUITestCaseRunner] Running soapUI tests in project [GatewayCustomerProfileLocalTest]
[exec] 11:59:09,805 INFO [SoapUITestCaseRunner] Running Project [GatewayCustomerProfileLocalTest], runType = SEQUENTIAL
[exec] 11:59:09,843 INFO [SoapUITestCaseRunner] Running soapUI testcase [ValidateBillingAccount_MakeOneTimePayment]
[exec] 11:59:09,847 INFO [SoapUITestCaseRunner] running step [Ping]
[exec] 11:59:09,955 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
[exec] 11:59:09,955 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: GET /Travelers.eBusiness.Gateway.CustomerProfileService.WebApi/api/v1/ping HTTP/1.1
[exec] 11:59:16,369 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
[exec] 11:59:16,372 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
[exec] 11:59:16,385 INFO [SoapUITestCaseRunner] Assertion [Valid HTTP Status Codes] has status VALID
[exec] 11:59:16,390 INFO [SoapUITestCaseRunner] running step [ValidateBillingAccount - MakeOneTimePayment]
[exec] 11:59:16,392 DEBUG [HttpClientSupport$SoapUIHttpClient] Stale connection check
[exec] 11:59:16,394 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
[exec] 11:59:16,394 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /Travelers.eBusiness.Gateway.CustomerProfileService.WebApi/api/v1/validatebillingaccount HTTP/1.1
[exec] 11:59:23,971 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
[exec] 11:59:23,971 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
[exec] 11:59:24,123 INFO [SoapUITestCaseRunner] Assertion [Valid HTTP Status Codes] has status VALID
[exec] 11:59:24,125 INFO [SoapUITestCaseRunner] running step [ValidateBillingAccount - Invalid Action]
[exec] 11:59:24,126 DEBUG [HttpClientSupport$SoapUIHttpClient] Stale connection check
[exec] 11:59:24,127 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
[exec] 11:59:24,127 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /Travelers.eBusiness.Gateway.CustomerProfileService.WebApi/api/v1/validatebillingaccount HTTP/1.1
[exec] 12:00:24,130 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
[exec] 12:00:24,130 DEBUG [HttpClientSupport$SoapUIHttpClient] Closing the connection.
[exec] 12:00:24,130 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
[exec] 12:00:24,131 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
[exec] 12:00:24,133 ERROR [WsdlSubmit] Exception in request: java.net.SocketTimeoutException: Read timed out
[exec] 12:00:24,134 ERROR [SoapUI] An error occured [Read timed out], see error log for details
[exec] java.net.SocketTimeoutException: Read timed out
[exec] at java.net.SocketInputStream.socketRead0(Native Method)
[exec] at java.net.SocketInputStream.read(SocketInputStream.java:150)
[exec] at java.net.SocketInputStream.read(SocketInputStream.java:121)
[exec] at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:149)
[exec] at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:110)
[exec] at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:264)
[exec] at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
[exec] at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:252)
[exec] at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:281)
[exec] at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:247)
[exec] at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:219)
[exec] at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doReceiveResponse(HttpClientSupport.java:147)
[exec] at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
[exec] at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:633)
[exec] at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:454)
[exec] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
[exec] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
[exec] at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:236)
[exec] at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:345)
[exec] at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:241)
[exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
[exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:76)
[exec] at com.eviware.soapui.impl.rest.RestRequest.submit(RestRequest.java:209)
[exec] at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTestRequestStep.java:898)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:238)
[exec] at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:147)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:42)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
[exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[exec] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[exec] at java.util.concurrent.FutureTask.run(FutureTask.java:166)
[exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[exec] at java.lang.Thread.run(Thread.java:722)
[exec] 12:00:24,142 INFO [SoapUITestCaseRunner] Assertion [Valid HTTP Status Codes] has status UNKNOWN
[exec] 12:00:24,142 INFO [SoapUITestCaseRunner] Assertion [Script Assertion] has status UNKNOWN
[exec] 12:00:24,142 ERROR [SoapUITestCaseRunner] ValidateBillingAccount - Invalid Action failed, exporting to [C:\gatewayservice\Services\CustomerProfileService\trunk\results\SoapUI\ValidateBillingAccount_IntegrationTests-ValidateBillingAccount_MakeOneTimePayment-ValidateBillingAccount__Invalid_Action-0-FAILED.txt]
[exec] 12:00:24,156 INFO [SoapUITestCaseRunner] Finished running soapUI testcase [ValidateBillingAccount_MakeOneTimePayment], time taken: 14044ms, status: FAILED
[exec] 12:00:24,156 INFO [SoapUITestCaseRunner] Project [GatewayCustomerProfileLocalTest] finished with status [FAILED] in 74348ms

No RepliesBe the first to reply