wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes CORBA BAD_OPERATION 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 "CORBA BAD_OPERATION" Watch "CORBA BAD_OPERATION" New topic
Author

CORBA BAD_OPERATION

Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
Ok,

I am running the J2EE 1.3 Reference Implementation on WinXP. I am using the Head First EJB book to learn EJB, head first.

My directory structure is as follows:

(1) Advice (the top-level directory in F:\Java Projects\J2EE Projects\Advice).

(2) 3 subdirectories underneath Advice:
<src>
<shared>
<cls>

in the <src> directory there is an additional subdirectory, called <headfirst>.

the F:\Java Projects\J2EE Projects\Advice\src\headfirst\ directory contains the Advice.java, AdviceHome.java, and AdviceBean.java

I compiled all 3 files successfully, and <cls> directories contain the interpreted bytecode (.class files).

I, then, ran the J2EE RI 1.3, I created an Advice application, added the enterprise bean, verified, and then deployed it.

Inside the <shared> directory located under:

F:\Java Projects\J2EE Projects\Advice\shared, are these two files:

AdviceApp.ear
AdviceAppClient.jar

I generated both of these using the deploytool.

Now, when cd into F:\Java Projects\J2EE Projects\Advice\src\ and compile the AdviceClient.java into ..\cls, everything works.

However, I get this problem when I try to run the client:

F:\Java Projects\J2EE Projects\Advice\cls>java -cp %CLASSPATH%;..\sh
ared\AdviceAppClient.jar AdviceClient

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.mapSystemExceptio
n(ShutdownUtilDelegate.java:137)
at javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
at headfirst._Advice_Stub.getAdvice(Unknown Source)
at AdviceClient.launch(AdviceClient.java:21)
at AdviceClient.main(AdviceClient.java:9)
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

With thanks,
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Please have a look at the following discussions which handle the same topic:

http://www.coderanch.com/t/158703/java-EJB-SCBCD/certification/Head-First-EJB-AdviceBean-damned
http://www.coderanch.com/t/158262/java-EJB-SCBCD/certification/CORBA-bad-operation-error-RI

Thank you


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CORBA BAD_OPERATION
 
Similar Threads
Problem running HF Chap 1 example
Error Running AdviceClient from HFE
HF EJB. AdviceBean example. BAD_OPERATION exception
java.rmi.RemoteException running AdviceClient
Head First EJB