java.rmi.MarshalException

前端 未结 2 482
太阳男子
太阳男子 2021-01-28 22:09

whenever I try to call my ejb from a client, I get this error :

  java.rmi.MarshalException: Failed to communicate. 

    Problem during     marshalling/unmarsha         


        
2条回答
  •  一向
    一向 (楼主)
    2021-01-28 22:26

    The local class and the remote class are differente versions. During the unmarshalling process the receiver does not support the protocol version of the sender. Make sure the compiled class on the server is the same version of the compiled class on the client, so can be serialized/deserialized without problems. I suggest you rebuilding from zero all the project and redeploying them, and regenerate the stubs.

提交回复
热议问题