This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes why this exception? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "why this exception?" Watch "why this exception?" New topic
Author

why this exception?

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Dear Ranchar when i am running server code for RMI then i am getting this exception as

java.security.AccessControleException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)

code for server is



Regard

Arun
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
RMISecurityManager is meant to be used by RMI clients, not the RMI server (which I think is what this code is).
Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Oh fine i have solved the problem for abov query.Anhow thanks for javaranch
 
Consider Paul's rocket mass heater.
 
subject: why this exception?