• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

RMI AccessException problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help.
I've got a AccessException being thrown when i attempt to bind to a rmi registry running on a remote machine. I've given full permissions to both the server and client
grant {
permission java.security.AllPermission;
};

but it still throwns the exception:


The client attempts to bind an object to the rmiregistry on a remote machine and the above error is given back
Run the server using
java -Djava.security.policy==policy.file Server
Client is the same command.
Anyone any ideas?
Thanx
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"SG" --
Welcome to JavaRanch! We're glad to have you here.
Would you please change your name to match JavaRanch's naming policy? We ask that all registered users display a name that meets the guidelines listed in the provided link. We feel it helps up maintain a professional image.
Thanks,
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi "SG" --
Welcome to JavaRanch! We ain't got too many rules here at the Ranch, but we do have our naming policy. Please read it and change your display name to match, pronto!
Now, on to your question. If the command line you're showing below is really what you're typing, then the problem is the "==" double equals; you're telling Java the policy file is named "=policy.file". Use only a single equals sign, and see if that don't fix ya up.
 
She's out of the country right now, toppling an unauthorized dictatorship. Please leave a message with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic