Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI: ClassCastException  RSS feed

 
Dave Teare
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have my RMI working perfectly fine for one of my projects, but when I tried creating a second class in a seperate project, I am getting a ClassCastException. I used my working code as a template, so I am fairly convinced I have the right class structure.
On the client I call Naming.lookup(rmiName), which correctly returns a FBNConnectionManager_Stub class, but when I attempt to cast this to a FBNConnectionManager object, I get a cast exception.
Any thoughts on why this might be happening? I have recompiled all my classes and re-rmic'd, and even rebooted my machine, but it still fails. What gives?
Thanks a million!
--Dave.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!