my dog learned polymorphism*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Getting RemoteException" Watch "Getting RemoteException" New topic
Author

Getting RemoteException

Muthaiah Ramanathan
Ranch Hand

Joined: May 16, 2005
Posts: 102
Guys,

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!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
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...........

Thanks,

Muthaiah.
[ February 23, 2006: Message edited by: Muthaiah Ram ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting RemoteException