1 Reply Latest reply on Jul 1, 2003 5:09 AM by Dominic Veit

    Communicating between 2 version of JBoss

    Le Van Huyen Newbie

      Dear, everybody,
      I want to use a stateless SB A (which deployed on server sA with JBoss 3.0.6) to invoke a method of stateless SB B (which deployed on server sB with JBoss 3.2.1). But when I lookup (Object objref = ctx.lookup("myEJB");), I always get the following error:

      13:46:00,227 ERROR [STDERR] javax.naming.CommunicationException. Root exception
      is
      13:46:00,227 ERROR [STDERR] java.io.InvalidClassException: org.jboss.proxy.ejb.G
      enericEJBInterceptor; local class incompatible: stream classdesc serialVersionUI
      D = 4582256576523491346, local class serialVersionUID = 3844706474734439975


      Could anybody help me, please!
      Thanks very much!

        • 1. Re: Communicating between 2 version of JBoss
          Dominic Veit Newbie

          Hi,
          it might be the case, that your "Stubs" and "Skeletons" do not fit together. The calling ejb must access a local interface implementation of the interface you are calling remotely. The "stub" has the same interface, or list of methods, as the remote object. The stub then forwards the request to the remote object via the remote "Skeleton" through RMI.
          Check if your implementations of the interfaces are equal on both sides (local and remote). Practically this might imply that you have to deploy SBB if you made changes to SBA due to imcompatibilities after compilation.
          Regards,
          Dominic