File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 3902

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
jQuery in Action, 3rd edition