File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Getting RemoteException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Getting RemoteException" Watch "Getting RemoteException" New topic

Getting RemoteException

Muthaiah Ramanathan
Ranch Hand

Joined: May 16, 2005
Posts: 102

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 javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
at headfirst._Advice_Stub.getAdvice(Unknown Source)
at AdviceClient.go(
at AdviceClient.main(
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 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 ]


Be nice to people on the way up cos, you'll need 'em on your way down - From somewhere I can't remember!
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

That looks like the exception chain on the clientside. What is showing up on the Serverside, on the app or web server?


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Muthaiah Ramanathan
Ranch Hand

Joined: May 16, 2005
Posts: 102
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...........


[ February 23, 2006: Message edited by: Muthaiah Ram ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Getting RemoteException
It's not a secret anymore!