Forums Register Login

RMI: ClassCastException

+Pie Number of slices to send: Send
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 like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 803 times.
Similar Threads
classCast Exception in Action class
BEA WebLogic Platform SP4
ClassCastException on client.main
ClassCastException Help!!!!!!
RMI Problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 22:49:40.