*
The moose likes Java in General and the fly likes How to solve mistake this problem with RMI? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to solve mistake this problem with RMI?" Watch "How to solve mistake this problem with RMI?" New topic
Author

How to solve mistake this problem with RMI?

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hello personal,
I am executing a program server using RMI and this happening the following mistake:
"Exception occurred: java.security.AccessControlException: access denied (java.ne
t.SocketPermission 127.0.0.1:1099 connect,resolve)"
I am executing with the following command:
"java - Djava.security.policy=C:\test3\wideopen.policy myRMIServer"
How do I can contrornar the problem?.
Thankful for the help
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hey Sergio,
What platform are you using (Windows 98, Windows 2000, etc.) and what permissions does your policy file grant? Also make sure the path to your policy file is correct and there are no other services running on port 1099. Further verify that the RMI registry is running. You can start it in your server by:

where port is the TCP/IP port which in your case would be 1099 (although any available port above 1024 should be acceptable).
Hope this helps,
Michael Morris


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to solve mistake this problem with RMI?