5 Replies Latest reply on Dec 23, 2007 10:34 AM by jaikiran pai

    Incompatibility between Jboss server versions?

    Wanderlei Souza Newbie

      Incompatibility between Jboss server versions?

      Hi guys, can anybody help-me with a problem?
      I'm currently using JBossAS 4.2.1 and I was trying to make a lookup in an EJB3 Session Bean - in another JbossAS (different VM - version 4.0.4GA) - , but I received an Exception...

      Caused by: javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.session.BaseSessionRemoteProxy; local
      class incompatible: stream classdesc serialVersionUID = 2609262789016232311, local class serialVersionUID = 8310915813626447181]
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:724)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)
      at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
      at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:86)
      at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:104)
      at org.springframework.jndi.JndiObjectTargetSource.getTarget(JndiObjectTargetSource.java:121)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:150)
      ... 90 more
      Caused by: java.io.InvalidClassException: org.jboss.ejb3.session.BaseSessionRemoteProxy; local class incompatible: stream classdesc serialVersionUID
      2609262789016232311, local class serialVersionUID = 8310915813626447181
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:654)

      it Sounds incompatible!