• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error while accessing bean

 
Prashant Neginahal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I deployed the ejb through RI and when i tried to access the bean through the client, it gave me following error. I already set the classpath for client jar given by RI.
Exception in thread "main" java.rmi.AccessException: CORBA NO_PERMISSION 0 No; n
ested exception is:
org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
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)
at prashu.negu._AdviceHome_Stub.create(Unknown Source)
at AdviceClient.main(AdviceClient.java:12)
Hope somebody will help me.
thanks
Prashant
 
Vijay Pawar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prashant,
I faced the same problem and here is the solution.
Change the method name getAdvice() to sayAdvice() in the remote interface, and the bean class.
In the client call the method sayAdvice() instead of getAdvice().
By the way, did u clear scjp 1.2 or 1.4 ? what books/sites did u use ?
Bye
Jughead
 
Timothy Bennett
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had the same problem, and your fix worked, Jughead. Now, my question is why? What's up with the getAdvice() method, and why does sayAdvice() work? And I'm assuming not everyone had this problem, so why us?
 
Sany Bel
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many of us faced this problem and the solution to this has already been posted on Javaranch. Click on the link below:
http://www.coderanch.com/t/158262/java-EJB-SCBCD/certification/CORBA-bad-operation-error-RI
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic