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

MulticastSocket's send() giving exception on Linux RH6.2 dual stack machine

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 1.3.1, 1.4.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      MulticastSocket's send() is giving exception on LinuxRH6.2 dual stack
      machine when tried to join Multicast IPv6 address and send with some multicast addresses. For example its giving the following exception with ff15::1234:1234:1234:1234 multicast address. It worked fine with
      ff02::1234:1234:1234:1234 and ff01::1234:1234:1234:1234 addresses

      ERROR: mcastWriter.mcastWriter(): exception occurred:
      java.io.IOException: Cannot assign requested address
      java.io.IOException: Cannot assign requested address
              at java.net.PlainDatagramSocketImpl.send(Native Method)
              at java.net.DatagramSocket.send(DatagramSocket.java:503)
              at mcastWriter.<init>(mcastWriter.java:138)
              at mcastWriter.main(mcastWriter.java:92)

      How to reproduce it:
      ---------------------

      1. Take the attached mcastWriter.java

      2. java mcastWriter -d -v -l 0 -m 10

      3. Find the exception message.


      Other Information:

      1. Same code worked fine on Sol sparc 8 / Sol IA 8 dual stack machines.
      2. On same machine I am able to join to a V4 multicast address and send without any problem.



      Name: yyT116575 Date: 06/20/2001


      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
      Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)


      MulticastSocket throws an error when invoking send() under Linux, it
      works under Windows 2000 with this JVM:
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      The sourcecode to reproduce this bug is available in Tomcat/4.0-b6-dev
      (http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat-
      4.0/catalina/src/share/org/apache/catalina/cluster/)

      relevant files are:
      org.apache.catalina.cluster.StandardCluster
      org.apache.catalina.cluster.MulticastSender

      An excerpt of the trace is as follows:

      java.io.IOException: Invalid argument
              at java.net.PlainDatagramSocketImpl.send(Native Method)
              at java.net.DatagramSocket.send(DatagramSocket.java:321)
              at org.apache.catalina.cluster.MulticastSender.send
      (MulticastSender.java:205)
              at org.apache.catalina.cluster.MulticastSender.send
      (MulticastSender.java:192)
              at org.apache.catalina.session.DistributedManager.createSession
      (DistributedManager.java:165)
      (Review ID: 127038)
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            michaelm Michael McMahon
            Reporter:
            vakellasunw Venkata Akella (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: