3 Replies Latest reply on Feb 17, 2009 1:37 PM by Murali Manohar

    InvalidClassException: org.jboss.ejb3.remoting.BaseRemotePro

    Murali Manohar Newbie

      Hi,
      I created and deployed an EJB to JBoss.

      EJB Deployed success fully ( checked it from JMXConsile/JNDIView)

      Now wrote a simple stand alone client to invoke the server method.


      Properties prop = new Properties();
      prop.set......
      // Code to fill up properties

      MyRemote beanRemote= (MyRemote)context.lookup("aer/ReconManagerBean/remote");
      beanRemote.method();....

      When run this code i am getting

      javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = -2711693270411201590, local class serialVersionUID = 1126421850898582900]
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at com.directv.dtss2.aer.scte.ws.EJBClientTest.invokeExecuteRecon(EJBClientTest.java:34)
      at com.directv.dtss2.aer.scte.ws.EJBClientTest.main(EJBClientTest.java:21)
      Caused by: java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = -2711693270411201590, local class serialVersionUID = 1126421850898582900
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
      at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
      ... 4 more


      I googled around and implemented some solutions.But no luck...

      How can i solve this problem..

      Thanks
      Murali