wood burning stoves 2.0
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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI Client throws AccessControlException" Watch "RMI Client throws AccessControlException" New topic
Author

RMI Client throws AccessControlException

Shani Gunarathna
Greenhorn

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

Joined: Mar 24, 2008
Posts: 3899
    
    9

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


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: RMI Client throws AccessControlException
 
It's not a secret anymore!