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: ClassNotFound exception client side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI: ClassNotFound exception client side" Watch "RMI: ClassNotFound exception client side" New topic

RMI: ClassNotFound exception client side

giuseppe gio

Joined: Jun 29, 2013
Posts: 7

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: 135

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 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/" {

Have a look at this for example.
I agree. Here's the link:
subject: RMI: ClassNotFound exception client side
It's not a secret anymore!