Package org.omg.CORBA

Examples of org.omg.CORBA.UNKNOWN


    }
   
    public static final int UNKNOWN_SERVERAPP_EXCEPTION = SUNVMCID.value + 1003 ;
   
    public UNKNOWN unknownServerappException( CompletionStatus cs, Throwable t ) {
        UNKNOWN exc = new UNKNOWN( UNKNOWN_SERVERAPP_EXCEPTION, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "POA.unknownServerappException",
                parameters, POASystemException.class, exc ) ;
View Full Code Here


    }
   
    public static final int UNKNOWN_LOCALINVOCATION_ERROR = SUNVMCID.value + 1004 ;
   
    public UNKNOWN unknownLocalinvocationError( CompletionStatus cs, Throwable t ) {
        UNKNOWN exc = new UNKNOWN( UNKNOWN_LOCALINVOCATION_ERROR, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "POA.unknownLocalinvocationError",
                parameters, POASystemException.class, exc ) ;
View Full Code Here

  try {
      unknown = (Throwable) in.read_value() ;
  } catch (ThreadDeath d) {
      throw d ;
  } catch (Throwable e) {
      unknown = new UNKNOWN( 0, CompletionStatus.COMPLETED_MAYBE ) ;
  }
    }
View Full Code Here

        CorbaMessageMediator messageMediator, UnknownException ex)
    {
        // NOTE: This service context container gets augmented in
        // tail call.
        ServiceContexts contexts = null;
        SystemException sys = new UNKNOWN( 0,
            CompletionStatus.COMPLETED_MAYBE);
        contexts = new ServiceContexts( (ORB)messageMediator.getBroker() );
        UEInfoServiceContext uei = new UEInfoServiceContext(sys);
        contexts.put( uei ) ;
        return createSystemExceptionResponse(messageMediator, sys, contexts);
View Full Code Here

      /*
       * Cannot just rethrow exception, so throw UNKNOWN.
       */

      throw new UNKNOWN(e3.toString(), ExceptionCodes.UNKNOWN_EXCEPTION,
          CompletionStatus.COMPLETED_NO);
    }

    if (jtsLogger.logger.isDebugEnabled())
    {
View Full Code Here

        coord = parentHandle.get_coordinator();
        corbaRec = createOTSRecord(false, r, coord);
      }
      catch (Unavailable ex)
      {
        throw new UNKNOWN(ExceptionCodes.INACTIVE_TRANSACTION,
            CompletionStatus.COMPLETED_NO); // what else to raise?
      }

      coord = null;
View Full Code Here

        // during the pre-commmit phase. This is required for
        // JTA 1.1 Synchronization ordering behaviour
        if(_currentRecord != null) {
          Comparable c = (Comparable)otsSync;
          if(c.compareTo(_currentRecord) != 1) {
            throw new UNKNOWN(ExceptionCodes.ADD_FAILED, CompletionStatus.COMPLETED_NO);
          }
        }

                if (!_synchs.add(otsSync))
        {
          otsSync = null;
          throw new UNKNOWN(ExceptionCodes.ADD_FAILED,
              CompletionStatus.COMPLETED_NO); // what else to
                              // raise?
        }
      }
      else
View Full Code Here

      if (problem)
      {
          if (exp != null)
              throw exp;
          else
              throw new UNKNOWN(ExceptionCodes.SYNCHRONIZATION_EXCEPTION,
                      CompletionStatus.COMPLETED_NO);
      }
  }
View Full Code Here

        if (problem)
      {
          if (exp != null)
              throw exp;
          else
              throw new UNKNOWN(ExceptionCodes.SYNCHRONIZATION_EXCEPTION,
                      CompletionStatus.COMPLETED_NO);
      }
  }
View Full Code Here

                { "TransactionImple.enlistResource - XAResource.start", XAHelper.printXAErrorCode(e), xid });
              }

              markRollbackOnly();

              throw new UNKNOWN();
            }
          }
        }
      }
      else
View Full Code Here

TOP

Related Classes of org.omg.CORBA.UNKNOWN

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.