File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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

How to solve mistake this problem with RMI?

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: access denied (
t.SocketPermission connect,resolve)"
I am executing with the following command:
"java -\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
wood burning stoves
subject: How to solve mistake this problem with RMI?
It's not a secret anymore!