Issue 3790: exceptions in pre_init & post_init (interceptors-rtf) Source: IONA (Mr. Matthew Newhook, ) Nature: Uncategorized Issue Severity: Summary: Are exceptions permitted from pre_init() and post_init() calls? I seem to remember that we discussed making this illegal -- however, I don't notice any verbage in the spec. The problem is if it's illegal to raise exceptions in pre_init and post_init there is no sensible way for an ORB service to indicate to the application that initialization failed. The best that can be done is to call exit() or log an error message. Resolution: Incorporate change and close issue Revised Text: Note: the Java mapping section states that exceptions are ignored. This change just moves that statement into a more general location so it applies to all mappings. Revised Text: In ptc/01-03-04: change the the last two sentences of the second paragraph of 21.7.3 from: This instantiating ORB_init call calls each registered ORBInitializer. The returned ORB will contain any Interceptors that the given service requires. to This instantiating ORB_init call calls pre_init and post_init on each registered ORBInitializer. If any of the ORBInitializer pre_init or post_init operations raise an exception, the ORB shall ignore them and proceed. The returned ORB will contain any Interceptors that the given service requires. and remove: If there are any exceptions, the ORB shall ignore them and proceed. from Java/New Property Set paragraph in section 21.7.3 Actions taken: March 24, 2000: received issue August 25, 2000: received issue April 26, 2010: closed issue April 26, 2010: closed issue April 26, 2010: closed issue Discussion: End of Annotations:===== Date: Fri, 25 Aug 2000 10:38:21 -0230 From: Matthew Newhook To: interceptors-ftf@omg.org Subject: exceptions in pre_init & post_init Message-ID: <20000825103821.A30900@ooc.com> Mime-Version: 1.0 X-Mailer: Mutt 1.0pre3us Content-Type: text/plain; charset=us-ascii X-UIDL: H3>!!W3Be91?Ae9-KY!! Hi, Are exceptions permitted from pre_init() and post_init() calls? I seem to remember that we discussed making this illegal -- however, I don't notice any verbage in the spec. The problem is if it's illegal to raise exceptions in pre_init and post_init there is no sensible way for an ORB service to indicate to the application that initialization failed. The best that can be done is to call exit() or log an error message. Regards, Matthew -- Matthew Newhook E-Mail: mailto:matthew@ooc.com Software Designer WWW: http://www.ooc.com Object Oriented Concepts, Inc. Phone: (709) 738-3725