Forum Discussion

LucianHirsu's avatar
LucianHirsu
New Contributor
11 years ago

SoapUIMultiThreadedHttpConnectionManager Connection closed

Hello,

I need help with a randomly experienced issue/problem (might be an intermittent bug/defect). I'm running SoapUI Test Suites through maven and 4.6.1 SoapUI Maven plugin. This test execution is triggered via a Jenkins job.

Please see a pom.xml excerpt:

......
<pluginRepository>
<id>smartbear-sweden-plugin-repository</id>
<url>http://www.soapui.org/repository/maven2/</url>
</pluginRepository>
......
......
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>4.6.1</version>
......

Some of these test cases send requests to an asynchronous web service. The responses in these cases are received in SoapUI within Mock Response test steps configured to listen on, for example /PartyEBFResponseBinding/AddOrgResponse port 8001. The thing is that most of the times the test execution jams/stops at this point with the following Jenkins log message:

12:07:14 12:07:24,418 INFO [WsdlMockRunner] Mounted WSDL for interface [PartyEBFResponseBinding] at [/PartyEBFResponseBinding/AddOrgResponse?WSDL]
12:07:14 12:07:24,586 INFO [JettyMockEngine] Started mockService [Mock AddOrgResponse] on port [8001] at path [/PartyEBFResponseBinding/AddOrgResponse]
12:07:39 12:07:49,307 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed

The fault details on server side, seen in OEM (Oracle Enterprise Manager), specify that:

Non Recoverable System Fault :
<bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>oracle.fabric.common.FabricInvocationException: Unable to invoke endpoint URI "http://10.168.41.126:8001/PartyEBFResponseBinding/AddOrgResponse" successfully due to: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused</summary></part><part name="detail"><detail>Unable to invoke endpoint URI "http://10.168.41.126:8001/PartyEBFResponseBinding/AddOrgResponse" successfully due to: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused</detail></part><part name="code"><code>null</code></part></remoteFault></bpelFault>

It seems like the remote machine on which these tests run refuses the connection.
This test execution sometimes runs smoothly till the end without jamming, sometimes meaning (as I've noticed) once a day, i.e the first run. Subsequent runs jam. Out of 10 runs a day, 9 fail I would say.

I've attached two log files: one log shows the success scenario and the other one displays the logs collected till the test run blocks and the connection is closed.

Did anyone encounter this behavior/issue before? Is it a configuration mistake that I did or is this a known issue?
Note: All these test suites run perfectly when I’m not using maven and the Jenkins job, that is, running them locally on the remote machine from SoapUI with TestRunner.

Please tell me if you need additional details in order to investigate. I need to find a solution or an workaround as soon as possible as these suites need to be executed at any hour by triggering the Jenkins job.

Thank you very much,
Lucian

10 Replies

  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    hi
    did you find a solution to your problem?
    in your previous post, log files are missing.

    If you still need help, please attach them (remove sensible information if needed)
    Thanks
  • No, I haven't found a solution yet...I've attached the logs.

    Thanks,
    Lucian
  • Tatyana's avatar
    Tatyana
    New Contributor
    Hello! Getting same picture with 1-to-N successful-failed runs. With Pro 4.6.4 test-runner on Win Server 2008 R2

    Execution hangs on running the rest request step with the same:
    [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed


    I get this in about 30 seconds after the step is started instead of usual:
    [HttpClientSupport$SoapUIHttpClient] Stale connection check.


    Not sure if I'm able/allowed to provide you with the full logs, but can cut some 'pieces' out if necessary.
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    LucianHirsu I don't know if you have found a solution for this.
    When you run the project without the maven plugin, do you use the same user than you use when running Jenkins?

    settings configuration file use by maven is by default, the file that is stored in your user HOME. So that's why I am asking, because this can produce different behaviour
  • MKR2000's avatar
    MKR2000
    New Contributor
    I am facing same issue.
    Execution of SOAPUI test cases for a project just stops after following statement.There is no authentication. Have they found any solution for this?

    SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed

    Execution was triggered through jenkins and pom is configured as follows:

    <pluginRepositories>
    <pluginRepository>
    <id>smartbear-sweden-plugin-repository</id>
    <url>http://www.soapui.org/repository/maven2/</url>
    </pluginRepository>
    </pluginRepositories>
    <build>
    <plugins>
    <plugin>
    <groupId>com.smartbear.soapui</groupId>
    <artifactId>soapui-maven-plugin</artifactId>
    <version>5.0.0</version>
    <executions>


    SOAPUI settings.xml is configured as seen below;

    <?xml version="1.0" encoding="UTF-8"?>
    <con:soapui-settings xmlns:con="http://eviware.com/soapui/config">
    <con:setting id="WsdlSettings@cache-wsdls">true</con:setting>
    <con:setting id="WsdlSettings@pretty-print-response-xml">true</con:setting>
    <con:setting id="HttpSettings@include_request_in_time_taken">true</con:setting>
    <con:setting id="HttpSettings@include_response_in_time_taken">true</con:setting>
    <con:setting id="UISettings@auto_save_interval">0</con:setting>
    <con:setting id="WsdlSettings@excluded-types">&lt;con:entry xmlns:con="http://eviware.com/soapui/config">schema@http://www.w3.org/2001/XMLSchema&lt;/con:entry></con:setting>
    <con:setting id="WsdlSettings@name-with-binding">true</con:setting>
    <con:setting id="HttpSettings@max_connections_per_host">500</con:setting>
    <con:setting id="HttpSettings@close-connections">true</con:setting>
    <con:setting id="HttpSettings@max_total_connections">2000</con:setting>
    <con:setting id="HttpSettings@socket_timeout">200000</con:setting>
    </con:soapui-settings>
  • MKR2000's avatar
    MKR2000
    New Contributor
    I see this exception when I run it as jenkins job from central CI