It's not a secret anymore!*
The moose likes Distributed Java and the fly likes Applet AccessControlException as RMI client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Applet AccessControlException as RMI client" Watch "Applet AccessControlException as RMI client" New topic
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: 291

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet AccessControlException as RMI client
 
Similar Threads
Need to extend UnicastRemoteObject class
Connection Exception with RMI
"network mode" and RMI
RMI Server Configuration
RMI chat server