Please help. I'm trying out a simple example and I'm getting java.rmi.RemoteException. I successfully deployed the bean successfully; no problem. I'm getting the eexception after the following statement,
AdviceHome home = (AdviceHome)PortableRemoteObject.narrow(o,AdviceHome.class);
Where AdviceHome is the RemoteHome interface and is succesfully acquired through "Object o = ic.lookup("Advisor");" statement.
The full stacktrace is as follows:
java.rmi.RemoteException: CORBA BAD_OPERATION 0 No; nested exception is: org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: No at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:137) at javax.rmi.CORBA.Util.mapSystemException(Unknown Source) at headfirst._Advice_Stub.getAdvice(Unknown Source) at AdviceClient.go(AdviceClient.java:35) at AdviceClient.main(AdviceClient.java:17) Caused by: org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed:No at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:93) at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:108) at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOAClientSC.java:132) at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source) at headfirst._Advice_Stub.getAdvice(Unknown Source) ... 2 more [ February 21, 2006: Message edited by: Muthaiah Ram ]
SCJP 1.6, SCJD, SCWCD, SCBCD.
Be nice to people on the way up cos, you'll need 'em on your way down - From somewhere I can't remember!
Hmm, The server doesn't move a bit on this occassion. However, I tried another simple method without returning anything(ie.. void) and it gets the server perform the method. Still, the method that returns a String gets the same exception. The Bean class is as follows......
The Component Interface is defined as
I'm defintely overlooking something very obvious...What could it be it? Pls help me out...........