Service Virtualization

  • 1.  Virtual Service Catalog, cannot start Identity and Access Manager

    Posted Oct 10, 2018 05:16 AM

    Hello,

     

    I've got the following error when stating IAM : 


    11:12:23,144 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service org.wildfly.undertow.listener.default: org.jboss.msc.service.StartException in serv
    ice org.wildfly.undertow.listener.default: WFLYUT0082: Could not start 'default' listener.
    at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:181)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.net.SocketException: Protocol family unavailable
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:179)
    at org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:310)
    at org.wildfly.extension.undertow.HttpListenerService.startListening(HttpListenerService.java:106)
    at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:169)
    ... 5 more

     

    On my first installation, it was running. 

    I've tried a new installation on a new vm, and now I have the previous error.

     

    Does someone have already met this error ?

     

    Benoit



  • 2.  Re: Virtual Service Catalog, cannot start Identity and Access Manager

    Broadcom Employee
    Posted Oct 10, 2018 05:33 AM

    This is a an error from the JBOSS application server (Wildfly) that failed to open a socket to listen for incoming connections due to attempting to open an IPv6 socket
    Resolution
    The JAVA_OPTS environment variable must be set to contain -Djava.net.preferIPv4Stack=true prior to starting the IdentityAccessManager

    On Windows:
    set JAVA_OPTS=-Djava.net.preferIPv4Stack=true

    on Linux:
    export JAVA_OPTS="-Djava.net.preferIPv4Stack=true"



  • 3.  Re: Virtual Service Catalog, cannot start Identity and Access Manager

    Posted Oct 10, 2018 07:41 AM

    Shiney, 

     

    Tested with "export..." it does work.

    But using -Djava.net.preferIPv4Stack=true, it does not work. Maybe you can explain me why ?

     

    Benoit



  • 4.  Re: Virtual Service Catalog, cannot start Identity and Access Manager

    Posted Oct 11, 2018 08:27 AM

    Shiney 

     

    Do you want/need a case to check this ?

     

    Benoit



  • 5.  Re: Virtual Service Catalog, cannot start Identity and Access Manager

    Broadcom Employee
    Posted Oct 11, 2018 08:33 AM

    Benoit, can you check the permissions on  the .vmoptions file?  Looks like its not getting read.  



  • 6.  Re: Virtual Service Catalog, cannot start Identity and Access Manager

    Posted Oct 11, 2018 08:43 AM

    Shiney,

     

    The permissions look good : 

    -rwxr-xr-x 1 udvtst udvtst 13156 Mar 26  2018 IdentityAccessManager
    -rw-r--r-- 1 udvtst udvtst   276 Oct 11 14:40 IdentityAccessManager.vmoptions

     

    And the content (maybe I made something wrong) :

    # Enter one VM parameter per line
    # For example, to adjust the maximum memory usage to 512 MB, uncomment the following line:
    # -Xmx512m
    # To include another file, uncomment the following line:
    # -include-options [path to other .vmoption file]
    -Djava.net.preferIPv4Stack=true

     

    Benoit



  • 7.  Re: Virtual Service Catalog, cannot start Identity and Access Manager
    Best Answer

    Broadcom Employee
    Posted Oct 11, 2018 08:48 AM

    Benoit,  as per the instruction,  I think it will only works as ENV Variables.  And not in vmoptions file.  

     

    On Windows:
    set JAVA_OPTS=-Djava.net.preferIPv4Stack=true

    on Linux:
    export JAVA_OPTS="-Djava.net.preferIPv4Stack=true"



  • 8.  Re: Virtual Service Catalog, cannot start Identity and Access Manager

    Posted Oct 12, 2018 07:48 AM