• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while running client  RSS feed

 
Rashi Gulati
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

This is my first application in RMI I am facing problem while running the client HelloClient Exception: java.lang.ClassCastException:sun.rmi.registry.RegistryImpl_stub

Please Help
Regards
Rashi
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help if you provided more information about your problem...

Is the HelloClient program you are having problems with the one in this tutorial from Sun?

Have you followed the compile and run sections of the tutorial completely?

What line is throwing the exception?
 
Rashi Gulati
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Nathan

Here is the link for the tutorial on RMI whoes Hello World program I was trying to run.
http://www.ccs.neu.edu/home/kenb/com3337/rmi_tut.html
I am following the same instructions given in this tutorial but still getting this exception Exception: java.lang.ClassCastException:sun.rmi.registry.RegistryImpl_stub while running the HelloClient

Regards
Rashi
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really sure what is causing your problem, but this post on Sun's website gives some of the issues that can cause this exception.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!