File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

access denied, SecurityManager problem!

 
hao li
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
thanks.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic