Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI Basic Doubt  RSS feed

 
lp
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i was trying to run a basic level RMI program .i compiled all the interface ,implementation ,client and server files and got the respective .class files .After that i did i generated the stub and skelton files for the Implementation
After that starting the Rmiregistry ,i started running the server file ,it gave me an error saying
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: CalcuImpl_Stub
I later on checked it again all the stub and skelton files are present there .Can anyone tell me what to do ?
The example i was trying was given in jGuru.
All the files are in one folder
Thanks
Lakshmi
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Possibly you did not make the parent class to the stub available to the RMI registry. Without the service interface the registry cannot resolve the stub class itself.
 
Dave Teare
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Michael,
Sorry for my ignorance, but can you clarify what you stated above? How does one know if the parent of the Stub is available to the RMI registry?
Thanks!
--Dave.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!