my dog learned polymorphism*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes AdviceClient and JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "AdviceClient and JNDI" Watch "AdviceClient and JNDI" New topic
Author

AdviceClient and JNDI

Puneet Vashisht
Ranch Hand

Joined: Jul 30, 2005
Posts: 44
Hi,

I tried to get the example from chapter 1 running on XP professional.

C:\projects\advice>java -cp C:\j2sdkee1.3.1\lib\j2ee.jar:AdviceAppClient.jar;. AdviceClient

and i get this error:

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(Util.java:65)
at headfirst._Advice_Stub.getAdvice(Unknown Source)
at AdviceClient.go(AdviceClient.java:21)
at AdviceClient.main(AdviceClient.java:10)
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(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
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(ObjectImpl.java:457)
at headfirst._Advice_Stub.getAdvice(Unknown Source)
... 2 more



Can somebody plzz help me out on this??
I'm not able to move forward boz of this problem.

Thankz,
Puneet
SCJP1.4
greg philpott
Ranch Hand

Joined: Nov 10, 2000
Posts: 73
I had the same (or very similar) problem.

To solve, I had to edit the default security settings.
In the deploy tool, select your advice bean in the left pane and open up the 'Security' tab in the right pane. Then hit the 'Deployment Settings' button and make sure the 'Support client choice' radio button is selected.

Hope that solves it!
Agasthya Iyer
Greenhorn

Joined: Sep 22, 2005
Posts: 17
See errata

HTH

Regards.
Agasthya


SCJP, SCWCD1.4, SCBCD1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AdviceClient and JNDI
 
Similar Threads
Head First EJB
AdviceGuy Exception
Error while running AdviceClient
java.rmi.RemoteException running AdviceClient
Problem running HF Chap 1 example