【Error】Java RMI Error: remote object implements illegal remote interface; nested exception is

錯誤日誌:

Exception in thread "main" java.rmi.server.ExportException: remote object implements illegal remote interface; nested exception is:
java.lang.IllegalArgumentException: illegal remote method encountered: public abstract ...

解決辦法:

Interface的定義 和 實現類中 相關方法 拋出異常:throws RemoteException。

 

參考:

https://blog.csdn.net/shijunjoy/article/details/26679501

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章