3 Replies Latest reply on Jul 10, 2002 6:21 AM by Adrian Brock

    JBossMX and serialVersionUID

    Mike Jamison Newbie

      Does JBossMX conform to the same serialVersionUID's from SUN's version?

      We have a JMX framework using JMX1.0 and adapters that connect to other mbean servers (JBoss, Weblogic, etc). I'm able to connect to JBoss 2.4.4 but when I attempt to connect to JBoss 3.0, there is a class versioning error.

      java.io.InvalidClassException: javax.management.ObjectName; Local class not compatible: stream classdesc
      serialVersionUID=2846767152916764670 local class serialVersionUID=-5467795090068647408

      I'm using the JBoss 3.0 jars to connect so there must be some incompatability in the JMX versions.

      What is different between Sun's and JBoss's implementation?

      The only solution I can think of is to load the different versions into separate classloaders and convert the objects. Sounds pretty ugly to me.