5 Replies Latest reply on Apr 1, 2003 11:20 AM by adrian.brock

    local class incompatible

    nort

      Hi,

      I try to run an EJB application. When I execute my client i get this exception:

      javax.naming.CommunicationException. Root exception is java.io.InvalidClassException: org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy; local class incompatible: stream classdesc serialVersionUID = 4948756606502181321, local class serialVersionUID = -3713605626489646730

      Does anyone can say what this mean?

      Thank you,
      Juraj

        • 1. Re: local class incompatible

          It means the class has changed between
          jboss releases and there is no serialVersionUID
          on the class.

          Make sure the client jars are from the same
          version of jboss.

          Regards,
          Adrian

          • 2. Re: local class incompatible
            nort

            I generate the client.jar with ant - RMIC. Is this not possible? When i run the exampel with J2EE-RI it works.

            i want to set up a build management with ANT and XDoclet to generate Stubs and DDs for different EJB Containers.

            • 3. Re: local class incompatible

              It doesn't work the same way in jboss.
              We have already used RMIC to generate
              a detyped stub.
              JBoss then passes metadata to the client
              telling it how to run your specific ejb proxy.
              This means you don't have to do any compiling
              for the client side. Just make sure the client
              has the correct ejb interfaces and you are
              using the correct jboss client jars.

              Regards,
              Adrian

              • 4. Re: local class incompatible
                nort

                Hi,

                thank you for your explication. Can you tell me where to find some docu for this point? Perhaps a tutorial would be very nice (JBOSS 3.0.X).

                Or can you tell me quickly what to do and to attend.

                Juraj

                • 5. Re: local class incompatible

                  The stub is in jboss-client.jar or
                  jbossall-client.jar

                  Make sure the client has the version
                  from the server's ${jboss.dist}/client

                  Regards,
                  Adrian