NAG Kum [
http://community.jboss.org/people/nk_2010] replied to the discussion
"Error working wih EJB3, Struts2 & JBoss 4.2GA"
To view the discussion, visit:
http://community.jboss.org/message/537984#537984
--------------------------------------------------------------
Hi Wolfgang,
I was busy other task, sorry for late response..
My JNDIView shows as below -
+- PaymentAdmin (class: org.jnp.interfaces.NamingContext) | +- AuthenticationBean
(class: org.jnp.interfaces.NamingContext) | | +- local (proxy: $Proxy146 implements
interface com.tarangtech.mtg.authentication.ejb.AuthenticationLocal,interface
org.jboss.ejb3.JBossProxy) | | +- remote (proxy: $Proxy144 implements interface
com.tarangtech.mtg.authentication.ejb.AuthenticationRemote,interface
org.jboss.ejb3.JBossProxy) +- UILConnectionFactory[link -> ConnectionFactory] (class:
javax.naming.LinkRef)
And here is my code below -
ctx = new InitialContext();
Object obj = ctx.lookup("PaymentAdmin/AuthenticationBean/remote");
AuthenticationRemote auRem = (AuthenticationRemote)obj;
*Exception* -
javax.naming.CommunicationException [Root exception is java.io.InvalidClassException:
org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc
serialVersionUID = -2711693270411201590, local class serialVersionUID =
1126421850898582900]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:723)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
at javax.naming.InitialContext.lookup(Unknown Source)
at Main.main(Main.java:13)
Caused by: java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local
class incompatible: stream classdesc serialVersionUID = -2711693270411201590, local class
serialVersionUID = 1126421850898582900
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.rmi.MarshalledObject.get(Unknown Source)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:653)
... 3 more
What's wrong here?
Please assist me ..
Thanks,
Nagesh
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/537984#537984]
Start a new discussion in EJB 3.0 at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]