dcsimg
Facing Exception in thread "main" java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve).
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   keyur_patel
Posted On:   Wednesday, April 10, 2002 01:12 AM

I m facing the problem.

Re: Facing Exception in thread "main" java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve).

Posted By:   Nick_paule  
Posted On:   Tuesday, April 16, 2002 08:06 PM



Keyur r u from sector-5


Anyways replying to ur question


Use this policy file


grant {

// allows anyone to listen on un-privileged ports

permission java.security.AllPermission;

permission java.net.SocketPermission "*:1024-65535", "listen,accept,connect";


permission java.io.FilePermission "d:\Xdir\classes\-", "read";


};


I hope this will be helpfull

Re: Facing Exception in thread "main" java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve).

Posted By:   ngem_rafaral  
Posted On:   Thursday, April 11, 2002 07:11 AM

i got same problem and i have found on the web one policy file that works


grant{
permission java.net.SocketPermission "*:1024-65535", "connect,accept";
};


it seems client doesn't connect to 1099 port


here is the url

http://spectral.mscs.mu.edu/Dist2000/Example/CountWithRMI/index.html
About | Sitemap | Contact