Java: no security manager: RMI class loader disabled

后端 未结 5 1639
遥遥无期
遥遥无期 2020-11-29 05:29

Hi I have RMI application and now I try to invoke some methods at server from my client. I have following code:

public static void main(final String[] args)          


        
5条回答
  •  爱一瞬间的悲伤
    2020-11-29 06:01

    You need the security manager at the server side, not only at the client side.

    Without this, the server's RMI engine refuses to load classes from the client, as it can't guarantee that these won't do evil things on the server.

    Do you need the RMI class loading at all? Couldn't the server already have the classes which the client tries to send?

提交回复
热议问题