1 Reply Latest reply on Jul 30, 2002 12:02 PM by Juha Lindfors

    JBoss2.4.4 , JMX and JNDI

    Uday Kamath Newbie

      Hi
      I was using Jboss2.2.2 and jmx implementation that comes with it. When i moved to Jboss2.4.4 and my JMX Bean tries to get the reference of EJB beans through JNDI i get this error
      [ERROR,Default] javax.naming.CommunicationException. Root exception is
      [ERROR,Default] java.io.InvalidClassException: org.jboss.ejb.plugins.jrmp.interf
      aces.HomeProxy; Local class not compatible: stream classdesc serialVersionUID=61
      36307389075444997 local class serialVersionUID=432426690456622923
      [ERROR,Default] at java.io.ObjectStreamClass.validateLocalClass(ObjectSt
      reamClass.java:523)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectStreamClass.setClass(ObjectStreamClass.
      java:567)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.inputClassDescriptor(Object
      InputStream.java:936)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.readObject(ObjectInputStrea
      m.java:366)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.readObject(ObjectInputStrea
      m.java:236)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.inputClassDescriptor(Object
      InputStream.java:940)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.readObject(ObjectInputStrea
      m.java:366)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.readObject(ObjectInputStrea
      m.java:236)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.inputObject(ObjectInputStre
      am.java:1186)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.readObject(ObjectInputStrea
      m.java:386)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.inputClassFields(ObjectInpu
      tStream.java:2263)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.defaultReadObject(ObjectInp
      utStream.java:519)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.inputObject(ObjectInputStre
      am.java:1412)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.readObject(ObjectInputStrea
      m.java:386)
      [ERROR,Default]
      [ERROR,Default] at java.io.ObjectInputStream.readObject(ObjectInputStrea
      m.java:236)
      [ERROR,Default]
      [ERROR,Default] at java.rmi.MarshalledObject.get(MarshalledObject.java:1
      38)
      [ERROR,Default]
      [ERROR,Default] at org.jnp.interfaces.NamingContext.lookup(NamingContext
      .java:353)
      [ERROR,Default]
      [ERROR,Default] at org.jnp.interfaces.NamingContext.lookup(NamingContext
      .java:333)
      [ERROR,Default]
      [ERROR,Default] at javax.naming.InitialContext.lookup(InitialContext.jav
      a:350)

      I have the jmx bean jars in my lib/ext directory ? I know u get this error when serialVerisonUID is not declared and there is CLassLoader laoding one class but getting other when streamed..? can anyone put some light?
      Thanks a lot