Java Code Examples for com.sun.corba.se.impl.logging.ORBUtilSystemException.get()

The following are Jave code examples for showing how to use get() of the com.sun.corba.se.impl.logging.ORBUtilSystemException class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: openjdk-jdk10   File: CDROutputObject.java   Source Code and License Vote up 6 votes
private CDROutputObject(
    ORB orb, GIOPVersion giopVersion, Message header,
    BufferManagerWrite manager, byte streamFormatVersion,
    CorbaMessageMediator mediator)
{
    super(orb, giopVersion, header.getEncodingVersion(),
          false, manager, streamFormatVersion,
          ((mediator != null && mediator.getConnection() != null) ?
           ((CorbaConnection)mediator.getConnection()).
                 shouldUseDirectByteBuffers() : false));

    this.header = header;
    this.orb = orb;
    this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_ENCODING ) ;
    this.omgWrapper = OMGSystemException.get( orb, CORBALogDomains.RPC_ENCODING ) ;

    getBufferManager().setOutputObject(this);
    this.corbaMessageMediator = mediator;
}
 
Example 2
Project: openjdk-jdk10   File: ServiceContexts.java   Source Code and License Vote up 6 votes
public ServiceContexts( ORB orb )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;

    addAlignmentOnWrite = false ;

    scMap = new HashMap();

    // Use the GIOP version of the ORB.  Should
    // be specified in ServiceContext.
    // See REVISIT below concerning giopVersion.
    giopVersion = orb.getORBData().getGIOPVersion();
    codeBase = null ;
}
 
Example 3
Project: openjdk-jdk10   File: CodecFactoryImpl.java   Source Code and License Vote up 6 votes
/**
 * Creates a new CodecFactory implementation.  Stores the ORB that
 * created this factory, for later use by the Codec.
 */
public CodecFactoryImpl( ORB orb ) {
    this.orb = orb;
    wrapper = ORBUtilSystemException.get(
        (com.sun.corba.se.spi.orb.ORB)orb,
        CORBALogDomains.RPC_PROTOCOL ) ;

    // Precreate a codec for version 1.0 through
    // 1.(MAX_MINOR_VERSION_SUPPORTED).  This can be
    // done since Codecs are immutable in their current implementation.
    // This is an optimization that eliminates the overhead of creating
    // a new Codec each time create_codec is called.
    for( int minor = 0; minor <= MAX_MINOR_VERSION_SUPPORTED; minor++ ) {
        codecs[minor] = new CDREncapsCodec( orb, 1, minor );
    }
}
 
Example 4
Project: openjdk-jdk10   File: ORBConfiguratorImpl.java   Source Code and License Vote up 6 votes
public void configure( DataCollector collector, ORB orb )
{
    ORB theOrb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;

    initObjectCopiers( theOrb ) ;
    initIORFinders( theOrb ) ;

    theOrb.setClientDelegateFactory(
        // REVISIT: this should be ProtocolDefault.
        TransportDefault.makeClientDelegateFactory( theOrb )) ;

    initializeTransport(theOrb) ;

    initializeNaming( theOrb ) ;
    initServiceContextRegistry( theOrb ) ;
    initRequestDispatcherRegistry( theOrb ) ;
    registerInitialReferences( theOrb ) ;

    persistentServerInitialization( theOrb ) ;

    runUserConfigurators( collector, theOrb ) ;
}
 
Example 5
Project: openjdk-jdk10   File: CorbaClientDelegateImpl.java   Source Code and License Vote up 5 votes
public CorbaClientDelegateImpl(ORB orb,
                               CorbaContactInfoList contactInfoList)
{
    this.orb = orb;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    this.contactInfoList = contactInfoList;
}
 
Example 6
Project: openjdk-jdk10   File: PrefixParserAction.java   Source Code and License Vote up 5 votes
public PrefixParserAction( String propertyName,
    Operation operation, String fieldName, Class componentType )
{
    super( propertyName, true, operation, fieldName ) ;
    this.componentType = componentType ;
    this.wrapper = ORBUtilSystemException.get(
        CORBALogDomains.ORB_LIFECYCLE ) ;
}
 
Example 7
Project: openjdk-jdk10   File: ServerRequestImpl.java   Source Code and License Vote up 5 votes
public ServerRequestImpl (CorbaMessageMediator req, ORB orb) {
    _opName = req.getOperationName();
    _ins    = (InputStream)req.getInputObject();
    _ctx    = null;         // if we support contexts, this would
                            // presumably also  be available on
                            // the server invocation
    _orb = orb;
    _wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.OA_INVOCATION ) ;
}
 
Example 8
Project: OpenJSharp   File: CorbaConnectionCacheBase.java   Source Code and License Vote up 5 votes
protected CorbaConnectionCacheBase(ORB orb, String cacheType,
                                   String monitoringName)
{
    this.orb = orb;
    this.cacheType = cacheType;
    this.monitoringName = monitoringName;
    wrapper =ORBUtilSystemException.get(orb,CORBALogDomains.RPC_TRANSPORT);
    registerWithMonitoring();
    dprintCreation();
}
 
Example 9
Project: OpenJSharp   File: PrefixParserAction.java   Source Code and License Vote up 5 votes
public PrefixParserAction( String propertyName,
    Operation operation, String fieldName, Class componentType )
{
    super( propertyName, true, operation, fieldName ) ;
    this.componentType = componentType ;
    this.wrapper = ORBUtilSystemException.get(
        CORBALogDomains.ORB_LIFECYCLE ) ;
}
 
