• Post Reply Bookmark Topic Watch Topic
  • New Topic


Unnsse Khan
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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:

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:


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
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:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
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
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at headfirst._Advice_Stub.getAdvice(Unknown Source)
... 2 more

With thanks,
Valentin Crettaz
Gold Digger
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:


Thank you
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!