java.rmi.MarshalException -


Whenever I try to call my EJB with a customer, I receive this error:

  Java.rmi.MarshalException: Failed to communicate problems during marching / unsuspecting; The nested exception is: java.io.InvalidClassException: com.afrikbrain.util.message.MessageInfo; Local Class Incompatible: Stream Classes Serial YearsID = 2285009932770474121, Local Class Serial VERSIONUID = -2900394430145132451 at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException (SocketClientInvoker. Java: 122)  

Why is this happening? And how to solve it?

Local class and remote class are different versions. During the Unmarshalling process the receiver does not support the protocol version of the sender. Make sure that the compiled class on the server is the same version of the compiled class, so can be serialized / decarised without problems. I recommend you to rebuild and re-invent all the projects, and rebuild the stubs.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -