This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 3816

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 agree. Here's the link: http://aspose.com/file-tools
 
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