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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "why this exception?" Watch "why this exception?" New topic

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 connect,resolve)

code for server is


Ulf Dittmer

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

Ping & DNS - my free Android networking tools app
Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Oh fine i have solved the problem for abov query.Anhow thanks for javaranch
I agree. Here's the link: http://aspose.com/file-tools
subject: why this exception?
Similar Threads
Can we pass this object on wire?
accessing a server using socket connection
How can i look up a EJB residing in different machine from client side?
Constructor with a parameter