Assertion Error while connecting to Remote EJB in WebLogic

Hi,

Can anyone help me with thie error.

Iam getting the following error when Iam trying to connect to to a EJB running on Weblogic .

What might be the possible causes.

This the code where Iam getting the error.

String custData;

com.o2.registration.adapter.CompanionAdapter stubCustomer = (com.o2.registration.adapter.CompanionAdapter) getRemoteInterface();

custData = stubCustomer.getUserDetails(customerNumber, username, domain);

I cannot use the serial version UID since the environments might change from development to test to production.

I tried to google the error.,but I have not got any satisfactory answers. Can anyone possbily give me all the possible reasons that might cause this error.

getUserDetails() is in CompanionAdpater.jar file.

java.io.InvalidClassException: com.o2.registration.phase2.exception.Phase2Exception; Local class not compatible: stream classdesc serialVersionUID=1519825986371884674 local class serialVersionUID=4064166766298331797

at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java(Compiled Code))

at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java(Compiled Code))

at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java(Compiled Code))

at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))

at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))

at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:29)

at java.io.ObjectInputStream.inputObject(ObjectInputStream.java(Compiled Code))

at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))

at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))

at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)

at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)

at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:202)

at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:193)

at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:641)

at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:488)

at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:368)

at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

nested within:

weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception creating response stream ] - with nested exception:

[java.io.InvalidClassException: com.o2.registration.phase2.exception.Phase2Exception; Local class not compatible: stream classdesc serialVersionUID=1519825986371884674 local class serialVersionUID=4064166766298331797]

at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:212)

at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:193)

at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:641)

at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:488)

at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:368)

at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

ERROR - Error Fetching Customer Details . Method : getUserDetails()

ERROR - ; nested exception is:

weblogic.utils.NestedException: ***** ASSERTION FAILED *****[ Exception creating response stream ] - with nested exception:

[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception creating response stream ] - with nested exception:

[java.io.InvalidClassException: com.o2.registration.phase2.exception.Phase2Exception; Local class not compatible: stream classdesc serialVersionUID=1519825986371884674 local class serialVersionUID=4064166766298331797]]weblogic.rjvm.PeerGoneException: ; nested exception is:

weblogic.utils.NestedException: ***** ASSERTION FAILED *****[ Exception creating response stream ] - with nested exception:

[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception creating response stream ] - with nested exception:

[java.io.InvalidClassException: com.o2.registration.phase2.exception.Phase2Exception; Local class not compatible: stream classdesc serialVersionUID=1519825986371884674 local class serialVersionUID=4064166766298331797]]

java.io.InvalidClassException: com.o2.registration.phase2.exception.Phase2Exception; Local class not compatible: stream classdesc serialVersionUID=1519825986371884674 local class serialVersionUID=4064166766298331797

at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java(Compiled Code))

at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java(Compiled Code))

at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java(Compiled Code))

at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))

at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))

at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:29)

at java.io.ObjectInputStream.inputObject(ObjectInputStream.java(Compiled Code))

at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))

at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))

at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)

at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)

at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:202)

at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:193)

at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:641)

at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:488)

at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:368)

at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

nested within:

weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception creating response stream ] - with nested exception:

[java.io.InvalidClassException: com.o2.registration.phase2.exception.Phase2Exception; Local class not compatible: stream classdesc serialVersionUID=1519825986371884674 local class serialVersionUID=4064166766298331797]

at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:212)

at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:193)

at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:641)

at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:488)

at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:368)

at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

nested within:

weblogic.utils.NestedException: ***** ASSERTION FAILED *****[ Exception creating response stream ] - with nested exception:

[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception creating response stream ] - with nested exception:

[java.io.InvalidClassException: com.o2.registration.phase2.exception.Phase2Exception; Local class not compatible: stream classdesc serialVersionUID=1519825986371884674 local class serialVersionUID=4064166766298331797]]

at weblogic.rjvm.RJVMImpl.gotExceptionReceiving(RJVMImpl.java:575)

at weblogic.rjvm.ConnectionManager.gotExceptionReceiving(ConnectionManager.java:823)

at weblogic.rjvm.t3.T3JVMConnection.hasException(T3JVMConnection.java:625)

at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:427)

at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)

[8568 byte] By [bjyotsnaa] at [2007-10-3 0:04:49]
# 1
> Can anyone possbily give me all> the possible reasons that might cause this error.There is only one possible reason. Two different interfaces (like client and server) have two different versions of the same class.
jschella at 2007-7-14 16:52:56 > top of Java-index,Developer Tools,Java Compiler...