RMI Server Exception
问题 I am getting below exception from RMI when I try to run a Server which uses a remote registry. My registry cod for the main method in Server2 class is Registry registry = LocateRegistry.getRegistry("192.168.1.4",1100); registry.rebind("Hello",stub); 192.168.1.4 is another machine in the same LAN. Please help me. Server2 exception:java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested