6 Replies Latest reply on Apr 6, 2007 4:39 PM by Bela Ban

    JGroups mulitcast test program problem, cannot use bind_addr

    Timothy Lai Newbie

      Hi,
      I'm new to this forum. I did attempt to search for a topic similar to mine but was not successful. Please let me know if there's a similar topic.

      I'm currently attempting to test Multicasting using the JGroups test programs:
      org.jgroups.tests.McastReceiverTest
      org.jgroups.tests.McastSenderTest

      Each of the two boxes I am using have 2 NICs each. Only one of these ethernet cards allows communication between servers (the other is port isolated). So, I must use bind_addr to specify which NIC to use.

      However, I'm receiving the following error when attempting to use the programs with bind_addr:
      java.net.SocketException: Can't assign requested address


      This error also occurs on a simliar environment that only has 1 NIC. I also receive the same error when I specify "-use_all_interfaces" or when using the 1_4 versions of these test programs.
      (Note: When not specifying a bind_addr in my 1 NIC environment, there is no error and I am able to send/receive multicast messages correctly. If not specifying a bind adress in my 2 NIC environment, no error is displayed, but no messages are received )

      Can anyone tell me why this error is occuring? See below for more specifics about my environment.


      OS: AIX
      JRE:
      java version "1.4.2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
      Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20060421 (SR5) (JIT enabled: jitc))
      jgroups version: 2.4?

      Note: The servers are actually virutalized LPARs, and therefore the ethernet cards associated with the bind_addr IP are also virtual.

      Any help you can provide on this topic will be appreciated. Thanks!