Java Code Examples for org.omg.CORBA.INTERNAL

The following are top voted examples for showing how to use org.omg.CORBA.INTERNAL. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: OpenJSharp   File: BufferManagerFactory.java   View source code 6 votes vote down vote up
public static BufferManagerRead newBufferManagerRead(
        int strategy, byte encodingVersion, ORB orb) {

    if (encodingVersion != Message.CDR_ENC_VERSION) {
        if (strategy != BufferManagerFactory.GROW) {
            ORBUtilSystemException wrapper =
                ORBUtilSystemException.get((ORB)orb,
                                           CORBALogDomains.RPC_ENCODING);
            throw wrapper.invalidBuffMgrStrategy("newBufferManagerRead");
        }
        return new BufferManagerReadGrow(orb);
    }
    switch (strategy) {
        case BufferManagerFactory.GROW:
            return new BufferManagerReadGrow(orb);
        case BufferManagerFactory.COLLECT:
            throw new INTERNAL("Collect strategy invalid for reading");
        case BufferManagerFactory.STREAM:
            return new BufferManagerReadStream(orb);
        default:
            throw new INTERNAL("Unknown buffer manager read strategy: "
                               + strategy);
    }
}
 
Example 2
Project: OpenJSharp   File: LegacyServerSocketManagerImpl.java   View source code 5 votes vote down vote up
public synchronized LegacyServerSocketEndPointInfo legacyGetEndpoint(
    String name)
{
    Iterator iterator = getAcceptorIterator();
    while (iterator.hasNext()) {
        LegacyServerSocketEndPointInfo endPoint = cast(iterator.next());
        if (endPoint != null && name.equals(endPoint.getName())) {
            return endPoint;
        }
    }
    throw new INTERNAL("No acceptor for: " + name);
}
 
