• Post Reply Bookmark Topic Watch Topic
  • New Topic

Completed maybe  RSS feed

 
Chris Huisman
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CORBA Exception: completed maybe.
What exactly does it mean when a CORBA calls completion status is maybe, and what causes this.
 
Fintan Bolton
Author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CORBA synchronous invocations consist of matched Request/Reply messages that travel back and forth across the network. If a client sends a Request but never receives the matching Reply, it cannot determine the completion status of the invocation.
For example, if a client makes a remote invocation on a server and the server crashes before sending the matching Reply, the ORB raises a CORBA system exception with status COMPLETED_MAYBE on the client side.
------------------
Fintan Bolton
Author of Pure Corba
 
Chris Huisman
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. I have experienced this problem in a different manner though. A NullPointerException on the server caused the ORB to raise a COMPLETED_MAYBE exception. Can you explain this too me?
 
Fintan Bolton
Author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chris,
Originally posted by Chris Huisman:
Thanks for the reply. I have experienced this problem in a different manner though. A NullPointerException on the server caused the ORB to raise a COMPLETED_MAYBE exception. Can you explain this too me?

I guess you mean that you encountered a NullPointerException in the midst of a method that implements an IDL operation. If the exception is allowed to propagate up to the ORB level, the ORB should convert it into a CORBA system exception of type CORBA::UNKNOWN with completion status COMPLETED_MAYBE. The completion status is set to COMPLETED_MAYBE because the ORB has no way of knowing whether or not the NullPointerException prevented your IDL operation from running to completion.
I hope this explains it!
------------------
Fintan Bolton
Author of Pure Corba
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!