Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

access denied, SecurityManager problem!  RSS feed

 
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: 17309
11
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
Boost this thread!