This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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
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