Forum Discussion

Rashmin's avatar
13 years ago

Address family not supported error

I just installed SOAPUI 4.5.1(32 bit) on my windows 7.
when I try to submit a request, I'm getting the below error message -
Exception in request: java.net.SocketException: Address family not supported by protocol family: connect
I have also saved the wsdl locally.
Please help me resolve this issue.

Thanks,
Rashmi


error log as below -
Sun Apr 21 17:22:05 IST 2013:INFO:initialized soapui-settings from [C:\Users\rashmi\soapui-settings.xml]
Sun Apr 21 17:22:06 IST 2013:INFO:Loading workspace from [C:\Users\rashmi\default-soapui-workspace.xml]
Sun Apr 21 17:22:06 IST 2013:INFO:Used java version: 1.7.0_02
Scheduling garbage collection every 60 seconds
Sun Apr 21 17:22:08 IST 2013:ERROR:An error occured [Address family not supported by protocol family: connect], see error log for details
Address family not supported by protocol family: connect
The cajo server is running on localhost:1198/soapuiIntegration
Sun Apr 21 17:23:04 IST 2013:INFO:Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/soapUI-4.5.1/bin/soapui-4.5.1.jar!/com/eviware/soapui/resources/xsds/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include
Sun Apr 21 17:23:04 IST 2013:INFO:Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/soapUI-4.5.1/bin/soapui-4.5.1.jar!/com/eviware/soapui/resources/xsds/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchema
Sun Apr 21 17:23:04 IST 2013:INFO:Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/soapUI-4.5.1/bin/soapui-4.5.1.jar!/com/eviware/soapui/resources/xsds/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace
Sun Apr 21 17:23:04 IST 2013:INFO:Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/soapUI-4.5.1/bin/soapui-4.5.1.jar!/com/eviware/soapui/resources/xsds/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1/xsd
Sun Apr 21 17:23:04 IST 2013:INFO:Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/soapUI-4.5.1/bin/soapui-4.5.1.jar!/com/eviware/soapui/resources/xsds/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xmlmime
Sun Apr 21 17:23:04 IST 2013:INFO:Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/soapUI-4.5.1/bin/soapui-4.5.1.jar!/com/eviware/soapui/resources/xsds/xmime200411.xsd with targetNamespace http://www.w3.org/2004/11/xmlmime
Sun Apr 21 17:23:04 IST 2013:INFO:Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/soapUI-4.5.1/bin/soapui-4.5.1.jar!/com/eviware/soapui/resources/xsds/soapEnvelope.xsd with targetNamespace http://schemas.xmlsoap.org/soap/envelope/
Sun Apr 21 17:23:04 IST 2013:INFO:Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/soapUI-4.5.1/bin/soapui-4.5.1.jar!/com/eviware/soapui/resources/xsds/soapEncoding.xsd with targetNamespace http://schemas.xmlsoap.org/soap/encoding/
Sun Apr 21 17:23:04 IST 2013:INFO:Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/soapUI-4.5.1/bin/soapui-4.5.1.jar!/com/eviware/soapui/resources/xsds/soapEnvelope12.xsd with targetNamespace http://www.w3.org/2003/05/soap-envelope
Sun Apr 21 17:23:04 IST 2013:INFO:Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/soapUI-4.5.1/bin/soapui-4.5.1.jar!/com/eviware/soapui/resources/xsds/soapEncoding12.xsd with targetNamespace http://www.w3.org/2003/05/soap-encoding
Sun Apr 21 17:23:04 IST 2013:DEBUG:Loading Definition...
Sun Apr 21 17:23:04 IST 2013:DEBUG:Loading WSDL: file:\C:\Users\rashmi\Documents\SOAP%20Prjs\s2.php.wsdl
Sun Apr 21 17:23:04 IST 2013:DEBUG:Returning baseInputSource [file:\C:\Users\rashmi\Documents\SOAP%20Prjs\s2.php.wsdl]
Sun Apr 21 17:23:04 IST 2013:INFO:Loading schema types from [file:\C:\Users\rashmi\Documents\SOAP%20Prjs\s2.php.wsdl]
Sun Apr 21 17:23:04 IST 2013:INFO:Getting schema file:\C:\Users\rashmi\Documents\SOAP%20Prjs\s2.php.wsdl
Sun Apr 21 17:23:05 IST 2013:DEBUG:Loaded Definition: ok
Sun Apr 21 17:23:05 IST 2013:INFO:Finding importer for {urn:ChnEmergency}ChnEmergencyBinding
Sun Apr 21 17:23:05 IST 2013:INFO:Importing binding {urn:ChnEmergency}ChnEmergencyBinding
Sun Apr 21 17:23:05 IST 2013:INFO:importing endpoint http://chennaiemergency.co.in/sree/s2.php
Sun Apr 21 17:23:05 IST 2013:INFO:importing operation fire
Sun Apr 21 17:23:05 IST 2013:INFO:importing operation hospital
Sun Apr 21 17:23:05 IST 2013:INFO:importing operation police
Sun Apr 21 17:23:48 IST 2013:ERROR:Exception in request: java.net.SocketException: Address family not supported by protocol family: connect
Sun Apr 21 17:23:48 IST 2013:ERROR:An error occured [Address family not supported by protocol family: connect], see error log for details
Sun Apr 21 17:23:48 IST 2013:INFO:Error getting response for [ChnEmergencyBinding.fire:Request 1]; java.net.SocketException:

6 Replies

  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Hi, could you check your soapui-errors.log file (in soapui/bin directory). You should get more information about the cause of the error
    I've seen the following workaround when that kind of error occurs (see http://fusesource.com/issues/browse/FABRIC-311 for instance):
    Modify the soapui.bat/sh starting file and add -Djava.net.preferIPv4Stack=true
  • SOAPuiZ's avatar
    SOAPuiZ
    New Contributor
    Hi,
    Is this the correct insert?

    @echo off

    set SOAPUI_HOME=%~dp0
    if exist "%SOAPUI_HOME%..\jre\bin" goto SET_BUNDLED_JAVA

    if exist "%JAVA_HOME%" goto SET_SYSTEM_JAVA

    echo JAVA_HOME is not set, unexpected results may occur.
    echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
    goto SET_SYSTEM_JAVA

    :SET_BUNDLED_JAVA
    set JAVA=%SOAPUI_HOME%..\jre\bin\java
    goto END_SETTING_JAVA

    :SET_SYSTEM_JAVA
    set JAVA=java

    :END_SETTING_JAVA


    rem init classpath

    set CLASSPATH=%SOAPUI_HOME%soapui-4.5.1.jar;%SOAPUI_HOME%..\lib\*;

    rem JVM parameters, modify as appropriate
    set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties "-Dsoapui.home=%SOAPUI_HOME%\"

    if "%SOAPUI_HOME%" == "" goto START
    set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.libraries="%SOAPUI_HOME%ext"
    set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.listeners="%SOAPUI_HOME%listeners"
    set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.actions="%SOAPUI_HOME%actions"
    set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%SOAPUI_HOME%\"
    set JAVA_OPTS=%JAVA_OPTS% -Dwsi.dir="%SOAPUI_HOME%..\wsi-test-tools"
    rem uncomment to disable browser component
    rem set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.jxbrowser.disable="true"
    set JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true

    :START

    rem ********* run soapui ***********

    "%JAVA%" %JAVA_OPTS% com.eviware.soapui.SoapUI %*
  • nmrao's avatar
    nmrao
    Community Hero
    Do you see the same issue if run your test after that change?
  • nmrao's avatar
    nmrao
    Community Hero
    May be related to SOAP Binding version. is it 1.1 or 1.2 that you are using? And what is the version supported by application ?
    You may check it in soapui properties when you click on the service interface.
  • bhavyasravani's avatar
    bhavyasravani
    Occasional Contributor
    Hi,

    You can do it this way. Even I was facing a similar problem and then by adding it this way, the problem got solved:

    @echo off

    set SOAPUI_HOME=%~dp0
    if exist "%SOAPUI_HOME%..\jre\bin" goto SET_BUNDLED_JAVA

    if exist "%JAVA_HOME%" goto SET_SYSTEM_JAVA

    echo JAVA_HOME is not set, unexpected results may occur.
    echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
    goto SET_SYSTEM_JAVA

    :SET_BUNDLED_JAVA
    set JAVA=%SOAPUI_HOME%..\jre\bin\java
    goto END_SETTING_JAVA

    :SET_SYSTEM_JAVA
    set JAVA=java

    :END_SETTING_JAVA


    rem init classpath

    set CLASSPATH=%SOAPUI_HOME%soapui-4.5.1.jar;%SOAPUI_HOME%..\lib\*;

    rem JVM parameters, modify as appropriate
    set JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true
    set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties.SetupIntegrationServers="soapuiAtmoTenantQa.properties.txt"
    set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties.AtmosphereAPITestSuites="simple.properties.txt"
    if "%SOAPUI_HOME%" == "" goto START
    set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.libraries="%SOAPUI_HOME%ext"
    set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.listeners="%SOAPUI_HOME%listeners"
    set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.actions="%SOAPUI_HOME%actions"
    set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%SOAPUI_HOME%\"
    set JAVA_OPTS=%JAVA_OPTS% -Dwsi.dir="%SOAPUI_HOME%..\wsi-test-tools"
    set JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true
    rem uncomment to disable browser component
    rem set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.jxbrowser.disable="true"


    :START

    rem ********* run soapui ***********

    "%JAVA%" %JAVA_OPTS% com.eviware.soapui.SoapUI %*