Forum Discussion

Serg1981's avatar
Serg1981
Occasional Contributor
13 years ago

soapUI maven plugin, rest servise SSL exception

I run soapUI test with maven plugin. When it is used http protocol everything is ok. But when I use https protocol server returns excepion:
Sending request: POST /admin/rest/eltype HTTP/1.1
12:00:14,107 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClient
Connection] I/O error closing connection
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHands
hakeException: Received fatal alert: handshake_failure
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.jav
a:1358)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.j
ava:1370)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.ja
va:44)


I tried to check this request from soapUI (connection via https) and it worked ok. I searched the info how to adjust maven plugin rest service request via https but I did not found anything. It seems that this is plugin defect, but I'm not sure.

5 Replies

  • Serg1981's avatar
    Serg1981
    Occasional Contributor
    Apache Maven 3.0.4 (r1232337; 2012-01-17 11:44:56+0300)
    maven-soapui-plugin 4.5.1
  • Serg1981's avatar
    Serg1981
    Occasional Contributor
    Test passed when it run from soapUI GUI.
    I found that there is path to .keystore path in %USER_HOME%/soapui-settings.xml, but I don't know how to configure maven to use these settings. I thought soapui-maven-plugin use these settings
  • Serg1981's avatar
    Serg1981
    Occasional Contributor
    Thanks. I checked the logs and the plugin loaded correct soapui-settings.xml. It appears that maven-soapui-plugin uses same settings as soapUI GUI. So, it seems that it's maven-soapui-plugin bug
  • Serg1981's avatar
    Serg1981
    Occasional Contributor
    You are right. I had java installed with soapUI with version 1.7.0_02 and maven was launched with java 1.6.0_37. I checked: the exception can be reproduced on java 1.6 both on soapUI GUI and maven-soapui-plugin.

    Thanks a lot for your help, with java 1.7 everything works ok.
  • I'm using maven 2.x and maven soapui pro plugin 4.5.1.
    I was getting the same error what you were getting "Handshake failure" when executing from maven. But it worked fine when I was executing from soapui.
    After I read your post and upgraded the java from 1.6 to 1.7, it got worked.
    Thanks a lot for your post. This post really saved my time.

    The maven soapui plugin 4.0.0 also works fine with maven ssl. But java 1.7 is required.

    Nice post. Thanks again.