Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why this exception?

 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchar when i am running server code for RMI then i am getting this exception as

java.security.AccessControleException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)

code for server is



Regard

Arun
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMISecurityManager is meant to be used by RMI clients, not the RMI server (which I think is what this code is).
 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh fine i have solved the problem for abov query.Anhow thanks for javaranch
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic