EJB
gurus,
I am
compiling my classes in jbuilder with jdk version 1.2. However I run the
client and Jboss in version 1.3. Also,to give you a context, what I am trying
to achieve is as follows: I have a remote applet(on some machine in the world)
I want to make that applet a remote object and be able to invoke methods on
it. I have got this to work simply using RMI, but what I want to do now is
much more complicated. The browser initializes the applet and it starts a new
thread which is the remote interface and I’m passing a copy of the remote object by
using ObjectOuputStream to a servlet. The servlet is unpacking the object and
making a connection to the ejb server, and passing a copy of the remote object
to a bean. Then I “register” the remote object with rmiregistry(not through
jndi, mostly because I don’t know how to do this with jndi). I want to be able
to store a this in a local rmiregistry and at some time in the future I want
to have a bean look up this reference to the remote object and execute methods
on it. Once again, this exact config works with _just_ the rmiregistry, it is failing
horribly now when I pass a copy of the object to the ejb server. I have an
object(which is a serializable class called MemberRegistrationRequest. I
simply pass the Remote reference to this object on contruct. It stores the
Remote object in a variable of type Object. Then I pass this to the
MemberRegistrationManager when I call home.create(MemberRegistrationManager).
EjbCreate in the bean is doing NOTHING but storing a reference to the
MemberRegistrationReuqest as an attribute of this bean. Somewhere in the
create process it’s failing and giving me the following
message.
========
EXCEPTION ==========
java.lang.reflect.UndeclaredThrowableException:
java.io.InvalidClassException: c
om.tradingproduce.notify.client.AppletServer_Stub;
Local class not compatible: s
tream
classdesc serialVersionUID=2 local class
serialVersionUID=0
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n
Source)
at
sun.rmi.transport.StreamRemoteCall.executeCall(Unknown
Source)
at
sun.rmi.server.UnicastRef.invoke(Unknown
Source)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHom
e(Unknown
Source)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java
:79)
at
$Proxy0.create(Unknown Source)
at
com.tradingproduce.TestMemberRegistration.main(TestMemberRegistration
.java:45)
=======
END EXCEPTION ===========
Anyone
have any
ideas?