wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Error while running Advice EJB from HF 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 "Error while running Advice EJB from HF" Watch "Error while running Advice EJB from HF" New topic
Author

Error while running Advice EJB from HF

SarmaP
Greenhorn

Joined: Mar 12, 2004
Posts: 6
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
Lu Battist
Ranch Hand

Joined: Feb 17, 2003
Posts: 104
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error while running Advice EJB from HF
 
Similar Threads
getting java.rmi.AccessException: CORBA NO_PERMISSION
Help required for executing EJB
java.rmi.accessexception
Problem Running the AdviceClient
CORBA.NO_PERMISSION Exception