1 Reply Latest reply on Dec 17, 2001 12:50 PM by Åsmund Hjulstad

    Applet client to JBoss EJB

    Bernard Lavallee Newbie

      I am trying to get a simple Applet client to talk to an EJB. I have encountered many problems and have worked through most of them. I know people at JBoss claim this should work and even provide simple code examples to demonstrate. Unfortunately, none of the code examples work.

      In my ongoing attempt to make an applet talk to an ejb, I've encountered the following problem which I cannot solve. Can anyone help in deciphering the meaning of this problem and finding a solution?

      Below is the stack I get:


      javax.naming.CommunicationException. Root exception is java.io.InvalidClassException: org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy; Local class not compatible: stream classdesc serialVersionUID=432426690456622923 local class serialVersionUID=6136307389075444997

      at java.io.ObjectStreamClass.validateLocalClass(Unknown Source)

      at java.io.ObjectStreamClass.setClass(Unknown Source)

      at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source)

      at java.io.ObjectInputStream.readObject(Unknown Source)

      at java.io.ObjectInputStream.readObject(Unknown Source)

      at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source)

      at java.io.ObjectInputStream.readObject(Unknown Source)

      at java.io.ObjectInputStream.readObject(Unknown Source)

      at java.io.ObjectInputStream.inputObject(Unknown Source)

      at java.io.ObjectInputStream.readObject(Unknown Source)

      at java.io.ObjectInputStream.inputClassFields(Unknown Source)

      at java.io.ObjectInputStream.defaultReadObject(Unknown Source)

      at java.io.ObjectInputStream.inputObject(Unknown Source)

      at java.io.ObjectInputStream.readObject(Unknown Source)

      at java.io.ObjectInputStream.readObject(Unknown Source)

      at java.rmi.MarshalledObject.get(Unknown Source)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:299)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)

      at javax.naming.InitialContext.lookup(Unknown Source)

      at ejbTest.AppletEjbCaller.runIt(AppletEjbCaller.java:95)

      at ejbTest.AppletEjbCaller.init(AppletEjbCaller.java:60)

      at sun.applet.AppletPanel.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)