File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes access denied, SecurityManager problem! 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 "access denied, SecurityManager problem!" Watch "access denied, SecurityManager problem!" New topic

access denied, SecurityManager problem!

hao li

Joined: Jul 24, 2002
Posts: 22
I did not use any code like:
if (System.getSecurityManager() == null) {System.setSecurityManager(new RMISecurityManager());}
in both server side and client side. because I have not use jar yet, so
in client side, I use command:
java suncertify.fbnClient.FBNPanel hostname portNumber datafilename.
in server side I use command:
java suncertify.fbnConnectionFactoryImpl portNumber datafilename(s)
The system tells me that access denied.
it means that SecurityManager has some problem.
Please help me.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Two things.
1. make a policy file that grants all access for the client.
2. Don't use a SecurityManager on either side, you don't need it at anytime.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: access denied, SecurityManager problem!
It's not a secret anymore!