aspose file tools
The moose likes Distributed Java and the fly likes RMI: ClassCastException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "RMI: ClassCastException" Watch "RMI: ClassCastException" New topic
Author

RMI: ClassCastException

Dave Teare
Ranch Hand

Joined: Oct 09, 2002
Posts: 80
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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: RMI: ClassCastException
 
Similar Threads
BEA WebLogic Platform SP4
ClassCastException on client.main
RMI Problem
ClassCastException Help!!!!!!
classCast Exception in Action class