This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

access denied, SecurityManager problem!

 
hao li
Greenhorn
Posts: 22
  • 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: 17278
6
IntelliJ IDE Mac Spring
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic