Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Distributed Java and the fly likes RMI Client throws AccessControlException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI Client throws AccessControlException" Watch "RMI Client throws AccessControlException" New topic

RMI Client throws AccessControlException

Shani Gunarathna

Joined: Jul 07, 2009
Posts: 11
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,

[NK: Added code tags.]
Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3817

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..).

[How to ask questions] [Twitter]
I agree. Here's the link:
subject: RMI Client throws AccessControlException
Similar Threads
RMI Project
RMI: Compiling Client Class
RMI access denied client/server
Problem in running client from seperate machine
registry binding problem in RMI