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 synchronized org.omg.DynamicAny.DynAny copy() { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); return this; }
final public org.omg.CORBA.TypeCode type() { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); return type_; }
Any _OB_currentAny() { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); return null; }
private void checkDestroyStatus() throws OBJECT_NOT_EXIST { if (!disposed_.compareAndSet(false, true)) { throw new OBJECT_NOT_EXIST(); } }
public String[] arguments() { if (destroy_) throw new org.omg.CORBA.OBJECT_NOT_EXIST( "Object has been destroyed"); String[] seq = new String[args_.length]; System.arraycopy(args_, 0, seq, 0, args_.length); return seq; }
public int allocate_slot_id() { if (destroy_) throw new org.omg.CORBA.OBJECT_NOT_EXIST( "Object has been destroyed"); return manager_.allocateSlotId(); }
public synchronized org.omg.CORBA.ExceptionList create_exception_list() { if (destroy_) throw new org.omg.CORBA.OBJECT_NOT_EXIST("ORB is destroyed"); return new org.apache.yoko.orb.CORBA.ExceptionList(); }
public synchronized org.omg.DynamicAny.DynAny copy() { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); DynFixed_impl result = new DynFixed_impl(factory_, orbInstance_, type_); result.value_ = value_; return result; }
public synchronized org.omg.DynamicAny.DynAny current_component() throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); if (components_.length == 0) // empty exception throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch(); if (index_ == -1) return null; return components_[index_]; }
synchronized Any _OB_currentAny() { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); if (index_ >= 0 && index_ <= components_.length) { DynAny_impl impl = (DynAny_impl) components_[index_]; return impl._OB_currentAnyValue(); } return null; }
protected void checkDestructionApparent() { if (isDestructionApparent()) { throw new org.omg.CORBA.OBJECT_NOT_EXIST ("POA destroyed", OMGVMCID.value | 4, CompletionStatus.COMPLETED_NO); } }
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 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 ; }
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 String[] list_initial_services() { if (destroy_) throw new org.omg.CORBA.OBJECT_NOT_EXIST("ORB is destroyed"); return orbInstance_.getInitialServiceManager().listInitialServices(); }
public static org.omg.CORBA.OBJECT_NOT_EXIST read (final org.omg.CORBA.portable.InputStream in) { String id = in.read_string(); if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id); int x0; x0=in.read_ulong(); org.omg.CORBA.CompletionStatus x1; x1=org.omg.CORBA.CompletionStatusHelper.read(in); final org.omg.CORBA.OBJECT_NOT_EXIST result = new org.omg.CORBA.OBJECT_NOT_EXIST(id, x0, x1); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CORBA.OBJECT_NOT_EXIST s)
public static OBJECT_NOT_EXIST read(org.omg.CORBA.portable.InputStream in) { if (!id().equals(in.read_string())) throw new MARSHAL(); OBJECT_NOT_EXIST val = new OBJECT_NOT_EXIST(); val.minor = in.read_ulong(); val.completed = CompletionStatus.from_int(in.read_ulong()); return val; }
public synchronized void assign(org.omg.DynamicAny.DynAny dyn_any) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch { if (destroyed_) throw new org.omg.CORBA.OBJECT_NOT_EXIST(); if (this == dyn_any) return; if (!dyn_any.type().equivalent(type_)) throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch(); any_ = (Any) dyn_any.to_any(); notifyParent(); }