是否可以通过包含rmi服务器的java应用程序打开rmi注册表? 请建议一种从服务器代码实现它的方法?
我实际上收到了这个错误
The Remote Exception thrown isjava.rmi.ServerException:
RemoteException occurred in server thread; nested exception is:
///java.rmi.UnmarshalException: error unmarshalling arguments;
nested exception is: ///java.lang.ClassNotFoundException:
........xyz(class name).
原因是什么以及如何纠正?
任何帮助将不胜感激。
最佳答案
您可以使用 LocateRegistry.createRegistry()
在服务器进程中创建 RMI 注册表.
关于java - 是否可以从服务器代码本身打开 RMI 注册表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9735179/