Yu Gu Yu Gu - 1 year ago 100
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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download