0
我收到此错误,并尝试了所有可能的操作,但无法解决问题,请帮助解决此问题。Eclipse中的Java RMI问题
我正在使用Eclipse indigo IDE。
开始rmiregistry
从cmd
。
Exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: RMISIntf
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: RMISIntf
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:419)
...................
感谢您的回复。但它仍然给我同样的错误。我的服务器和客户端都在同一台机器上。我使用的是Eclipse IDE。请帮我解决问题 – user2082252 2013-02-26 05:59:54
@ user2082252如果你通过'LocateRegistry.createRegistry()'启动注册表,它是否真的向你抛出一个'ServerException'封装了'bind()/ rebind()'方法的'ClassNotFoundException'? – EJP 2013-02-26 09:58:32
是的,我得到了同样的例外 – user2082252 2013-02-28 08:13:18