Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rmi classes compiled. Execution of server class throwing exception

 
michael tall
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I coded an interface, a server program and a client program (all very simple) and compiled them. All 3 .class files are in same folder. After starting server program, I wanted to execute client program on a remote machine. I removed classpath and started rmiregistry. When I executed the server program, it threw exceptions but didn't abort. Exception reads: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: Echo ... etc
Code is
What may be causing exception?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic