当rmi程序提示如下异常时
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
。。。。。。。
表示程序无法找到指定的类,可采取如下方法解决:
set CLASSPATH=%编译好的class文件所在路径%,然后再执行start rmiregistry 就可以了。。。
本文介绍了解决Java RMI (Remote Method Invocation)中出现的UnmarshalException异常的方法。当遇到此类异常时,通常是因为远程调用时无法正确解析参数。解决方式是设置正确的CLASSPATH环境变量,包含所有必要的类文件路径。
368

被折叠的 条评论
为什么被折叠?