Example 10
Project: OpenJSharp   File: TypeCodeImpl.java   Source Code and License Vote up 5 votes
public TypeCodeImpl(ORB orb)
{
    // initialized to tk_null
    _orb = orb;
    wrapper = ORBUtilSystemException.get(
        (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ;
}
 
Example 11
Project: openjdk-jdk10   File: ReplyMessage_1_0.java   Source Code and License Vote up 5 votes
ReplyMessage_1_0(ORB orb, ServiceContexts _service_contexts,
        int _request_id, int _reply_status, IOR _ior) {
    super(Message.GIOPBigMagic, false, Message.GIOPReply, 0);
    this.orb = orb;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    service_contexts = _service_contexts;
    request_id = _request_id;
    reply_status = _reply_status;
    ior = _ior;
}
 
Example 12
Project: openjdk-jdk10   File: OperationFactory.java   Source Code and License Vote up 5 votes
public Object operate( Object value )
{
    String className = getString( value ) ;

    try {
        Class<?> result =
            SharedSecrets.getJavaCorbaAccess().loadClass( className ) ;
        return result ;
    } catch (Exception exc) {
        ORBUtilSystemException wrapper = ORBUtilSystemException.get(
            CORBALogDomains.ORB_LIFECYCLE ) ;
        throw wrapper.couldNotLoadClass( exc, className ) ;
    }
}
 
Example 13
Project: openjdk-jdk10   File: TOAFactory.java   Source Code and License Vote up 5 votes
public void init( ORB orb )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.OA_LIFECYCLE ) ;
    tom = new TransientObjectManager( orb ) ;
    codebaseToTOA = new HashMap() ;
}
 
Example 14
Project: openjdk-jdk10   File: LocateReplyMessage_1_2.java   Source Code and License Vote up 5 votes
LocateReplyMessage_1_2(ORB orb, int _request_id,
        int _reply_status, IOR _ior) {
    super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN,
        Message.GIOPLocateReply, 0);
    this.orb = orb;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    request_id = _request_id;
    reply_status = _reply_status;
    ior = _ior;
}
 
Example 15
Project: openjdk-jdk10   File: SocketOrChannelConnectionImpl.java   Source Code and License Vote up 5 votes
protected SocketOrChannelConnectionImpl(ORB orb)
{
    this.orb = orb;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_TRANSPORT ) ;

    setWork(this);
    responseWaitingRoom = new CorbaResponseWaitingRoomImpl(orb, this);
    setReadTimeouts(orb.getORBData().getTransportTCPReadTimeouts());
}
 
Example 16
Project: OpenJSharp   File: CorbaMessageMediatorImpl.java   Source Code and License Vote up 5 votes
public CorbaMessageMediatorImpl(ORB orb,
                                Connection connection)
{
    this.orb = orb;
    this.connection = (CorbaConnection)connection;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    this.interceptorWrapper = InterceptorsSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
}
 
Example 17
Project: openjdk-jdk10   File: StubFactoryFactoryDynamicBase.java   Source Code and License Vote up 4 votes
public StubFactoryFactoryDynamicBase()
{
    wrapper = ORBUtilSystemException.get(
        CORBALogDomains.RPC_PRESENTATION ) ;
}
 
Example 18
Project: openjdk-jdk10   File: BufferManagerWrite.java   Source Code and License Vote up 4 votes
BufferManagerWrite( ORB orb )
{
    this.orb = orb ;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_ENCODING ) ;
}
 
Example 19
Project: openjdk-jdk10   File: CodeSetComponentInfo.java   Source Code and License Vote up 4 votes
/**
 * Creates a CodeSetComponent from a String which contains a comma
 * delimited list of OSF Code Set Registry numbers.  An INITIALIZE
 * exception is thrown if any of the numbers are not known by our
 * registry.  Used by corba.ORB init.
 *
 * The first number in the list is taken as the native code set,
 * and the rest is the conversion code set list.
 *
 * The numbers can either be decimal or hex.
 */
public static CodeSetComponent createFromString(String str) {
    ORBUtilSystemException wrapper = ORBUtilSystemException.get(
        CORBALogDomains.RPC_ENCODING ) ;

    if (str == null || str.length() == 0)
        throw wrapper.badCodeSetString() ;

    StringTokenizer stok = new StringTokenizer(str, ", ", false);
    int nativeSet = 0;
    int conversionInts[] = null;

    try {

        // The first value is the native code set
        nativeSet = Integer.decode(stok.nextToken()).intValue();

        if (OSFCodeSetRegistry.lookupEntry(nativeSet) == null)
            throw wrapper.unknownNativeCodeset( new Integer(nativeSet) ) ;

        List conversionList = new ArrayList(10);

        // Now process the other values as part of the
        // conversion code set list.
        while (stok.hasMoreTokens()) {

            // decode allows us to specify hex, decimal, etc
            Integer value = Integer.decode(stok.nextToken());

            if (OSFCodeSetRegistry.lookupEntry(value.intValue()) == null)
                throw wrapper.unknownConversionCodeSet( value ) ;

            conversionList.add(value);
        }

        conversionInts = new int[conversionList.size()];

        for (int i = 0; i < conversionInts.length; i++)
            conversionInts[i] = ((Integer)conversionList.get(i)).intValue();

    } catch (NumberFormatException nfe) {
        throw wrapper.invalidCodeSetNumber( nfe ) ;
    } catch (NoSuchElementException nsee) {
        throw wrapper.invalidCodeSetString( nsee, str ) ;
    }

    // Otherwise return the CodeSetComponent representing
    // the given values
    return new CodeSetComponent(nativeSet, conversionInts);
}
 
Example 20
Project: openjdk-jdk10   File: DynAnyImpl.java   Source Code and License Vote up 4 votes
protected DynAnyImpl(ORB orb, TypeCode typeCode) {
    this.orb = orb;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PRESENTATION ) ;
    this.any = DynAnyUtil.createDefaultAnyOfType(typeCode, orb);
}