Yu Gu Yu Gu - 2 months ago 29
Java Question

How to handle the java.security.AccessControlException?

I was wondering how to implement RMI over SSL, and then I found a document.
Here is the url for that document:


I followed the document step by step.
But after I enter the following command
java -Djava.security.policy=policy examples.rmisocfac.HelloImpl
A problem just occured. Here is the problem I met enter image description here

How can I handle this exception?


This exception occurs due to the parameter missing of createregistry() method.