• 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 !
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!