This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I am getting the folloing error when I am running my client. Successfully deployed and don't know how to fix this. Any help??? C:\release\bcd\HFEJBCODE\advice>java AdviceClient java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is: org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemExceptio n(ShutdownUtilDelegate.java:87) at javax.rmi.CORBA.Util.mapSystemException(Unknown Source) at headfirst._AdviceHome_Stub.create(Unknown Source) at AdviceClient.go(AdviceClient.java:26) at AdviceClient.main(AdviceClient.java:14) Caused by: org.omg.CORBA.NO_PERMISSION: 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:136) at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source) ... 3 more
This has been asked before, but basically the problem is a bug in Sun's reference implemenation of J2EE. To get around this problem, you can't have the method and interface name be roughly the same. (change getAdvice to getMessage in the right places and it will work) Goto the publishers website for all the details: HeadFirst EJB Notes