Forum Discussion

yinan's avatar
13 years ago

java.net.SocketTimeoutException: Read timed out

Hi,

I run the soapUI testSuite by using maven-soapui-plugin in maven which launches the test case runner, and I run into an java.net.SocketTimeoutException: Read timed out exception which I don't have while running the same test in soapUI IDE on the same machine.

17:09:21,102 INFO [SoapUITestCaseRunner] Running soapUI testcase [Save Flight Leg Date]
17:09:21,102 INFO [SoapUITestCaseRunner] running step [Generate FlightLeg]
17:09:21,118 INFO [log] AF
17:09:21,118 INFO [log] 1234
17:09:21,118 INFO [log] <FlightLegs xmlns='http://www.toto.com/APT/FOM/00'>
<FlightLeg>
<LegIdentifier>
<FlightDesignator>
<Airline>AF</Airline>
<FlightNumber>1234</FlightNumber>
</FlightDesignator>
<NumericalIdentifier></NumericalIdentifier>
<ListExternalIdentifier>
<ExternalLegIdentifier>
<Originator>FMG</Originator>
<LegIdentifier>FMG30070</LegIdentifier>
<LegVersion>1</LegVersion>
<VisitIdentifier>FMG30070V</VisitIdentifier>
<SequenceNumber>1</SequenceNumber>
<LegType>ARRIVAL</LegType>
</ExternalLegIdentifier>
</ListExternalIdentifier>
<DepartureAirport>ETZ</DepartureAirport>
<ArrivalAirport>MUC</ArrivalAirport>
</LegIdentifier>
<LegVersion />
<LegData>
<FlightStatus>
<StatusQualifier>General</StatusQualifier>
<StateId>30</StateId>
</FlightStatus>
<OperationTimesAndDurations>
<OperationTimeDuration>
<TimeType>SCT</TimeType>
<OperationQualifier>ONB</OperationQualifier>
<Time>2012-11-20T15:54:20.977Z</Time>
</OperationTimeDuration>
<OperationTimeDuration>
<TimeType>ACT</TimeType>
<OperationQualifier>ONB</OperationQualifier>
<Time>2012-11-20T15:59:21.008Z</Time>
</OperationTimeDuration>
<OperationTimeDuration>
<TimeType>MIN</TimeType>
<OperationQualifier>TTT</OperationQualifier>
<Duration>PT50M</Duration>
</OperationTimeDuration>
</OperationTimesAndDurations>
</LegData>
</FlightLeg>
</FlightLegs>
17:09:21,164 INFO [SoapUITestCaseRunner] running step [Save Flight Leg Date]
17:09:21,164 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
17:09:21,164 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /fom/rest-services/v1//flights/saveFlightLeg HTTP/1.1
17:10:21,680 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
17:12:31,055 DEBUG [HttpClientSupport$SoapUIHttpClient] Closing the connection.
17:12:31,055 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
17:12:31,055 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
17:12:31,055 ERROR [WsdlSubmit] Exception in request: java.net.SocketTimeoutException: Read timed out
17:12:31,055 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(SocketInputStream.java:129)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:149)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:110)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:264)
at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:252)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:281)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:247)
at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:219)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doReceiveResponse(HttpClientSupport.java:147)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
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: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 com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:76)
at com.eviware.soapui.impl.rest.RestRequest.submit(RestRequest.java:209)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTestRequestStep.java:898)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:238)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:147)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:42)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
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:662)
17:12:31,102 INFO [SoapUITestCaseRunner] Assertion [Verify General Processing Status] has status UNKNOWN
17:12:31,102 INFO [SoapUITestCaseRunner] Assertion [Verify the Error Code] has status UNKNOWN
17:12:31,102 INFO [SoapUITestCaseRunner] Assertion [Verify Error Qualifier] has status UNKNOWN
17:12:31,102 INFO [SoapUITestCaseRunner] Assertion [Verify Internal Version] has status UNKNOWN
17:12:31,102 INFO [SoapUITestCaseRunner] Assertion [Verify TOBT] has status UNKNOWN
17:12:31,102 INFO [SoapUITestCaseRunner] Assertion [Verify SOBT] has status UNKNOWN
17:12:31,102 INFO [SoapUITestCaseRunner] Assertion [Verify EOBT] has status UNKNOWN
17:12:31,102 INFO [SoapUITestCaseRunner] Assertion [Verify TSAT] has status UNKNOWN
17:12:31,102 INFO [SoapUITestCaseRunner] Assertion [Verify ASAT] has status UNKNOWN
17:12:31,102 INFO [SoapUITestCaseRunner] Assertion [Verify STOT] has status UNKNOWN
17:12:31,102 INFO [SoapUITestCaseRunner] Assertion [Verify RTOT] has status UNKNOWN
17:12:31,102 ERROR [SoapUITestCaseRunner] Save Flight Leg Date failed, exporting to [D:\Java\workspace\apt_FOM_Greasy\apps\fom\fom-app\target/surefire-reports\TOBT_Management-US951_Sc8__TOBT_calculation_with_specified_MTTT_AIBTMTTTEOBT-Create_Arrival_Flight_Leg_status_25-Backdoor_Template_Test_cases
__tbf-Save_Flight_Leg_Date-Save_Flight_Leg_Date-0-FAILED.txt]
17:12:31,102 INFO [log] --- End of Save Flight ---
17:12:31,102 INFO [SoapUITestCaseRunner] Finished running soapUI testcase [Save Flight Leg Date], time taken: 50ms, status: FAILED
17:12:31,118 ERROR [SoapUITestCaseRunner] Create Arrival Flight Leg (status >25) failed, exporting to [D:\Java\workspace\apt_FOM_Greasy\apps\fom\fom-app\target/surefire-reports\TOBT_Management-US951_Sc8__TOBT_calculation_with_specified_MTTT_AIBTMTTTEOBT-Create_Arrival_Flight_Leg_status_25-0-FAILED.t
xt]
17:12:31,118 INFO [SoapUITestCaseRunner] Finished running soapUI testcase [US#951 Sc#8 - TOBT calculation with specified MTTT (AIBT+MTTT>EOBT)], time taken: 190070ms, status: FAILED


any help will be appreciated,

thanks and regards
  • Hi,

    Did you find a solution to your problem ? I am facing the same problem and I would be interested in your answer.

    Best regards,
    Romain.