Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having tough time in RMI

Status
Not open for further replies.

ayanroy

Programmer
Oct 20, 2002
22
EU
Hello, I was having a tough time in RMI . My problem was that when I called Naming.rebind on the server side I got this error



java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: AddServerImpl_Stub



From this error, It seems that it can't find the AddServerImpl_Stub.class file. However, the Stub is in the same directory as my 4 other classes I am using.


Any one know why this is happening?
 
That error has been the bain of my life too in the past. If you use "javaw sun.rmi.registry.RegistryImpl" instead of "start rmiregistry" to fire the rmiregistry, it works. No idea why, and have never found anyone that does either. Weird !
 
first start the rmi registry with
start rmiregistry
Then Start the server with
start java <RMIServer.java>
the run client program.
good luck
 
Yes, but if you use &quot;start rmiregistry&quot;, sometimes (I'm saying every time) you get the errors the guy is seeing. Using &quot;javaw sun.rmi.registry.RegistryImpl&quot; gets around this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top