aspose file tools*
The moose likes Distributed Java and the fly likes RMI: ClassNotFound exception client side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI: ClassNotFound exception client side" Watch "RMI: ClassNotFound exception client side" New topic
Author

RMI: ClassNotFound exception client side

giuseppe gio
Greenhorn

Joined: Jun 29, 2013
Posts: 5

It' the first time i occours in this CLIENT error when i run a rmi application, and i don't understand why:



The mentioned classes not found, it's part of skeleton classes, resident on server. Server side all skeleton do his job perfectly, but as i can see, no result is send to client and this exception were thrown.
Supun Lakshan Dissanayake
Ranch Hand

Joined: Oct 26, 2012
Posts: 133

An UnmarshalException can be thrown while unmarshalling the parameters or results of a remote method call if any of the following conditions occur:
if an exception occurs while unmarshalling the call header
if the protocol for the return value is invalid
if a java.io.IOException occurs unmarshalling parameters (on the server side) or the return value (on the client side).
if a java.lang.ClassNotFoundException occurs during unmarshalling parameters or return values
if no skeleton can be loaded on the server-side; note that skeletons are required in the 1.1 stub protocol, but not in the 1.2 stub protocol.
if the method hash is invalid (i.e., missing method).
if there is a failure to create a remote reference object for a remote object's stub when it is unmarshalled.


Are you better than me? Then please show me my mistakes..
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

You might need to add Security policy to grant permission like

grant codeBase "file:/home/ann/src/" {
permission java.security.AllPermission;
};

Have a look at this for example.


http://muhammadkhojaye.blogspot.com/
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: RMI: ClassNotFound exception client side