Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8247463

java/nio/channels/etc/OpenAndConnect.java fails due to IPv6 not available

XMLWordPrintable

    • b28

        IPSupport - IPv4: true
        IPSupport - IPv6: false
        preferIPv4Stack: false
        preferIPv6Addresses: false
        IA4LOCAL: /*.*.*.* <--- here is my ip
        IA6LOCAL: null
        IA4ANYLOCAL: /0.0.0.0
        IA6ANYLOCAL: /0:0:0:0:0:0:0:0
        IA4LOOPBACK: /127.0.0.1
        IA6LOOPBACK: /0:0:0:0:0:0:0:1
        config OpenAndConnect.setup(): success

        ...

        test OpenAndConnect.dcOpenAndConnect(INET, /0.0.0.0, INET, /127.0.0.1): success
        test OpenAndConnect.dcOpenAndConnect(INET6, /0:0:0:0:0:0:0:0, null, /0:0:0:0:0:0:0:1): failure
        java.lang.UnsupportedOperationException: IPv6 not available
                at java.base/sun.nio.ch.DatagramChannelImpl.<init>(DatagramChannelImpl.java:183)
                at java.base/sun.nio.ch.SelectorProviderImpl.openDatagramChannel(SelectorProviderImpl.java:55)
                at java.base/java.nio.channels.DatagramChannel.open(DatagramChannel.java:188)
                at OpenAndConnect.openDC(OpenAndConnect.java:261)
                at OpenAndConnect.dcOpenAndConnect(OpenAndConnect.java:232)

              jiefu Jie Fu
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: