This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Error while running client

 
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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • 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 Spring Java
  • 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.
 
    Bookmark Topic Watch Topic
  • New Topic