This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CORBA BAD_OPERATION

 
Unnsse Khan
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic