• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

AccessControlException in RMI

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
reply
    Bookmark Topic Watch Topic
  • New Topic