Example 3
Project: OpenJSharp   File: NamingSystemException.java   View source code 5 votes vote down vote up
public INTERNAL namingCtxRebindctxAlreadyBound( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( NAMING_CTX_REBINDCTX_ALREADY_BOUND, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "NAMING.namingCtxRebindctxAlreadyBound",
            parameters, NamingSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 4
Project: OpenJSharp   File: NamingSystemException.java   View source code 5 votes vote down vote up
public INTERNAL transNcDestroyGotExc( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( TRANS_NC_DESTROY_GOT_EXC, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "NAMING.transNcDestroyGotExc",
            parameters, NamingSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 5
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL wcharArrayUnsupportedEncoding( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( WCHAR_ARRAY_UNSUPPORTED_ENCODING, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.wcharArrayUnsupportedEncoding",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 6
Project: OpenJSharp   File: IORSystemException.java   View source code 5 votes vote down vote up
public INTERNAL ortNotInitialized( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( ORT_NOT_INITIALIZED, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "IOR.ortNotInitialized",
            parameters, IORSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 7
Project: OpenJSharp   File: InterceptorsSystemException.java   View source code 5 votes vote down vote up
public INTERNAL servantInvalid( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( SERVANT_INVALID, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "INTERCEPTORS.servantInvalid",
            parameters, InterceptorsSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 8
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL duplicateOrbVersionServiceContext( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( DUPLICATE_ORB_VERSION_SERVICE_CONTEXT, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.duplicateOrbVersionServiceContext",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 9
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL giopMagicError( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( GIOP_MAGIC_ERROR, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.giopMagicError",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 10
Project: OpenJSharp   File: POASystemException.java   View source code 5 votes vote down vote up
public INTERNAL pmfCreateRetain( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( PMF_CREATE_RETAIN, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "POA.pmfCreateRetain",
            parameters, POASystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 11
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL badHelperWriteMethod( CompletionStatus cs, Throwable t, Object arg0) {
    INTERNAL exc = new INTERNAL( BAD_HELPER_WRITE_METHOD, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[1] ;
        parameters[0] = arg0 ;
        doLog( Level.WARNING, "ORBUTIL.badHelperWriteMethod",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 12
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL cancelNotSupported( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( CANCEL_NOT_SUPPORTED, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.cancelNotSupported",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 13
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL invalidJdk131PatchLevel( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( INVALID_JDK1_3_1_PATCH_LEVEL, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.invalidJdk131PatchLevel",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 14
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL workQueueThreadInterrupted( CompletionStatus cs, Throwable t, Object arg0, Object arg1) {
    INTERNAL exc = new INTERNAL( WORK_QUEUE_THREAD_INTERRUPTED, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.FINE )) {
        Object[] parameters = new Object[2] ;
        parameters[0] = arg0 ;
        parameters[1] = arg1 ;
        doLog( Level.FINE, "ORBUTIL.workQueueThreadInterrupted",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 15
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL serverScTempSize( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( SERVER_SC_TEMP_SIZE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.serverScTempSize",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 16
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL noInvocationHandler( CompletionStatus cs, Throwable t, Object arg0) {
    INTERNAL exc = new INTERNAL( NO_INVOCATION_HANDLER, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[1] ;
        parameters[0] = arg0 ;
        doLog( Level.WARNING, "ORBUTIL.noInvocationHandler",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 17
Project: openjdk-jdk10   File: StateEngineImpl.java   View source code 5 votes vote down vote up
public StateEngineImpl()
{
    initializing = true ;
    defaultAction = new ActionBase("Invalid Transition")
        {
            public void doIt( FSM fsm, Input in )
            {
                throw new INTERNAL(
                    "Invalid transition attempted from " +
                        fsm.getState() + " under " + in ) ;
            }
        } ;
}
 
Example 18
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL invalidCodeSetNumber( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( INVALID_CODE_SET_NUMBER, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.invalidCodeSetNumber",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 19
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL serverScNoIiopProfile( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( SERVER_SC_NO_IIOP_PROFILE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.serverScNoIiopProfile",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 20
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL illegalTargetAddressDisposition( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( ILLEGAL_TARGET_ADDRESS_DISPOSITION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.illegalTargetAddressDisposition",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 21
Project: OpenJSharp   File: InterceptorsSystemException.java   View source code 5 votes vote down vote up
public INTERNAL sortSizeMismatch( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( SORT_SIZE_MISMATCH, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "INTERCEPTORS.sortSizeMismatch",
            parameters, InterceptorsSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 22
Project: OpenJSharp   File: POASystemException.java   View source code 5 votes vote down vote up
public INTERNAL duplicateOrbVersionSc( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( DUPLICATE_ORB_VERSION_SC, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "POA.duplicateOrbVersionSc",
            parameters, POASystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 23
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL threadPoolCloseError( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( THREAD_POOL_CLOSE_ERROR, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.threadPoolCloseError",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 24
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL stringifyWriteError( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( STRINGIFY_WRITE_ERROR, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.stringifyWriteError",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 25
Project: openjdk-jdk10   File: LegacyServerSocketManagerImpl.java   View source code 5 votes vote down vote up
public synchronized LegacyServerSocketEndPointInfo legacyGetEndpoint(
    String name)
{
    Iterator iterator = getAcceptorIterator();
    while (iterator.hasNext()) {
        LegacyServerSocketEndPointInfo endPoint = cast(iterator.next());
        if (endPoint != null && name.equals(endPoint.getName())) {
            return endPoint;
        }
    }
    throw new INTERNAL("No acceptor for: " + name);
}
 
Example 26
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL emptyStackRunServantPostInvoke( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( EMPTY_STACK_RUN_SERVANT_POST_INVOKE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.emptyStackRunServantPostInvoke",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 27
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public INTERNAL statementNotReachable3( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( STATEMENT_NOT_REACHABLE3, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.statementNotReachable3",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 28
Project: OpenJSharp   File: InterceptorsSystemException.java   View source code 5 votes vote down vote up
public INTERNAL exceptionInExceptions( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( EXCEPTION_IN_EXCEPTIONS, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "INTERCEPTORS.exceptionInExceptions",
            parameters, InterceptorsSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 29
Project: OpenJSharp   File: POASystemException.java   View source code 5 votes vote down vote up
public INTERNAL cantCloneTemplate( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( CANT_CLONE_TEMPLATE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "POA.cantCloneTemplate",
            parameters, POASystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 30
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 4 votes vote down vote up
public INTERNAL badCompletionStatusInReply( CompletionStatus cs, Object arg0) {
    return badCompletionStatusInReply( cs, null, arg0 ) ;
}
 
Example 31
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 4 votes vote down vote up
public INTERNAL threadPoolCloseError( CompletionStatus cs ) {
    return threadPoolCloseError( cs, null  ) ;
}
 
Example 32
Project: OpenJSharp   File: UtilSystemException.java   View source code 4 votes vote down vote up
public INTERNAL errorSetCharField( CompletionStatus cs, Object arg0, Object arg1, Object arg2) {
    return errorSetCharField( cs, null, arg0, arg1, arg2 ) ;
}
 
Example 33
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 4 votes vote down vote up
public INTERNAL orbTargetAddrPreferenceInExtractObjectkeyInvalid( CompletionStatus cs ) {
    return orbTargetAddrPreferenceInExtractObjectkeyInvalid( cs, null  ) ;
}
 
Example 34
Project: OpenJSharp   File: ActivationSystemException.java   View source code 4 votes vote down vote up
public INTERNAL cannotWriteRepositoryDb(  ) {
    return cannotWriteRepositoryDb( CompletionStatus.COMPLETED_NO, null  ) ;
}
 
Example 35
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 4 votes vote down vote up
public INTERNAL unexpectedNonDirectByteBufferWithChannelSocket(  ) {
    return unexpectedNonDirectByteBufferWithChannelSocket( CompletionStatus.COMPLETED_NO, null  ) ;
}
 
Example 36
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 4 votes vote down vote up
public INTERNAL errorResolvingAlias(  ) {
    return errorResolvingAlias( CompletionStatus.COMPLETED_NO, null  ) ;
}
 
Example 37
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 4 votes vote down vote up
public INTERNAL workQueueThreadInterrupted( Throwable t, Object arg0, Object arg1) {
    return workQueueThreadInterrupted( CompletionStatus.COMPLETED_NO, t, arg0, arg1 ) ;
}
 
Example 38
Project: OpenJSharp   File: InterceptorsSystemException.java   View source code 4 votes vote down vote up
public INTERNAL sortSizeMismatch(  ) {
    return sortSizeMismatch( CompletionStatus.COMPLETED_NO, null  ) ;
}
 
Example 39
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 4 votes vote down vote up
public INTERNAL wcharArrayUnsupportedEncoding( Throwable t ) {
    return wcharArrayUnsupportedEncoding( CompletionStatus.COMPLETED_NO, t  ) ;
}
 
Example 40
Project: OpenJSharp   File: POASystemException.java   View source code 4 votes vote down vote up
public INTERNAL servantMustBeLocal(  ) {
    return servantMustBeLocal( CompletionStatus.COMPLETED_NO, null  ) ;
}