Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

HF First Example: Runtime Error

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks!!!
Georg
 
He got surgery to replace his foot with a pig. He said it was because of this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic