• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF First Example: Runtime Error

 
Georg Joo
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I started with the first chapter and the first example. Everthing was ok compiling, verifying, deploying ...
Now I run the Client, I get some Messages. (I think the Problem is IIOP, but I don't know, what I can do ?
Have I to configure the RI Server, IIOP ???)
How can I test, if IIOP is running?
Running the statement ... .getAdvice() is the Problem
The messages:
=============
java.rmi.RemoteException: CORBA_BAD_OPERATION 0 No; nested exception is :
org.omg.CORBA.BAD_OPERATION: vcmid: 0x0 minor code: 0 completed: No
at com.sun.corba.eeinternal.iiop.ShutDownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:137)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at test._Advice_Stub,getAdvice(UnknownSource)
at AdviceClient.go(AdviceClient.java:27)
at AdviceClient.main(AdviceClient.java:13)
Caused by: org.omg.CORBA.BAD_OPERATION: vcmid: 0x0 minor code: 0 completed: No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructoAccessorImpl.newInstance(DelegatinConstructoAccessorImpl.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.getSystemException(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(GenericPOACLientSC.java:132)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
at test._Advice_Stub.getAdvice(UnkownSource)
... 2 more
Thanks
Georg
 
Lu Battist
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has been asked before but just go to the following page for a full explanation:
http://wickedlysmart.com/HeadFirst/HeadFirstEJB/HeadFirstEJBNotes.html
In short, you'll have to change getAdvice to something else like getMessage due to a bug in the J2EE Refernece Implemenatation.
 
Georg Joo
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!!
Georg
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic