Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 54636 invoked from network); 10 Mar 2008 12:13:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 12:13:13 -0000 Received: (qmail 51658 invoked by uid 500); 10 Mar 2008 12:13:09 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 51266 invoked by uid 500); 10 Mar 2008 12:13:08 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 51255 invoked by uid 99); 10 Mar 2008 12:13:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 05:13:08 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 12:12:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 26259234C08B for ; Mon, 10 Mar 2008 05:11:46 -0700 (PDT) Message-ID: <1799926201.1205151106155.JavaMail.jira@brutus> Date: Mon, 10 Mar 2008 05:11:46 -0700 (PDT) From: "Rick McGuire (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Closed: (YOKO-419) RootPOA not available to resolve_initial_reference() call in ORB initializer. In-Reply-To: <588033568.1204922146355.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/YOKO-419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick McGuire closed YOKO-419. ----------------------------- Resolution: Fixed > RootPOA not available to resolve_initial_reference() call in ORB initializer. > ------------------------------------------------------------------------------- > > Key: YOKO-419 > URL: https://issues.apache.org/jira/browse/YOKO-419 > Project: Yoko - CORBA Server > Issue Type: Bug > Security Level: public(Regular issues) > Components: orb core > Reporter: Rick McGuire > Assignee: Rick McGuire > > The following two programs demonstrate this problem. A call to resolve the RootPOA made from the posi_init() method of an ORBInitializer is unable to resolve the instance. > import java.util.Properties; > import org.omg.CORBA.ORB; > public class TestPostInit { > public static void main(String[] args) throws Exception { > Properties result = new Properties(); > > result.put("org.omg.PortableInterceptor.ORBInitializerClass.ORBInitializer", ""); > ORB orb = ORB.init(new String[0], result); > orb.resolve_initial_references("RootPOA"); > } > } > import org.omg.CORBA.LocalObject; > import org.omg.PortableInterceptor.ORBInitInfo; > import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName; > /** > * @version $Revision: 452600 $ $Date: 2006-10-03 12:29:42 -0700 (Tue, 03 Oct 2006) $ > */ > public class ORBInitializer extends LocalObject implements org.omg.PortableInterceptor.ORBInitializer { > public ORBInitializer() { > } > /** > * Called during ORB initialization. If it is expected that initial > * services registered by an interceptor will be used by other > * interceptors, then those initial services shall be registered at > * this point via calls to > * ORBInitInfo.register_initial_reference. > * > * @param info provides initialization attributes and operations by > * which Interceptors can be registered. > */ > public void pre_init(ORBInitInfo info) { > } > /** > * Called during ORB initialization. If a service must resolve initial > * references as part of its initialization, it can assume that all > * initial references will be available at this point. > *

> * Calling the post_init operations is not the final > * task of ORB initialization. The final task, following the > * post_init calls, is attaching the lists of registered > * interceptors to the ORB. Therefore, the ORB does not contain the > * interceptors during calls to post_init. If an > * ORB-mediated call is made from within post_init, no > * request interceptors will be invoked on that call. > * Likewise, if an operation is performed which causes an IOR to be > * created, no IOR interceptors will be invoked. > * > * @param info provides initialization attributes and > * operations by which Interceptors can be registered. > */ > public void post_init(ORBInitInfo info) { > try { > info.resolve_initial_references("RootPOA"); > } catch (org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName ex ) { > ex.printStackTrace(); > } > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.