• Post Reply Bookmark Topic Watch Topic
  • New Topic

rmi

 
anis mistry
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a rmi program does not work on my pc but it worked on others pc
there are three programs ie RMIServer.java which is the server application ,RMIClient.java which is the client application and RMIInterface.java which has two methods which are remote all these programs gets compiled but while running it from the dos prompt it gives these errors:
RemoteException occured in serverthread;nested exception is:java.rmi.UnmarshalException:error unmarshalling arguments;nested exception is:java.lang.ClassNotFoundException:RMIServer_stub
what is the problem how does it work on others pc and not on mine how should i handle these exception what are the reasons for its occurrance please help
 
a ali
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There could be couple of reasons for the error.
1. When you run the server, you need to define the java.rmi.server.codebase. This is used by the rmi registry to locate the stub for your server.
2. You need to create stubs for your server using rmic.
Hope it helps.
 
Jerry Pulley
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a ali,
Thanks for replying, but please register an appropriate name.
Basically, we'd appreciate a complete first name.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!