Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-87

ConnectionTable does not execute with jdk 1.3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.8
    • 2.2.8
    • None

      ConnectionTable will not execute under jdk 1.3, when loaded a TCP stack I get :

      [java] - DownHandler (TCP) exception is java.lang.NoClassDefFoundError: java/net/SocketAddress
      [java] java.lang.NoClassDefFoundError: java/net/SocketAddress
      [java] at org.jgroups.protocols.TCP.getConnectionTable(TCP.java:121)
      [java] at org.jgroups.protocols.TCP.start(TCP.java:96)
      [java] at org.jgroups.stack.Protocol.handleSpecialDownEvent(Protocol.java:547)
      [java] at org.jgroups.stack.DownHandler.run(Protocol.java:118)

      which turns out to be the references in ConnectionTable.java to JDK 1.4 specific API's. I believe these functionalities should be pushed into a subclass for JDK 1.4.

      Apparently this problem occurs because java tries to resolve all objects that are defined in a class when the class is loaded. The only way to get around these problems is to do this code with reflection, but that is not optimal and would be prone to problems.

            rhn-engineering-bban Bela Ban
            rstevenson555 Robert Stevenson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified