I've run the hellotest initiated from a servlet using Tomcat with no
problems, but have run into a problem trying the same test from a
standalone application.  

I'm running in JBuilder with jdk 1.3 and have the following setup:

Classpath: jboss-client.jar, jnp-client.jar, ejb.jar, jta-spec1_0_1.jar,
hellotest.jar, <jboss_home>\dist\conf

In the client app, I create an instance of
org.jboss.test.hello.test.Main and call the testHello() method.

The home proxy is retrieved correctly by:

      HelloHome home = (HelloHome)new
InitialContext().lookup(HelloHome.JNDI_NAME);

When the next statement in testHello() runs: 
      Hello hello = home.create();
I get an exception (shown below)...

java.lang.reflect.UndeclaredThrowableException:
java.io.InvalidClassException:
org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy; Local class
not compatible: stream classdesc serialVersionUID=-2949603522167897280
local class serialVersionUID=8710816667462882570

        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:477)

        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)

        at java.rmi.MarshalledObject.get(MarshalledObject.java:138)

        at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:221)

        at $Proxy0.create(Unknown Source)

        at org.jboss.test.hello.test.Main.testHello(Main.java:48)

        at
com.ejbpeople.client.StandaloneClient.runHelloTest(StandaloneClient.java:24)

        at
com.ejbpeople.client.StandaloneClient.<init>(StandaloneClient.java:17)

        at com.ejbpeople.client.StandaloneClient.main(StandaloneClient.java:34)

I tracked the execution path through the server. Everything works
correctly through the server, including the creation of the EJBObject
proxy object by 

org.jboss.ejb.plugins.jrmp13.server.JRMPContainerInvoker.getEntityEJBObject().

I believe the problem occurs when trying to unmarshall the returned
proxy object. According to the trace, it appears the the problem is with
the proxy's invocation handler, StatelessSessionProxy.

Thanks for any help,

Rick Horowitz


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to