1 Reply Latest reply: Jul 2, 2013 10:21 PM by EJP RSS

    RMI Codebase Issue

    shik

      Every thing works just fine as both the Client and server runs on the same system,, but as i run one of them on a remote m/c,well i am using vmware for that, Client is not able to locate server's stub and server is not able to locate clients classes for dynamic loading..

      I am sure its an issue with the way i set the codebase url's but how should i change them.

      presently, i set them as

      file:/E:/surshikradmin/workspace/rmi-server/bin/ for server..

      and kind of same way for client.. should i add the host name too,,but how??? Any help would be highly helpful since its been years i am dealing with issue and solving it will make ma project go rock..

       

      Client side stack trace if it coul help!

      Computeappengine exceptionerror unmarshalling return; nested exception is: java.lang.ClassNotFoundException: Engine.ComputeappEngine_Stub java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: Engine.ComputeappEngine_Stub at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at Client.computeappprog.main(computeappprog.java:23) Caused by: java.lang.ClassNotFoundException: Engine.ComputeappEngine_Stub at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:432) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:163) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) ... 2 more