public static void rethrowIfCorbaSystemException(Throwable e) { RuntimeException re; if (e instanceof java.rmi.MarshalException) re = new org.omg.CORBA.MARSHAL(e.toString()); else if (e instanceof java.rmi.NoSuchObjectException) re = new org.omg.CORBA.OBJECT_NOT_EXIST(e.toString()); else if (e instanceof java.rmi.AccessException) re = new org.omg.CORBA.NO_PERMISSION(e.toString()); else if (e instanceof javax.transaction.TransactionRequiredException) re = new org.omg.CORBA.TRANSACTION_REQUIRED(e.toString()); else if (e instanceof javax.transaction.TransactionRolledbackException) re = new org.omg.CORBA.TRANSACTION_ROLLEDBACK(e.toString()); else if (e instanceof javax.transaction.InvalidTransactionException) re = new org.omg.CORBA.INVALID_TRANSACTION(e.toString()); else if (e instanceof org.omg.CORBA.SystemException) re = (org.omg.CORBA.SystemException) e; else return; re.setStackTrace(e.getStackTrace()); throw re; } }
public OBJECT_NOT_EXIST locateUnknownObject(CompletionStatus cs, Throwable t) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST(LOCATE_UNKNOWN_OBJECT, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "ORBUTIL.locateUnknownObject", parameters, ORBUtilSystemException.class, exc); } return exc; }
public OBJECT_NOT_EXIST noObjectAdaptor( CompletionStatus cs, Throwable t ) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( NO_OBJECT_ADAPTOR, cs ) ; if (t != null) exc.initCause( t ) ; if (logger.isLoggable( Level.FINE )) { Object[] parameters = null ; doLog( Level.FINE, "OMG.noObjectAdaptor", parameters, OMGSystemException.class, exc ) ; } return exc ; }
public synchronized org.omg.DynamicAny.DynAny copy() { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); return this; }
public OBJECT_NOT_EXIST badAdapterId( CompletionStatus cs, Throwable t ) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( BAD_ADAPTER_ID, cs ) ; if (t != null) exc.initCause( t ) ; if (logger.isLoggable( Level.WARNING )) { Object[] parameters = null ; doLog( Level.WARNING, "ORBUTIL.badAdapterId", parameters, ORBUtilSystemException.class, exc ) ; } return exc ; }
final public org.omg.CORBA.TypeCode type() { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); return type_; }
public OBJECT_NOT_EXIST badServerId(CompletionStatus cs, Throwable t) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST(BAD_SERVER_ID, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "ORBUTIL.badServerId", parameters, ORBUtilSystemException.class, exc); } return exc; }
Any _OB_currentAny() { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); return null; }
public OBJECT_NOT_EXIST badSkeleton(CompletionStatus cs, Throwable t) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST(BAD_SKELETON, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "POA.badSkeleton", parameters, POASystemException.class, exc); } return exc; }
public org.omg.CORBA.ORB _get_orb() { if (orb == null) throw new org.omg.CORBA.OBJECT_NOT_EXIST(0, CompletionStatus.COMPLETED_NO); return orb ; } }
public OBJECT_NOT_EXIST adapterActivatorFailed(CompletionStatus cs, Throwable t) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST(ADAPTER_ACTIVATOR_FAILED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "POA.adapterActivatorFailed", parameters, POASystemException.class, exc); } return exc; }
synchronized Any _OB_currentAny() { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); return any_; }
public OBJECT_NOT_EXIST adapterDestroyed(CompletionStatus cs, Throwable t) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST(ADAPTER_DESTROYED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "POA.adapterDestroyed", parameters, POASystemException.class, exc); } return exc; }
protected void checkDestroyed () { if (anyRepresentation == null && typeCode == null) { throw new OBJECT_NOT_EXIST (); } }
public OBJECT_NOT_EXIST servantNotFound(CompletionStatus cs, Throwable t) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST(SERVANT_NOT_FOUND, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "ORBUTIL.servantNotFound", parameters, ORBUtilSystemException.class, exc); } return exc; }
private void checkIsValid() { if (! valid) { throw new org.omg.CORBA.OBJECT_NOT_EXIST("This ORBInitIfo is not valid anymore!"); } }
public OBJECT_NOT_EXIST badServerId( CompletionStatus cs, Throwable t ) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( BAD_SERVER_ID, cs ) ; if (t != null) exc.initCause( t ) ; if (logger.isLoggable( Level.FINE )) { Object[] parameters = null ; doLog( Level.FINE, "ORBUTIL.badServerId", parameters, ORBUtilSystemException.class, exc ) ; } return exc ; }
public synchronized boolean equal(org.omg.DynamicAny.DynAny dyn_any) { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); return (this == dyn_any); }
public OBJECT_NOT_EXIST servantNotFound( CompletionStatus cs, Throwable t ) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( SERVANT_NOT_FOUND, cs ) ; if (t != null) exc.initCause( t ) ; if (logger.isLoggable( Level.WARNING )) { Object[] parameters = null ; doLog( Level.WARNING, "ORBUTIL.servantNotFound", parameters, ORBUtilSystemException.class, exc ) ; } return exc ; }
private void checkDestroyStatus() throws OBJECT_NOT_EXIST { if (!disposed_.compareAndSet(false, true)) { throw new OBJECT_NOT_EXIST(); } }