This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to solve mistake this problem with RMI?

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic