org.omg.CORBA.ORBPackage.InvalidName Java Examples

The following examples show how to use org.omg.CORBA.ORBPackage.InvalidName. 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: POAFactory.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public synchronized POA getRootPOA()
{
    if (rootPOA == null) {
        // See if we are trying to getRootPOA while shutting down the ORB.
        if (isShuttingDown) {
            throw omgWrapper.noObjectAdaptor( ) ;
        }

        try {
            Object obj = orb.resolve_initial_references(
                ORBConstants.ROOT_POA_NAME ) ;
            rootPOA = (POAImpl)obj ;
        } catch (InvalidName inv) {
            throw wrapper.cantResolveRootPoa( inv ) ;
        }
    }

    return rootPOA;
}
 
Example #2
Source File: ORBImpl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example #3
Source File: POAFactory.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
public synchronized POA getRootPOA()
{
    if (rootPOA == null) {
        // See if we are trying to getRootPOA while shutting down the ORB.
        if (isShuttingDown) {
            throw omgWrapper.noObjectAdaptor( ) ;
        }

        try {
            Object obj = orb.resolve_initial_references(
                ORBConstants.ROOT_POA_NAME ) ;
            rootPOA = (POAImpl)obj ;
        } catch (InvalidName inv) {
            throw wrapper.cantResolveRootPoa( inv ) ;
        }
    }

    return rootPOA;
}
 
Example #4
Source File: POAFactory.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public synchronized POA getRootPOA()
{
    if (rootPOA == null) {
        // See if we are trying to getRootPOA while shutting down the ORB.
        if (isShuttingDown) {
            throw omgWrapper.noObjectAdaptor( ) ;
        }

        try {
            Object obj = orb.resolve_initial_references(
                ORBConstants.ROOT_POA_NAME ) ;
            rootPOA = (POAImpl)obj ;
        } catch (InvalidName inv) {
            throw wrapper.cantResolveRootPoa( inv ) ;
        }
    }

    return rootPOA;
}
 
Example #5
Source File: ORBImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example #6
Source File: ORBImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example #7
Source File: ORBImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example #8
Source File: ORBImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example #9
Source File: POAFactory.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public synchronized POA getRootPOA()
{
    if (rootPOA == null) {
        // See if we are trying to getRootPOA while shutting down the ORB.
        if (isShuttingDown) {
            throw omgWrapper.noObjectAdaptor( ) ;
        }

        try {
            Object obj = orb.resolve_initial_references(
                ORBConstants.ROOT_POA_NAME ) ;
            rootPOA = (POAImpl)obj ;
        } catch (InvalidName inv) {
            throw wrapper.cantResolveRootPoa( inv ) ;
        }
    }

    return rootPOA;
}
 
Example #10
Source File: POAFactory.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public synchronized POA getRootPOA()
{
    if (rootPOA == null) {
        // See if we are trying to getRootPOA while shutting down the ORB.
        if (isShuttingDown) {
            throw omgWrapper.noObjectAdaptor( ) ;
        }

        try {
            Object obj = orb.resolve_initial_references(
                ORBConstants.ROOT_POA_NAME ) ;
            rootPOA = (POAImpl)obj ;
        } catch (InvalidName inv) {
            throw wrapper.cantResolveRootPoa( inv ) ;
        }
    }

    return rootPOA;
}
 
Example #11
Source File: ORBImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example #12
Source File: ORBImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example #13
Source File: ORBImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example #14
Source File: POAFactory.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public synchronized POA getRootPOA()
{
    if (rootPOA == null) {
        // See if we are trying to getRootPOA while shutting down the ORB.
        if (isShuttingDown) {
            throw omgWrapper.noObjectAdaptor( ) ;
        }

        try {
            Object obj = orb.resolve_initial_references(
                ORBConstants.ROOT_POA_NAME ) ;
            rootPOA = (POAImpl)obj ;
        } catch (InvalidName inv) {
            throw wrapper.cantResolveRootPoa( inv ) ;
        }
    }

    return rootPOA;
}
 
