jQuery in Action, 3rd edition
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Applet AccessControlException as RMI client" Watch "Applet AccessControlException as RMI client" New topic

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()
Registry registry =

remoteReference =
(RMIInterface) registry.lookup(RMIInterface.REGISTRY_NAME);

String ret=remoteReference.getMessage();
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

Ed's latest article: A Java Reactive Generator http://coopsoft.com/ar/ReactiveArticle.html
I agree. Here's the link: http://aspose.com/file-tools
subject: Applet AccessControlException as RMI client
It's not a secret anymore!