1 Reply Latest reply on Jun 4, 2014 5:14 AM by ehugonnet

    IPV6 with domain server fails to start

    Chao Wang Newbie

      Firstly, I don't have issue to start server in standalone mode with IPV6:

      After executing command: sh build/target/wildfly-9.0.0.Alpha1-SNAPSHOT/bin/standalone.sh -c standalone-ha.xml -Djboss.bind.address=::1 -Djboss.bind.address.management=::1 -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true

      I can successfully open http://[::1]:8080/ in my browser.

       

      however, I failed to start it in domain mode with IPV6

      As per document indicates, I have changed JVM options as: -Djava.net.preferIPv4Stack=false java.net.preferIPv6Addresses=true and start my server:

      sh build/target/wildfly-9.0.0.Alpha1-SNAPSHOT/bin/domain.sh -Djboss.bind.address=::1 -Djboss.bind.address.management=::1 -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true

       

      I got exceptions in server-one and server-two as follows:

      [Server:server-one] 20:12:21,316 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 1) MSC000001: Failed to start service jboss.server-boot-operations: org.jboss.msc.service.StartException in service jboss.server-boot-operations: java.net.ConnectException: WFLYPRT0053: Could not connect to remote://[::1]:9999. The connection failed
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.ServerBootOperationsService$1.run(ServerBootOperationsService.java:72) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
      [Server:server-one]     at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
      [Server:server-one]     at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]
      [Server:server-one] Caused by: java.net.ConnectException: WFLYPRT0053: Could not connect to remote://[::1]:9999. The connection failed
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:118) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerConnection.openConnection(HostControllerConnection.java:116) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerClient.resolveBootUpdates(HostControllerClient.java:86) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.ServerBootOperationsService$1.run(ServerBootOperationsService.java:68) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     ... 4 more
      [Server:server-one] Caused by: java.net.SocketException: Protocol family unavailable
      [Server:server-one]     at sun.nio.ch.Net.connect0(Native Method) [rt.jar:1.7.0_40]
      [Server:server-one]     at sun.nio.ch.Net.connect(Net.java:465) [rt.jar:1.7.0_40]
      [Server:server-one]     at sun.nio.ch.Net.connect(Net.java:457) [rt.jar:1.7.0_40]
      [Server:server-one]     at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:666) [rt.jar:1.7.0_40]
      [Server:server-one]     at org.xnio.nio.WorkerThread.openTcpStreamConnection(WorkerThread.java:264)
      [Server:server-one]     at org.xnio.XnioIoThread.openStreamConnection(XnioIoThread.java:256) [xnio-api-3.3.0.Beta1.jar:3.3.0.Beta1]
      [Server:server-one]     at org.xnio.XnioWorker.openStreamConnection(XnioWorker.java:345) [xnio-api-3.3.0.Beta1.jar:3.3.0.Beta1]
      [Server:server-one]     at org.xnio.ssl.JsseXnioSsl.openSslConnection(JsseXnioSsl.java:149) [xnio-api-3.3.0.Beta1.jar:3.3.0.Beta1]
      [Server:server-one]     at org.xnio.ssl.JsseXnioSsl.connectSsl(JsseXnioSsl.java:120) [xnio-api-3.3.0.Beta1.jar:3.3.0.Beta1]
      [Server:server-one]     at org.xnio.ssl.XnioSsl.connectSsl(XnioSsl.java:83) [xnio-api-3.3.0.Beta1.jar:3.3.0.Beta1]
      [Server:server-one]     at org.jboss.remoting3.remote.RemoteConnectionProvider.createSslConnection(RemoteConnectionProvider.java:250) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.remote.RemoteConnectionProvider.connect(RemoteConnectionProvider.java:213) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:298) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerConnection.openConnection(HostControllerConnection.java:116) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerClient.resolveBootUpdates(HostControllerClient.java:86) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.ServerBootOperationsService$1.run(ServerBootOperationsService.java:68) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
      [Server:server-one]     at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
      [Server:server-one]     at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]
      [Server:server-one]     at ...asynchronous invocation...(Unknown Source)
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     ... 9 more
      [Server:server-one] 
      [Server:server-one] 20:12:21,379 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: java.util.concurrent.ExecutionException: Operation failed
      [Server:server-one]     at org.jboss.as.server.ServerStartTask$2$1.load(ServerStartTask.java:183) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.ServerService.boot(ServerService.java:332) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:256) [wildfly-controller-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
      [Server:server-one] Caused by: java.util.concurrent.ExecutionException: Operation failed
      [Server:server-one]     at org.jboss.threads.AsyncFutureTask.operationFailed(AsyncFutureTask.java:74) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]
      [Server:server-one]     at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:268) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.ServerBootOperationsService$2.get(ServerBootOperationsService.java:113) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.ServerBootOperationsService$2.get(ServerBootOperationsService.java:95) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.ServerStartTask$2$1.load(ServerStartTask.java:180) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     ... 3 more
      [Server:server-one] Caused by: java.net.ConnectException: WFLYPRT0053: Could not connect to remote://[::1]:9999. The connection failed
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:118) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerConnection.openConnection(HostControllerConnection.java:116) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerClient.resolveBootUpdates(HostControllerClient.java:86) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.ServerBootOperationsService$1.run(ServerBootOperationsService.java:68) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
      [Server:server-one]     at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
      [Server:server-one]     at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]
      [Server:server-one] Caused by: java.net.SocketException: Protocol family unavailable
      [Server:server-one]     at sun.nio.ch.Net.connect0(Native Method) [rt.jar:1.7.0_40]
      [Server:server-one]     at sun.nio.ch.Net.connect(Net.java:465) [rt.jar:1.7.0_40]
      [Server:server-one]     at sun.nio.ch.Net.connect(Net.java:457) [rt.jar:1.7.0_40]
      [Server:server-one]     at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:666) [rt.jar:1.7.0_40]
      [Server:server-one]     at org.xnio.nio.WorkerThread.openTcpStreamConnection(WorkerThread.java:264)
      [Server:server-one]     at org.xnio.XnioIoThread.openStreamConnection(XnioIoThread.java:256) [xnio-api-3.3.0.Beta1.jar:3.3.0.Beta1]
      [Server:server-one]     at org.xnio.XnioWorker.openStreamConnection(XnioWorker.java:345) [xnio-api-3.3.0.Beta1.jar:3.3.0.Beta1]
      [Server:server-one]     at org.xnio.ssl.JsseXnioSsl.openSslConnection(JsseXnioSsl.java:149) [xnio-api-3.3.0.Beta1.jar:3.3.0.Beta1]
      [Server:server-one]     at org.xnio.ssl.JsseXnioSsl.connectSsl(JsseXnioSsl.java:120) [xnio-api-3.3.0.Beta1.jar:3.3.0.Beta1]
      [Server:server-one]     at org.xnio.ssl.XnioSsl.connectSsl(XnioSsl.java:83) [xnio-api-3.3.0.Beta1.jar:3.3.0.Beta1]
      [Server:server-one]     at org.jboss.remoting3.remote.RemoteConnectionProvider.createSslConnection(RemoteConnectionProvider.java:250) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.remote.RemoteConnectionProvider.connect(RemoteConnectionProvider.java:213) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:298) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:257) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:71) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerConnection.openConnection(HostControllerConnection.java:116) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerClient.resolveBootUpdates(HostControllerClient.java:86) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.ServerBootOperationsService$1.run(ServerBootOperationsService.java:68) [wildfly-server-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
      [Server:server-one]     at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
      [Server:server-one]     at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]
      [Server:server-one]     at ...asynchronous invocation...(Unknown Source)
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339) [jboss-remoting-4.0.3.Final.jar:4.0.3.Final]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110) [wildfly-protocol-9.0.0.Alpha1-SNAPSHOT.jar:9.0.0.Alpha1-SNAPSHOT]
      [Server:server-one]     ... 9 more
      [Server:server-one] 
      [Server:server-one] 20:12:21,385 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      

       

      It shows that connection to remote://[::1]:9999 is refused, anyone know what additional configuration I missed here?  Thanks in advance.

        • 1. Re: IPV6 with domain server fails to start
          ehugonnet Apprentice

          Hi,

          You should edit your domain.xml configuration file and change the systemProperties :

              <system-properties>
                  <!-- IPv4 is not required, but setting this helps avoid unintended use of IPv6 -->
                  <property name="java.net.preferIPv4Stack" value="false"/>
              </system-properties>
          

          Using the following command line seems to work after that :

           

          ./domain.sh -Djboss.bind.address=::1 -Djboss.bind.address.management=::1 -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true
          -Djboss.default.multicast.address=ff01::1 -Djboss.node.name=mjollnir -Djboss.bind.address.unsecure=::1