Example #15
Source File: POAFactory.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public synchronized POA getRootPOA()
{
    if (rootPOA == null) {
        // See if we are trying to getRootPOA while shutting down the ORB.
        if (isShuttingDown) {
            throw omgWrapper.noObjectAdaptor( ) ;
        }

        try {
            Object obj = orb.resolve_initial_references(
                ORBConstants.ROOT_POA_NAME ) ;
            rootPOA = (POAImpl)obj ;
        } catch (InvalidName inv) {
            throw wrapper.cantResolveRootPoa( inv ) ;
        }
    }

    return rootPOA;
}
 
Example #16
Source File: ORBImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example #17
Source File: POAFactory.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public synchronized POA getRootPOA()
{
    if (rootPOA == null) {
        // See if we are trying to getRootPOA while shutting down the ORB.
        if (isShuttingDown) {
            throw omgWrapper.noObjectAdaptor( ) ;
        }

        try {
            Object obj = orb.resolve_initial_references(
                ORBConstants.ROOT_POA_NAME ) ;
            rootPOA = (POAImpl)obj ;
        } catch (InvalidName inv) {
            throw wrapper.cantResolveRootPoa( inv ) ;
        }
    }

    return rootPOA;
}
 
Example #18
Source File: ORBImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example #19
Source File: POAFactory.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public synchronized POA getRootPOA()
{
    if (rootPOA == null) {
        // See if we are trying to getRootPOA while shutting down the ORB.
        if (isShuttingDown) {
            throw omgWrapper.noObjectAdaptor( ) ;
        }

        try {
            Object obj = orb.resolve_initial_references(
                ORBConstants.ROOT_POA_NAME ) ;
            rootPOA = (POAImpl)obj ;
        } catch (InvalidName inv) {
            throw wrapper.cantResolveRootPoa( inv ) ;
        }
    }

    return rootPOA;
}
 
Example #20
Source File: ORBImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    synchronized (this) {
        checkShutdownState();
    }

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}
 
Example #21
Source File: ORBImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    synchronized (this) {
        checkShutdownState();
    }

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}
 
Example #22
Source File: DynAnyImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected DynAnyFactory factory() {
    try {
        return (DynAnyFactory)orb.resolve_initial_references(
            ORBConstants.DYN_ANY_FACTORY_NAME );
    } catch (InvalidName in) {
        throw new RuntimeException("Unable to find DynAnyFactory");
    }
}
 
Example #23
Source File: DynAnyImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected DynAnyFactory factory() {
    try {
        return (DynAnyFactory)orb.resolve_initial_references(
            ORBConstants.DYN_ANY_FACTORY_NAME );
    } catch (InvalidName in) {
        throw new RuntimeException("Unable to find DynAnyFactory");
    }
}
 
Example #24
Source File: DynAnyImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected DynAnyFactory factory() {
    try {
        return (DynAnyFactory)orb.resolve_initial_references(
            ORBConstants.DYN_ANY_FACTORY_NAME );
    } catch (InvalidName in) {
        throw new RuntimeException("Unable to find DynAnyFactory");
    }
}
 
Example #25
Source File: DynAnyImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
protected DynAnyFactory factory() {
    try {
        return (DynAnyFactory)orb.resolve_initial_references(
            ORBConstants.DYN_ANY_FACTORY_NAME );
    } catch (InvalidName in) {
        throw new RuntimeException("Unable to find DynAnyFactory");
    }
}
 
Example #26
Source File: ORBImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    synchronized (this) {
        checkShutdownState();
    }

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}
 
Example #27
Source File: DynAnyImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected DynAnyFactory factory() {
    try {
        return (DynAnyFactory)orb.resolve_initial_references(
            ORBConstants.DYN_ANY_FACTORY_NAME );
    } catch (InvalidName in) {
        throw new RuntimeException("Unable to find DynAnyFactory");
    }
}
 
Example #28
Source File: DynAnyImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected DynAnyFactory factory() {
    try {
        return (DynAnyFactory)orb.resolve_initial_references(
            ORBConstants.DYN_ANY_FACTORY_NAME );
    } catch (InvalidName in) {
        throw new RuntimeException("Unable to find DynAnyFactory");
    }
}
 
Example #29
Source File: ORBImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    synchronized (this) {
        checkShutdownState();
    }

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}
 
Example #30
Source File: ORBImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    synchronized (this) {
        checkShutdownState();
    }

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}