File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet AccessControlException as RMI client

 
Ranadhir Nag
Ranch Hand
Posts: 138
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 291
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cross post
http://forum.java.sun.com/thread.jspa?threadID=5123204&tstart=0
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic