Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CORBA Exception while running AdviceClient

 
Anamika Majumder
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,
First of all, thanks to Namaste for your suggestion regarding my previous post, it indeed was a package problem.
I am stuck with not being able to run the client as I am getting a CORBA exception. I have tried changing the name of the business method from getAdvice to getAna, have re-deployed the bean etc.. (in other words have tried all the steps Kathy suggests in one of her posts).
I am using a Windows XP Home Edition machine with J2SDK - 1.4.1 -b21
and J2EE SDK 1.3_01-b01
The CORBA Exception I am getting is slightly different from what the others have been getting. Can someone please suggest what could be going wrong.
Thanks,
Anamika
The goes like this--

>java -cp %CLASSPATH%;AdviceAppClient.jar 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(Util.java:65)
at headfirst._AdviceHome_Stub.create(Unknown Source)
at AdviceClient.go(AdviceClient.java:21)
at AdviceClient.main(AdviceClient.java:13)
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(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:306)
at java.lang.Class.newInstance(Class.java:259)
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(ObjectImpl.java:457)
... 3 more
 
Keith Rosenfield
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ana,
I'm not sure what is causing your error but I have a suggestion.
Start fresh by
- deleting all files that you were not responsible for creating. This includes .ear files, AdviceAppClient.jar, .class files, and any temp files.
- re-compiling all your server side files.
- re-deploying the bean
- re-compile the client
- running the client
Good Luck
[ December 11, 2003: Message edited by: Keith Rosenfield ]
 
D Kumar
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what causing your error but I have a suggestion

The word 'is' missing .
 
Anamika Majumder
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Keith,
Thanks for getting back. I have tried all the steps (deleting ear files, redeploying etc) you've suggested quite a few times, but am still getting this CORBA NO Permission Exception.
In fact, I just tried putting all the src files directly under the advice directory (i.e. by commenting the package declarations), however it still gives me the exception. (NOTE: I know that the package structure is reqd.)
Someone please help!!!
Anamika
 
Keith Rosenfield
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey D Kumar,

Originally posted by D Kumar:

The word 'is' missing .

Thanks for pointing that out to me. You're absolutely right. I will try better in the future.
BTW...You also left out the word 'is'. You should have said the word 'is' is missing.
Have a nice day.
[ December 11, 2003: Message edited by: Keith Rosenfield ]
 
Anamika Majumder
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I finally figured the reason of the CORBA Exception is.
I believe it is a J2EE SDK 1.3.0-b* bug, I downloaded j2sdkee1.3.1
and the same code works .
Anamika
 
Keith Rosenfield
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Ana,
That's great.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic