java.rmi.MarshalException:无法通信 [英] java.rmi.MarshalException: Failed to communicate

查看:280
本文介绍了java.rmi.MarshalException:无法通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是jbossIDE Eclipse 1.6。当部署我的.ear应用程序时,我得到一个java.rmi.MarshalException。



令人惊讶的是,几分钟前,一切都OK。



我觉得这个jbossIDE Eclipse的东西真的没用。它一直在崩溃。

  java.rmi.MarshalException:无法通信。 
编组/解组的问题;嵌套异常是:
java.io.InvalidClassException:com.afrikbrain.util.message.MessageInfo;本地类
不兼容:stream classdesc serialVersionUID = 2285009932770474121,本地类
serialVersionUID = -2900394430145132451

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


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


解决方案

部署到EJB服务器的类 com.afrikbrain.util.message.MessageInfo 的版本与客户端不同。这就是为什么它们有不同的序列号。尝试删除并重新编译所有内容,以便在服务器和客户端上部署完全相同的类的版本。


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)

解决方案

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.

这篇关于java.rmi.MarshalException:无法通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