• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

CORBA BAD_OPERATION

 
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please have a look at the following discussions which handle the same topic:

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

Thank you
 
reply
    Bookmark Topic Watch Topic
  • New Topic