Why "java.rmi.ServerException: RemoteException occurred in server thread" shows?

StackOverflow https://stackoverflow.com/questions/21857968

  •  13-10-2022
  •  | 
  •  

Why the following error is showing ?

Error = java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: rmi.CalcIntf

有帮助吗?

解决方案

If you look at the entire stack trace, which you should have posted in your question, you will probably find that the error occurred in bind() or rebind(). That indicates that the Registry doesn't have the class mentioned on its CLASSPATH.

Solution: either run the Regsistry with an appropriate CLASSPATH, or run it inside the server JVM via LocateRegistry.createRegistry().

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top