• Post Reply Bookmark Topic Watch Topic
  • New Topic

UNMARSHALLING EXCEPTION

 
Manish Dhasmana
Greenhorn
Posts: 18
Java MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wheneve I try to run my rmi program, an unmarshalling exception is shown. I follow all the necessary steps for running the program,as under
1. compiling the server class,client class and the remote interface.
2. creating stub of server by rmic serverclass (rmic serverclass)
3. adding the policytool
4. starting the rmiregistry (start rmiregitry)
5. running server program (java serverclass)
6. running client program in another dos prompt (java clientclass)
If any idea please let me know.
 
Edward Harned
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CLASSPATH is the most common error for this situation.

Make sure both the registry and server and client all have access to the classes. You can use the environment variable as above or set -cp in each script.
 
Manish Dhasmana
Greenhorn
Posts: 18
Java MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Edward Harned:
CLASSPATH is the most common error for this situation.

Make sure both the registry and server and client all have access to the classes. You can use the environment variable as above or set -cp in each script.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!