This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Advisor error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Advisor error" Watch "Advisor error" New topic

Advisor error

Chetan Sahasrabudhe
Ranch Hand

Joined: Aug 09, 2004
Posts: 75

As part of headfirst ejb reading, I am creating all the projects explained in the book.

I am using RI for deployment purpose.

I am able to deploy the Advice Bean and compile my client file with the stub generated by RI.

When I try to run the client it throws following error.
I am trying to figureout what is wrong, but cant makeout where the problem is. (the verifier worked find and returned no errors).
Here is the dump........
E:\Chetan\Work\SCBCD\projects\advice>java -cp %classpath%;AdviceAppClient.jar AdviceClient
Gettign context
lookup found
Got home object
created success
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.go(
at AdviceClient.main(
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 Source)
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

Thanks & Regards<br />Chetan
rishi rishi

Joined: Sep 13, 2004
Posts: 1
U may have to cheking the EJB-RDB mapping for the cmp fields.
Susanta Chatterjee
Ranch Hand

Joined: Aug 12, 2002
Posts: 102
This is an error in Sun J2EE RI. Click here for workaround.
Chetan Sahasrabudhe
Ranch Hand

Joined: Aug 09, 2004
Posts: 75

Greaaaaaaaaaaaat it worked, yep the RI has the bug that does not allow interface name with get<<interface name>>.

Thanks for the help.
I agree. Here's the link:
subject: Advisor error
Similar Threads
Error while running AdviceClient
Problem running HF Chap 1 example
Runtime error with AviceBean from HFE
Head First EJB