Home > Default > RMI Codebase Issue

RMI Codebase Issue

November 30Hits:0
Advertisement
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

Answers

Crossposted and answered here

Read other 2 answers

Tags:

Related Articles

  • RMI Codebase IssueNovember 30

    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

  • RMI codebase confusionNovember 30

    You'll have to excuse me if I am asking stupid questions, but I can't find the information I want in the documentation. I am working on an RMI client-server project with 3 jars client.jar, common.jar, server.jar. The common jar contains a Remote inte

  • How to include spaces in rmi codebase value url?October 11

    I am writing an RMI application to run on a LAN, and for my codebase value I am using an URL with the format file:///d:\dir1\dir2\.xx.jar, where the path points to a directory on the server's hard drive. I need to accommodate the situation where dir1

  • Trouble with RMI codebaseOctober 11

    Hi, i've created a file transfer application via RMI, it work very well, i can transfer file longer than 1 GB without any problem. But when i copy my project with all classes to another directory, it doesn't work. I'm sure that the trouble is in the

  • RMI "UnmarshalException" issueOctober 11

    Hi, I am doing a sample RMI application in the following step by step process but in the *8th* step I am getting exception so please kindly resolve my issue. Step-1: creating “Service interface”           AddServiceInterface.java           ==========

  • Jar file as RMI codebaseNovember 30

    Please tell me I'm missing something: I have an RMI server that works fine. All I want to do now is package it in a jar file...Sounded easy enough when I got started. According to the RMI tutorial, the value of the codebase property can refer to 1. T

  • RMI firewall issue - opening port 1099 is not enoughNovember 30

    Hello, We have a distributed java desktop app that uses RMI with callbacks to communicate amongst the clients. It all works really well at our dev site and at 2 trial sites. We are about to deploy out to more customer sites - so I have been doing mor

  • Problems with RMI CodebaseNovember 30

    Hello, i have installed Tomcat in a path with whitespaces. Our Application use RMI (as server componend) to communicate with other Applications. when I start Tomcat i get an Exception like this: (by the way: no protocol: Audit -> Audit is a part of t

  • RMI | Firewall  issue revisitedNovember 30

    Hi all, I have searched through these forums for a suitable answer to my problem, but have not gotten any. My RMI client-server app was working perfectly well on a Windows 2000 Advanced Server (with its firewall restrictions), until my company decide

  • RMI security issueNovember 30

    Hi, there! This is cross-post from "NetWeaver AS, Java" forum. I have a security issue when I try to run RMI client code in the web application on the Web AS 2004s. There is lookup statement in JSP or servlet code: Naming.lookup("//server/R

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.516 s.