Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-9386

Can't connect CLI to server on IPv6 link lokal address

XMLWordPrintable

    • This is not a bug. Probably just problem locally on my machine.
    • NEW

      It seems that the jboss-cli.sh is not able to connect to server bound to link local IPv6 address.

      Server run:

      bin/standalone.sh -c=standalone-full.xml -Djboss.node.name=testingnode -Djboss.bind.address=fe80::f2de:f1ff:fe75:7918 -Djboss.bind.address.management=fe80::f2de:f1ff:fe75:7918 -Djboss.bind.address.unsecure=fe80::f2de:f1ff:fe75:7918 -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true
      

      Script is run with:

      bin/jboss-cli.sh --connect command=:shutdown controller=[fe80::f2de:f1ff:fe75:7918%2]
      bin/jboss-cli.sh --connect command=:shutdown controller=[fe80::f2de:f1ff:fe75:7918]
      

      Exception thrown from script:

      org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
              at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:232)
              at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:198)
              at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.modules.Module.run(Module.java:270)
              at org.jboss.modules.Main.main(Main.java:294)
      Caused by: org.jboss.as.cli.CommandLineException: The controller is not available at [fe80::f2de:f1ff:fe75:7918%2]:9999, connect failed after 5122)
              at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:723)
              at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:696)
              at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:230)
              ... 8 more
      

            bstansbe@redhat.com Brian Stansberry
            ochaloup@redhat.com Ondrej Chaloupka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: