Java Code Examples for org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName#initCause()

The following examples show how to use org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName#initCause() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ORBInitInfoImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * See orbos/99-12-02, Chapter 11, Dynamic Initial References on page
 * 11-81.  This operation is identical to ORB::register_initial_reference
 * described there.  This same functionality exists here because the ORB,
 * not yet fully initialized, is not yet available but initial references
 * may need to be registered as part of Interceptor registration.
 * <p>
 * This method may not be called during post_init.
 */
public void register_initial_reference( String id,
                                        org.omg.CORBA.Object obj )
    throws InvalidName
{
    checkStage();
    if( id == null ) nullParam();

    // As per CORBA 3.0 section 21.8.1,
    // if null is passed as the obj parameter,
    // throw BAD_PARAM with minor code OMGSystemException.RIR_WITH_NULL_OBJECT.
    // Though the spec is talking about IDL null, we will address both
    // Java null and IDL null:
    // Note: Local Objects can never be nil!
    if( obj == null ) {
        throw omgWrapper.rirWithNullObject() ;
    }

    // This check was made to determine that the objref is a
    // non-local objref that is fully
    // initialized: this was called only for its side-effects of
    // possibly throwing exceptions.  However, registering
    // local objects should be permitted!
    // XXX/Revisit?
    // IOR ior = ORBUtility.getIOR( obj ) ;

    // Delegate to ORB.  If ORB version throws InvalidName, convert to
    // equivalent Portable Interceptors InvalidName.
    try {
        orb.register_initial_reference( id, obj );
    } catch( org.omg.CORBA.ORBPackage.InvalidName e ) {
        InvalidName exc = new InvalidName( e.getMessage() );
        exc.initCause( e ) ;
        throw exc ;
    }
}
 
Example 2
Source File: ORBInitInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See orbos/99-12-02, Chapter 11, Dynamic Initial References on page
 * 11-81.  This operation is identical to ORB::register_initial_reference
 * described there.  This same functionality exists here because the ORB,
 * not yet fully initialized, is not yet available but initial references
 * may need to be registered as part of Interceptor registration.
 * <p>
 * This method may not be called during post_init.
 */
public void register_initial_reference( String id,
                                        org.omg.CORBA.Object obj )
    throws InvalidName
{
    checkStage();
    if( id == null ) nullParam();

    // As per CORBA 3.0 section 21.8.1,
    // if null is passed as the obj parameter,
    // throw BAD_PARAM with minor code OMGSystemException.RIR_WITH_NULL_OBJECT.
    // Though the spec is talking about IDL null, we will address both
    // Java null and IDL null:
    // Note: Local Objects can never be nil!
    if( obj == null ) {
        throw omgWrapper.rirWithNullObject() ;
    }

    // This check was made to determine that the objref is a
    // non-local objref that is fully
    // initialized: this was called only for its side-effects of
    // possibly throwing exceptions.  However, registering
    // local objects should be permitted!
    // XXX/Revisit?
    // IOR ior = ORBUtility.getIOR( obj ) ;

    // Delegate to ORB.  If ORB version throws InvalidName, convert to
    // equivalent Portable Interceptors InvalidName.
    try {
        orb.register_initial_reference( id, obj );
    } catch( org.omg.CORBA.ORBPackage.InvalidName e ) {
        InvalidName exc = new InvalidName( e.getMessage() );
        exc.initCause( e ) ;
        throw exc ;
    }
}
 
Example 3
Source File: ORBInitInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See orbos/99-12-02, Chapter 11, Dynamic Initial References on page
 * 11-81.  This operation is identical to ORB::register_initial_reference
 * described there.  This same functionality exists here because the ORB,
 * not yet fully initialized, is not yet available but initial references
 * may need to be registered as part of Interceptor registration.
 * <p>
 * This method may not be called during post_init.
 */
public void register_initial_reference( String id,
                                        org.omg.CORBA.Object obj )
    throws InvalidName
{
    checkStage();
    if( id == null ) nullParam();

    // As per CORBA 3.0 section 21.8.1,
    // if null is passed as the obj parameter,
    // throw BAD_PARAM with minor code OMGSystemException.RIR_WITH_NULL_OBJECT.
    // Though the spec is talking about IDL null, we will address both
    // Java null and IDL null:
    // Note: Local Objects can never be nil!
    if( obj == null ) {
        throw omgWrapper.rirWithNullObject() ;
    }

    // This check was made to determine that the objref is a
    // non-local objref that is fully
    // initialized: this was called only for its side-effects of
    // possibly throwing exceptions.  However, registering
    // local objects should be permitted!
    // XXX/Revisit?
    // IOR ior = ORBUtility.getIOR( obj ) ;

    // Delegate to ORB.  If ORB version throws InvalidName, convert to
    // equivalent Portable Interceptors InvalidName.
    try {
        orb.register_initial_reference( id, obj );
    } catch( org.omg.CORBA.ORBPackage.InvalidName e ) {
        InvalidName exc = new InvalidName( e.getMessage() );
        exc.initCause( e ) ;
        throw exc ;
    }
}
 
Example 4
Source File: ORBInitInfoImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * See orbos/99-12-02, Chapter 11, Dynamic Initial References on page
 * 11-81.  This operation is identical to ORB::register_initial_reference
 * described there.  This same functionality exists here because the ORB,
 * not yet fully initialized, is not yet available but initial references
 * may need to be registered as part of Interceptor registration.
 * <p>
 * This method may not be called during post_init.
 */
public void register_initial_reference( String id,
                                        org.omg.CORBA.Object obj )
    throws InvalidName
{
    checkStage();
    if( id == null ) nullParam();

    // As per CORBA 3.0 section 21.8.1,
    // if null is passed as the obj parameter,
    // throw BAD_PARAM with minor code OMGSystemException.RIR_WITH_NULL_OBJECT.
    // Though the spec is talking about IDL null, we will address both
    // Java null and IDL null:
    // Note: Local Objects can never be nil!
    if( obj == null ) {
        throw omgWrapper.rirWithNullObject() ;
    }

    // This check was made to determine that the objref is a
    // non-local objref that is fully
    // initialized: this was called only for its side-effects of
    // possibly throwing exceptions.  However, registering
    // local objects should be permitted!
    // XXX/Revisit?
    // IOR ior = ORBUtility.getIOR( obj ) ;

    // Delegate to ORB.  If ORB version throws InvalidName, convert to
    // equivalent Portable Interceptors InvalidName.
    try {
        orb.register_initial_reference( id, obj );
    } catch( org.omg.CORBA.ORBPackage.InvalidName e ) {
        InvalidName exc = new InvalidName( e.getMessage() );
        exc.initCause( e ) ;
        throw exc ;
    }
}
 
Example 5
Source File: ORBInitInfoImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See orbos/99-12-02, Chapter 11, Dynamic Initial References on page
 * 11-81.  This operation is identical to ORB::register_initial_reference
 * described there.  This same functionality exists here because the ORB,
 * not yet fully initialized, is not yet available but initial references
 * may need to be registered as part of Interceptor registration.
 * <p>
 * This method may not be called during post_init.
 */
public void register_initial_reference( String id,
                                        org.omg.CORBA.Object obj )
    throws InvalidName
{
    checkStage();
    if( id == null ) nullParam();

    // As per CORBA 3.0 section 21.8.1,
    // if null is passed as the obj parameter,
    // throw BAD_PARAM with minor code OMGSystemException.RIR_WITH_NULL_OBJECT.
    // Though the spec is talking about IDL null, we will address both
    // Java null and IDL null:
    // Note: Local Objects can never be nil!
    if( obj == null ) {
        throw omgWrapper.rirWithNullObject() ;
    }

    // This check was made to determine that the objref is a
    // non-local objref that is fully
    // initialized: this was called only for its side-effects of
    // possibly throwing exceptions.  However, registering
    // local objects should be permitted!
    // XXX/Revisit?
    // IOR ior = ORBUtility.getIOR( obj ) ;

    // Delegate to ORB.  If ORB version throws InvalidName, convert to
    // equivalent Portable Interceptors InvalidName.
    try {
        orb.register_initial_reference( id, obj );
    } catch( org.omg.CORBA.ORBPackage.InvalidName e ) {
        InvalidName exc = new InvalidName( e.getMessage() );
        exc.initCause( e ) ;
        throw exc ;
    }
}
 
Example 6
Source File: ORBInitInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See orbos/99-12-02, Chapter 11, Dynamic Initial References on page
 * 11-81.  This operation is identical to ORB::register_initial_reference
 * described there.  This same functionality exists here because the ORB,
 * not yet fully initialized, is not yet available but initial references
 * may need to be registered as part of Interceptor registration.
 * <p>
 * This method may not be called during post_init.
 */
public void register_initial_reference( String id,
                                        org.omg.CORBA.Object obj )
    throws InvalidName
{
    checkStage();
    if( id == null ) nullParam();

    // As per CORBA 3.0 section 21.8.1,
    // if null is passed as the obj parameter,
    // throw BAD_PARAM with minor code OMGSystemException.RIR_WITH_NULL_OBJECT.
    // Though the spec is talking about IDL null, we will address both
    // Java null and IDL null:
    // Note: Local Objects can never be nil!
    if( obj == null ) {
        throw omgWrapper.rirWithNullObject() ;
    }

    // This check was made to determine that the objref is a
    // non-local objref that is fully
    // initialized: this was called only for its side-effects of
    // possibly throwing exceptions.  However, registering
    // local objects should be permitted!
    // XXX/Revisit?
    // IOR ior = ORBUtility.getIOR( obj ) ;

    // Delegate to ORB.  If ORB version throws InvalidName, convert to
    // equivalent Portable Interceptors InvalidName.
    try {
        orb.register_initial_reference( id, obj );
    } catch( org.omg.CORBA.ORBPackage.InvalidName e ) {
        InvalidName exc = new InvalidName( e.getMessage() );
        exc.initCause( e ) ;
        throw exc ;
    }
}
 
Example 7
Source File: ORBInitInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See orbos/99-12-02, Chapter 11, Dynamic Initial References on page
 * 11-81.  This operation is identical to ORB::register_initial_reference
 * described there.  This same functionality exists here because the ORB,
 * not yet fully initialized, is not yet available but initial references
 * may need to be registered as part of Interceptor registration.
 * <p>
 * This method may not be called during post_init.
 */
public void register_initial_reference( String id,
                                        org.omg.CORBA.Object obj )
    throws InvalidName
{
    checkStage();
    if( id == null ) nullParam();

    // As per CORBA 3.0 section 21.8.1,
    // if null is passed as the obj parameter,
    // throw BAD_PARAM with minor code OMGSystemException.RIR_WITH_NULL_OBJECT.
    // Though the spec is talking about IDL null, we will address both
    // Java null and IDL null:
    // Note: Local Objects can never be nil!
    if( obj == null ) {
        throw omgWrapper.rirWithNullObject() ;
    }

    // This check was made to determine that the objref is a
    // non-local objref that is fully
    // initialized: this was called only for its side-effects of
    // possibly throwing exceptions.  However, registering
    // local objects should be permitted!
    // XXX/Revisit?
    // IOR ior = ORBUtility.getIOR( obj ) ;

    // Delegate to ORB.  If ORB version throws InvalidName, convert to
    // equivalent Portable Interceptors InvalidName.
    try {
        orb.register_initial_reference( id, obj );
    } catch( org.omg.CORBA.ORBPackage.InvalidName e ) {
        InvalidName exc = new InvalidName( e.getMessage() );
        exc.initCause( e ) ;
        throw exc ;
    }
}
 
Example 8
Source File: ORBInitInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See orbos/99-12-02, Chapter 11, Dynamic Initial References on page
 * 11-81.  This operation is identical to ORB::register_initial_reference
 * described there.  This same functionality exists here because the ORB,
 * not yet fully initialized, is not yet available but initial references
 * may need to be registered as part of Interceptor registration.
 * <p>
 * This method may not be called during post_init.
 */
public void register_initial_reference( String id,
                                        org.omg.CORBA.Object obj )
    throws InvalidName
{
    checkStage();
    if( id == null ) nullParam();

    // As per CORBA 3.0 section 21.8.1,
    // if null is passed as the obj parameter,
    // throw BAD_PARAM with minor code OMGSystemException.RIR_WITH_NULL_OBJECT.
    // Though the spec is talking about IDL null, we will address both
    // Java null and IDL null:
    // Note: Local Objects can never be nil!
    if( obj == null ) {
        throw omgWrapper.rirWithNullObject() ;
    }

    // This check was made to determine that the objref is a
    // non-local objref that is fully
    // initialized: this was called only for its side-effects of
    // possibly throwing exceptions.  However, registering
    // local objects should be permitted!
    // XXX/Revisit?
    // IOR ior = ORBUtility.getIOR( obj ) ;

    // Delegate to ORB.  If ORB version throws InvalidName, convert to
    // equivalent Portable Interceptors InvalidName.
    try {
        orb.register_initial_reference( id, obj );
    } catch( org.omg.CORBA.ORBPackage.InvalidName e ) {
        InvalidName exc = new InvalidName( e.getMessage() );
        exc.initCause( e ) ;
        throw exc ;
    }
}
 
Example 9
Source File: ORBInitInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See orbos/99-12-02, Chapter 11, Dynamic Initial References on page
 * 11-81.  This operation is identical to ORB::register_initial_reference
 * described there.  This same functionality exists here because the ORB,
 * not yet fully initialized, is not yet available but initial references
 * may need to be registered as part of Interceptor registration.
 * <p>
 * This method may not be called during post_init.
 */
public void register_initial_reference( String id,
                                        org.omg.CORBA.Object obj )
    throws InvalidName
{
    checkStage();
    if( id == null ) nullParam();

    // As per CORBA 3.0 section 21.8.1,
    // if null is passed as the obj parameter,
    // throw BAD_PARAM with minor code OMGSystemException.RIR_WITH_NULL_OBJECT.
    // Though the spec is talking about IDL null, we will address both
    // Java null and IDL null:
    // Note: Local Objects can never be nil!
    if( obj == null ) {
        throw omgWrapper.rirWithNullObject() ;
    }

    // This check was made to determine that the objref is a
    // non-local objref that is fully
    // initialized: this was called only for its side-effects of
    // possibly throwing exceptions.  However, registering
    // local objects should be permitted!
    // XXX/Revisit?
    // IOR ior = ORBUtility.getIOR( obj ) ;

    // Delegate to ORB.  If ORB version throws InvalidName, convert to
    // equivalent Portable Interceptors InvalidName.
    try {
        orb.register_initial_reference( id, obj );
    } catch( org.omg.CORBA.ORBPackage.InvalidName e ) {
        InvalidName exc = new InvalidName( e.getMessage() );
        exc.initCause( e ) ;
        throw exc ;
    }
}
 
Example 10
Source File: ORBInitInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See orbos/99-12-02, Chapter 11, Dynamic Initial References on page
 * 11-81.  This operation is identical to ORB::register_initial_reference
 * described there.  This same functionality exists here because the ORB,
 * not yet fully initialized, is not yet available but initial references
 * may need to be registered as part of Interceptor registration.
 * <p>
 * This method may not be called during post_init.
 */
public void register_initial_reference( String id,
                                        org.omg.CORBA.Object obj )
    throws InvalidName
{
    checkStage();
    if( id == null ) nullParam();

    // As per CORBA 3.0 section 21.8.1,
    // if null is passed as the obj parameter,
    // throw BAD_PARAM with minor code OMGSystemException.RIR_WITH_NULL_OBJECT.
    // Though the spec is talking about IDL null, we will address both
    // Java null and IDL null:
    // Note: Local Objects can never be nil!
    if( obj == null ) {
        throw omgWrapper.rirWithNullObject() ;
    }

    // This check was made to determine that the objref is a
    // non-local objref that is fully
    // initialized: this was called only for its side-effects of
    // possibly throwing exceptions.  However, registering
    // local objects should be permitted!
    // XXX/Revisit?
    // IOR ior = ORBUtility.getIOR( obj ) ;

    // Delegate to ORB.  If ORB version throws InvalidName, convert to
    // equivalent Portable Interceptors InvalidName.
    try {
        orb.register_initial_reference( id, obj );
    } catch( org.omg.CORBA.ORBPackage.InvalidName e ) {
        InvalidName exc = new InvalidName( e.getMessage() );
        exc.initCause( e ) ;
        throw exc ;
    }
}