class cast exception while getting refrence to home object
843833Aug 24 2001 — edited Sep 14 2001Hi
I have got a tutorial from the web written by sun. I follwed the example exactly i still get a class cast exception while grtting a refrence to a home object.
I start up the server and deploy the bean properly then I start up tht alient and i get this
C:\classes>java client.TellerClient Teller 111 sav print
got up to here com.sun.corba.ee.internal.iiop.CDRInputStream$1:IOR:0000000000000
025524d493a62616e6b2e54656c6c6572486f6d653a3030303030303030303030303030303000000
0000000000100000000000000d4000101000000000a3132372e302e302e3100040700000021afabc
afe000000204076bf3b000000020000000d010000000000000004ff0000000000000000000200000
00100000014000000000001002000000000000101000000000000000019000000700000000000000
06866696c653a2f433a2f6a3273646b6565312e322e312f7265706f7369746f72792f636f6d702f6
170706c69636174696f6e732f42616e6b417070436c69656e742e6a617220687474703a2f2f636f6
d703a393139312f42616e6b417070436c69656e742e6a617200
jndiname Teller
Exception in thread "main" java.lang.ClassCastException
at com.sun.corba.ee.internal.javax.rmi.PortableRemoteObject.narrow(Porta
bleRemoteObject.java:296)
at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
at client.TellerClient.getBean(TellerClient.java:116)
at client.TellerClient.main(TellerClient.java:61)
can any one help i am stuck here and cant go forward..
thank
Deepak
ps all the code is taken from the tutorial. none of it is my code..