Ask a Question

Proxy issues with the Maven plugin

PckSph
Not applicable

Proxy issues with the Maven plugin

Hello everybody,

We have tried (unsuccessfully so far) to use the soapUI maven plugin behind a proxy to consume a WS outside our network.

We have configured the plugin to use a soapUI settings as per the plugin documentation
<settingsFile>${basedir}/soapui-settings.xml</settingsFile>

When we execute the maven command line to launch the testSuite , we get the following exception:

ERROR [WsdlSubmit] Exception in request: java.net.UnknownHostException: ...
You will find below the full stack trace.

When using the same SOAP UI project configuration but execute it from the UI, the test is successful.

Thanks for your help.


**************
Please find below the list of the tools we use with the corresponding version:
- SOAP UI version :3.6
- maven version : 2.0.9
- SOAP UI maven plugin version: 3.5.1


**************
Full Stack Trace :

15:53:38,944 INFO [SoapUITestCaseRunner] running step [createMobiles - Test Request]
15:53:39,788 ERROR [WsdlSubmit] Exception in request: java.net.UnknownHostException: XXX
15:53:39,804 ERROR [SoapUI] An error occured [XXX], see error log for details
java.net.UnknownHostException: XXX
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:520)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:545)
at org.apache.commons.ssl.Java14.connectSocket(Java14.java:190)
at org.apache.commons.ssl.Java14.buildSocket(Java14.java:153)
at org.apache.commons.ssl.JavaImpl.createSocket(JavaImpl.java:206)
at org.apache.commons.ssl.SSL.createSocket(SSL.java:543)
at org.apache.commons.ssl.SSLClient.createSocket(SSLClient.java:221)
at org.apache.commons.ssl.HttpSecureProtocol.createSocket(HttpSecureProtocol.java:90)
at com.eviware.soapui.impl.wsdl.support.http.SoapUIEasySSLProtocolSocketFactory.createSocket(SoapUIEasySSLProtocolSocketFactory.java:48)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(SoapUIMultiThreadedHttpConnectionManager.java:1666)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:192)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:122)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:75)
at com.eviware.soapui.impl.wsdl.WsdlRequest.submit(WsdlRequest.java:235)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:324)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(WsdlTestCaseRunner.java:207)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:138)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:39)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:139)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
15:53:39,819 INFO [SoapUITestCaseRunner] Assertion [SOAP Response] has status UNKNOWN
15:53:39,819 INFO [SoapUITestCaseRunner] Assertion [Not SOAP Fault] has status UNKNOWN
15:53:39,819 INFO [SoapUITestCaseRunner] Assertion [Contains] has status UNKNOWN
15:53:39,819 ERROR [SoapUITestCaseRunner] createMobiles - Test Request failed, exporting to [Test_Request-0-FAILED.txt]
15:53:39,851 INFO [SoapUITestCaseRunner] Finished running soapUI testcase [Scénario de création / destruction complet], time taken: 1027ms, status: FAILED
15:53:39,866 INFO [SoapUITestCaseRunner] Project [XX] finished with status [FAILED] in 1109ms
[ERROR] java.lang.Exception: TestCase [XX] failed without assertions
0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: