Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8368

HAPartition MBean reports wrong JGroupsVersion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • No Release
    • JBossAS-5.1.0.GA
    • None
    • None
    • JBossAS 5.1.0.GA, JAVA 1.6.0_17, Sun Solaris

    • Hide

      Replace jgroups.jar with that from JGroups 2.6.15.GA and check HAPartition MBean on JMX console.

      Show
      Replace jgroups.jar with that from JGroups 2.6.15.GA and check HAPartition MBean on JMX console.

      On JMX Console the MBean jboss:service=HAPartition,Partition=.... has an attribute JGroupsVersion.

      This displays 2.6.10.GA( $Id: Version.java,v 1.59.2.18 2009/04/28 14:25:33 vlada Exp $)

      I have updated the JGroups version by removing the jgroups.jar and adding the jgroups-2.6.15.GA.jar.

      After the startup the HAPartition MBean still reports 2.6.10.GA

      IMHO the problem is that the class org.jboss.ha.framework.server.ClusterPartition uses the class org.jgroups.Version to get the attributes "description" and the "cvs" info in the method getJGroupsVersion().
      But the strings in the class org.jgroups.Version are static final and therefore the value is added to the bytecode of the class org.jboss.ha.framework.server.ClusterPartition at compile time. A change of the jgoups version didn't change that.

      So org.jboss.ha.framework.server.ClusterPartition reports the JGroupsVersion against it was compiled and that which it is available.

      A use of the Method org.jgroups.Version.printDescription() instead should fix the problem IMHO.

              Unassigned Unassigned
              mardinator martin walla (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: