wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Error in client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Error in client" Watch "Error in client" New topic
Author

Error in client

Thomas Dev
Greenhorn

Joined: Dec 15, 2003
Posts: 4
Hello,
I was trying the Advice example from Kathy's HFE book.
When I am running the client I am getting following error.
If I comment the remote call then program executes perfectly.
That means I am getting the Remot and Home object properly without error.
However when I make a call to the remote method then I get this error.
I am using J2EE SDK 1.3.1 and J2SDK 1.4.2_02

Exception in thread "main" java.rmi.RemoteException: CORBA BAD_OPERATION 0 No; n
ested exception is:
org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: No
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemExceptio
n(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:13)
Caused by: org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed:
No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
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.getSystemExc
eption(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(GenericPOACli
entSC.java:132)
at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at headfirst._Advice_Stub.getAdvice(Unknown Source)
... 2 more
Thomas Dev
Greenhorn

Joined: Dec 15, 2003
Posts: 4
Thanx in advance...
I found out the solution from other threads...
Changed the name of the method to something else and it seems to work
Magnus Stattin
Ranch Hand

Joined: Jun 05, 2003
Posts: 65
Please see this thread.
The problem has to do with a bug in RI that makes it fail when the methodname resembles the name of the bean. (getAdvice(), advice).
Try to rename the advice() method to something like getMessage().
Best Regards
/Magnus
 
 
subject: Error in client
 
Similar Threads
Advisor error
HFE page 57, problem running the client.
Error while running AdviceClient
java.rmi.RemoteException: on 1st example
Runtime error with AviceBean from HFE