Full_Name: Richard Hidalgo Lorite
 JDK_Version: 1.1.7v1a
 JDK_Arch: i386 (x86)
 Linux_Dist: Debian
 Linux_Dist_Ver: 1.3.1 Kernel 2.0.30
 Libc_Ver: libc5
 Ld_Ver:
 Dyn_Java: no
 Toolkit: Motif
 Toolkit_Ver:
 Bug_Example: http://
 Submission from: 195.53.63.12 (195.53.63.12)


 Linux distribution: DEBIAN GNU 1.3.1
 KERNEL 2.0.30
 version of the JDK: jdk 1.1.7v1a
 architecture: libc
 Program that originates the bug (if it is):
 //Main Object
 import java.rmi.Naming;
 public class Prueba {
 static public void main(String args[]) {
 ObjetoRemoto a=(ObjetoRemoto)new Objeto();
 try { Naming.rebind("rmi://localhost/MiObjeto",a); }
 catch(Exception e) { e.printStackTrace();}
 }
 }
 //Classes and Interfaces
 import java.rmi.server.UnicastRemoteObject;
 import java.rmi.RemoteException;
 public class Objeto extends UnicastRemoteObject implements ObjetoRemoto{
   Objeto() throws RemoteException{}
   public void pinta() { System.out.println("ESTE mitodo se accedera remoto");
}
 }

 import java.rmi.Remote;
 import java.rmi.RemoteException;

 public interface ObjetoRemoto extends Remote{
  public abstract void pinta() throws RemoteException;
 }

 After obtaining Objeto_Stub and Objeto_Skel with rmic and with the registry
up,

 when i have tried to execute Prueba i have obtain next error (stacktrace):

 java.rmi.ServerException: Server RemoteException; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling arguments;
 nested exception is:
         java.lang.ClassNotFoundException: Objeto_Stub

Reply via email to