Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI Client throws AccessControlException

 
Shani Gunarathna
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am new to RMI and i am using Eclipse IDE with RMI plugin. Eventhough i was able to run the server application, i couldn't run client application.
It gives an exception as follows;



My Server class is as follows:


This works fine.

My client class is as follows:


Both the server and client policy files has following code:





Can somebody please help me to resolve this?

Thanks and regards,
Harshi

[NK: Added code tags.]
 
Vijitha Kumara
Bartender
Posts: 3914
9
Chrome Fedora Hibernate
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, Please UseCodeTags when posting code. Are you able to run the server (which should display "ComputeEngine bound") ? And which parameters passed to it when running (codebase etc..).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic