aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI access error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI access error" Watch "RMI access error" New topic
Author

RMI access error

Tony Narvarte
Greenhorn

Joined: Aug 12, 2002
Posts: 5
I am getting an access error thrown by Naming.rebind(...) when starting up my server.
The message is - access denied (java.io.FilePermission \\c\jdev\JavaDevCertProj read)
I have tried opening up the permissions in my policy file using the <<ALL FILES>> setting and even the Security.policy.ALLPermissions settings. Even with any of these options I still get the access error.
Any suggestions would be appreciated.
Nate Johnson
Ranch Hand

Joined: May 13, 2002
Posts: 301
Here is all that I do to start my rmi factory... no policy or codebase, etc...

[ August 12, 2002: Message edited by: Nate Johnson ]

scwcd, scjd, scjp<br /><a href="http://natejohnson.us" target="_blank" rel="nofollow">http://natejohnson.us</a><br /><a href="http://rice.kuali.org" target="_blank" rel="nofollow">http://rice.kuali.org</a>
Tony Narvarte
Greenhorn

Joined: Aug 12, 2002
Posts: 5
Let me add some more detail to the situation. I want to get this working with the policy file in place. It used to work. I submitted it. And my evaluation was positive (So I am assuming the grader did not experience this problem or nothing would have worked). But I have some non-related issues to fix and resubmit.
So I started by unpacking my submitted jar and running it. I cannot figure out why I am now getting this access error that occurs even when I use the allpermissions setting in the policy file.
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Tony,
Is there possibly some environmental issue like upgrading from Windows 2000 to XP or changing JRE's from 1.3 to 1.4? I have also experienced what is seemingly random flakiness with RMI and security and eventually just get lucky. Maybe if you can just think of something that may have changed since submission you may be able to resolve the problem.
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
Tony Narvarte
Greenhorn

Joined: Aug 12, 2002
Posts: 5
That is a good point. Between the RMI working and not working, I installed java 1.4.1_01. Once I noticed the RMI issue, I reverted back by setting my path and JAVA_HOME back to the 1.3.1_04 version. So you may be on to something. But I also have tried it on another machine at 1.3.1 and no 1.4.0 and I get the same RMI access error.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: RMI access error