Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI: ClassNotFound exception client side

 
giuseppe gio
Greenhorn
Posts: 7
Android Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 135
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic