This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AccessControlException in RMI

 
Ricardo Polero
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all !
I have runing a server called "RemoteMap".
When I try to find it from, Client side in a local machine:
1rst option :
MapClient.remoteMap = (RemoteMapAdapter) Naming.lookup (remoteMap.SERVICENAME);
give me this error :
//RemoteMapClient locating RMI registry on remote host
//RemoteMapClient problem with RemoteMap, exception :
// java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
Note: the remoteMap.SERVICENAME HAS the name of the server
2nd option:
Registry remoteRegistry = LocateRegistry.getRegistry ("RemoteMap");
MapClient.remoteMap = (RemoteMap) remoteRegistry.lookup( MapClient.remoteMap.SERVICENAME );
give me this error:
RemoteMapClient locating RMI registry on remote host
RemoteMapClient problem with RemoteMap, exception :
java.security.AccessControlException: access denied (java.net.SocketPermission RemoteMap resolve)
I putted the reference to RMISecurityManager in both cases.
This is my first try in RMI so PLEASE i need some help !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic