Yu Gu Yu Gu - 2 days ago 4
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:

http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/socketfactory/index.html

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

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

Comments