• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error while running client

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic