AnsweredAssumed Answered

Intermittent Issue with ITR/Staged SOAP request

Question asked by paulrehi on May 6, 2015

Hello,

We are working with CA LISA 7.5.2 and are running into an intermittent issue when trying to perform a SOAP request against one of our services when using ITR or Staging the test .  Essentially, about 10-25% of the time the step passes with no issues and we successfully get our response.  The majority of the time we get an error but no service response, depending on the step we are using (we have tried two and I will detail them below).  When performing the call from the test functions while editing the step we have never seen the problem (nor while using SOAPUI), it only creeps up when we try to use ITR or staging the test.  We have tried hitting different versions of our service at different URLs, with no success.  We have attempted performing the test from several different workstations, again with no change to the intermittent nature of the issue.

 

The two steps we have tried are: Raw SOAP Request, Web Service Execution (XML)

 

When we use the Raw SOAP Request step in ITR, we get an empty response tab.  If we move to the Test Events, we never see a Step Request with our request XML in it when a failure occurs, but we do get a Step Error (below).  The handful of times it works, everything looks normal in the Test Events.  While watching the HTTP/SSL debug, we can see the envelope, but we never see it actually making the request in the Test Events, which is odd.  The long Step Error is as follows:

============================================================================
| org.apache.http.NoHttpResponseException: The target server failed to respond
============================================================================
| Step:        CreateRentalReservation
----------------------------------------------------------------------------
| Message:     The target server failed to respond
----------------------------------------------------------------------------
| Trapped Exception: The target server failed to respond
| Trapped Message:   org.apache.http.NoHttpResponseException: The target server failed to respond
----------------------------------------------------------------------------
STACK TRACE
org.apache.http.NoHttpResponseException: The target server failed to respond
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:95)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:62)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:289)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:300)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:712)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:517)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at com.itko.lisa.test.CommTrans.doSend(CommTrans.java:1000)
at com.itko.lisa.test.CommTrans.send(CommTrans.java:795)
at com.itko.lisa.test.CommTrans.sendPOST(CommTrans.java:773)
at com.itko.lisa.ws.RawSOAPNode.execute(RawSOAPNode.java:231)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:993)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1113)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1098)
at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1047)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:68)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:960)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Unknown Source)
============================================================================

 

 

 

When we use the Web Service Execution (XML) step in ITR, we get something in the response tab (shown below).  Unlike the above step, we get a Step Request in our Test Events with this one, we also get a Step Response (does not look like it came from our service however).  Again, while watching the HTTP/SSL debug, we see our soap envelope, but never see anything after that if the test fails, not even the supposed response.  The response tab we get is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <soapenv:Fault>
      <faultcode>soapenv:Server.userException</faultcode>
      <faultstring>java.net.SocketException: Software caused connection abort: recv failed</faultstring>
      <detail>
        <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at com.itko.lisa.remote.client.socket.TrackingSocketInputStream.read(TrackingSocketInputStream.java:72)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:166)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:90)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:281)
at org.apache.http.impl.conn.LoggingSessionInputBuffer.readLine(LoggingSessionInputBuffer.java:115)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:92)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:62)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:289)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:300)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:712)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:517)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at com.itko.lisa.ws.axis.LisaHTTPSender.doInvoke(LisaHTTPSender.java:496)
at com.itko.lisa.ws.axis.LisaHTTPSender.invoke(LisaHTTPSender.java:274)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2837)
at org.apache.axis.client.Call.invoke(Call.java:2820)
at com.itko.lisa.ws.nx.NxWSStep.executeCall(NxWSStep.java:383)
at com.itko.lisa.ws.nx.NxWSStep.execute(NxWSStep.java:287)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:993)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1113)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1098)
at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1047)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:68)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:960)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Unknown Source)</ns1:stackTrace>
        <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">XD-DW764-316</ns2:hostname>
      </detail>
    </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>

 

 

At this point, we are unsure why this happens randomly only when we are staging the test or doing an ITR.  Anyone have any thoughts or seen this issue before?

Outcomes