| Author |
Applet AccessControlException as RMI client
|
Ranadhir Nag
Ranch Hand
Joined: Mar 09, 2006
Posts: 138
|
|
I have an applet which is a client to a locally runnig RMI server. public void init() { try { Registry registry = LocateRegistry.getRegistry(RMIInterface.REGISTRY_PORT); remoteReference = (RMIInterface) registry.lookup(RMIInterface.REGISTRY_NAME); String ret=remoteReference.getMessage(); System.out.println(ret); } catch (Exception e) { throw new RuntimeException(e); } } When the machine is on the network,I get a java.security.AccessControlException. However,when the machine is disconnected from the network it works fine. What is wrong,and how does it get resolved?
|
 |
Edward Harned
Ranch Hand
Joined: Sep 19, 2005
Posts: 290
|
|
Cross post http://forum.java.sun.com/thread.jspa?threadID=5123204&tstart=0
|
Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
|
 |
 |
|
|
subject: Applet AccessControlException as RMI client
|
|
|