Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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 ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh


Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,, and

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 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 javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
at headfirst._Advice_Stub.getAdvice(Unknown Source)
at AdviceClient.launch(
at AdviceClient.main(
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 org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at headfirst._Advice_Stub.getAdvice(Unknown Source)
... 2 more

With thanks,
Author & Gold Digger
Posts: 7617
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:

Thank you
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic