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

MulticastSocket cannot join IPv4 multicast group when IPv6 is enabled (aix)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 21, 22
    • core-libs

      DatagramSocket delegates to an inner DatagramSocket object. Irrespective of whether datagramSocket is IPv4 or IPv6, we create an IPv6 datagramChannel as its's delegate. So, This can cause problems with operations like joinGroup on AIX.


      Tier 2 Test failures :
      java/net/MulticastSocket/B6427403.java
      java/net/MulticastSocket/NoLoopbackPackets.java
      java/net/MulticastSocket/SetLoopbackMode.java
      java/net/MulticastSocket/SetOutgoingIf.java
      java/net/MulticastSocket/Test.java

      Tier 3 Test Failures :
      sun/management/jdp/JdpDefaultsTest.java
      sun/management/jdp/JdpJmxRemoteDynamicPortTest.java
      sun/management/jdp/JdpOffTest.java
      sun/management/jdp/JdpSpecificAddressTest.java

      Exception in thread "main" java.net.SocketException: joinGroup failed
      at java.base/sun.nio.ch.DatagramSocketAdaptor.joinGroup(DatagramSocketAdaptor.java:495)
      at java.base/java.net.MulticastSocket.joinGroup(MulticastSocket.java:324)
      at MulticastTest.main(MulticastTest.java:16)
      Caused by: java.lang.IllegalArgumentException: IPv6 socket cannot join IPv4 multicast group
      at java.base/sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:1538)
      at java.base/sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:1624)
      at java.base/sun.nio.ch.DatagramSocketAdaptor.joinGroup(DatagramSocketAdaptor.java:546)
      at java.base/sun.nio.ch.DatagramSocketAdaptor.joinGroup(DatagramSocketAdaptor.java:492)
      ... 2 more

            varadam Varada M
            dkumari Deepa Kumari (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: