java.rmi.MarshalException: Failed to communicate

自古美人都是妖i 提交于 2019-12-24 21:49:09

问题


I'm using jbossIDE Eclipse 1.6. when deploying my .ear app, I get a java.rmi.MarshalException.

what's surprising is that just a few min ago, everything was OK.

I feel like this jbossIDE Eclipse thing is really useless. it's crashing all the time.

    java.rmi.MarshalException: Failed to communicate.  Problem during
              marshalling/unmarshalling; nested exception is: 
java.io.InvalidClassException: com.afrikbrain.util.message.MessageInfo; local class 
    incompatible: stream classdesc serialVersionUID = 2285009932770474121, local class 
    serialVersionUID = -2900394430145132451

    at   
 org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
at 

 org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:644)
at 
 org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)

回答1:


The version of the class com.afrikbrain.util.message.MessageInfo that is deployed to your EJB server is different from the one in your client. That is why they have different serial IDs. Try removing and re-compiling everything so that you have exactly the same version of the class deployed on both the server and client.



来源:https://stackoverflow.com/questions/1576703/java-rmi-marshalexception-failed-to-communicate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!