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 TRANSACTION_ROLLEDBACK xaNota(CompletionStatus cs, Throwable t) { TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK(XA_NOTA, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.xaNota", parameters, OMGSystemException.class, exc); } return exc; }
return new org.omg.CORBA.BAD_PARAM(reason, minor, status); } else if (id.equals("IDL:omg.org/CORBA/NO_MEMORY:1.0")) { String reason = MinorCodes.describeNoMemory(minor); return new org.omg.CORBA.NO_PERMISSION(minor, status); } else if (id.equals("IDL:omg.org/CORBA/INTERNAL:1.0")) { return new org.omg.CORBA.INTERNAL(minor, status); } else if (id.equals("IDL:omg.org/CORBA/MARSHAL:1.0")) { String reason = MinorCodes.describeMarshal(minor); return new org.omg.CORBA.TRANSACTION_REQUIRED(minor, status); } else if (id.equals("IDL:omg.org/CORBA/TRANSACTION_ROLLEDBACK:1.0")) { return new org.omg.CORBA.TRANSACTION_ROLLEDBACK(minor, status); } else if (id.equals("IDL:omg.org/CORBA/INVALID_TRANSACTION:1.0")) { return new org.omg.CORBA.INVALID_TRANSACTION(minor, status); } else if (id.equals("IDL:omg.org/CORBA/INV_POLICY:1.0")) { String reason = MinorCodes.describeInvPolicy(minor); return new org.omg.CORBA.UNKNOWN(reason, minor, status);
RollbackException rollbackException = new javax.transaction.RollbackException(e2.toString()); rollbackException.initCause(e2); throw rollbackException;
e4.printStackTrace(); RollbackException rollbackException = new RollbackException(e4.toString()); if(_rollbackOnlyCallerStacktrace != null) { rollbackException.initCause(_rollbackOnlyCallerStacktrace);
throw new BAD_PARAM(0, CompletionStatus.COMPLETED_NO); throw new TRANSACTION_ROLLEDBACK( ExceptionCodes.MARKED_ROLLEDBACK, CompletionStatus.COMPLETED_NO); throw new UNKNOWN(ExceptionCodes.INACTIVE_TRANSACTION,
} catch ( Exception e ){ e.printStackTrace( System.out ); throw new org.omg.CORBA.INTERNAL(); case LockSetFactoryImpl.COMMIT : case LockSetFactoryImpl.NO_TRANS : throw new org.omg.CORBA.INVALID_TRANSACTION(); case LockSetFactoryImpl.ROLLBACK : throw new org.omg.CORBA.TRANSACTION_ROLLEDBACK();
INTERNAL exc = new INTERNAL(MinorCode.NoGlobalTID, CompletionStatus.COMPLETED_NO); throw exc; INTERNAL exc = new INTERNAL(MinorCode.SubForTop, CompletionStatus.COMPLETED_NO); throw exc; if( aborted ) { destroy(); TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK(0,CompletionStatus.COMPLETED_YES); throw exc; TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK(0,CompletionStatus.COMPLETED_YES); throw exc;
public void register_synchronization(Synchronization sync) throws Inactive, SynchronizationUnavailable{ synchronized(stat_semaphore){ if (status == Status._StatusMarkedRollback){ throw new org.omg.CORBA.TRANSACTION_ROLLEDBACK(); } if (status != Status._StatusActive){ throw new Inactive(); } syncs.addElement(sync); } }
new TRANSACTION_ROLLEDBACK( 0, CompletionStatus.COMPLETED_NO); ex2.initCause(exc); throw ex2; INTERNAL ex2 = new INTERNAL(MinorCode.NotRegistered, CompletionStatus.COMPLETED_NO); ex2.initCause(exc); throw ex2;
throw new TRANSACTION_ROLLEDBACK(); default: throw new UNKNOWN(); && (e1.errorCode <= XAException.XA_RBEND)) throw new TRANSACTION_ROLLEDBACK(); } catch (SystemException ignore) { throw new TRANSACTION_ROLLEDBACK(); case XAException.XA_RBROLLBACK: case XAException.XA_RBCOMMFAIL: case XAException.XA_RBTRANSIENT: case XAException.XAER_RMERR: throw new TRANSACTION_ROLLEDBACK(); case XAException.XAER_NOTA: case XAException.XA_RETRY: // not allowed to be thrown here by XA specification! throw new TRANSACTION_ROLLEDBACK(); _committed = true; // will cause log to be rewritten throw new TRANSACTION_ROLLEDBACK();
destroy(); if (!(ex instanceof XAException)) { INTERNAL internal = new INTERNAL(0,CompletionStatus.COMPLETED_MAYBE); internal.initCause(ex); _logger.log(Level.WARNING, "jts.unexpected_error_occurred_twopc_commit", ex); throw internal; throw new TRANSACTION_ROLLEDBACK(0, CompletionStatus.COMPLETED_NO); INTERNAL internal = new INTERNAL(0,CompletionStatus.COMPLETED_MAYBE); internal.initCause(ex); _logger.log(Level.WARNING, "jts.unexpected_error_occurred_twopc_commit", ex);
ControlImpl current = endAborted(outBoolean, false); if( outBoolean[0] ) { TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK(0,CompletionStatus.COMPLETED_NO); throw exc; INVALID_TRANSACTION ex2 = new INVALID_TRANSACTION(0,CompletionStatus.COMPLETED_NO); ex2.initCause(exc); throw ex2; endCurrent(true); current.destroy(); throw (TRANSACTION_ROLLEDBACK)exc.fillInStackTrace();
throw new BAD_PARAM(0, CompletionStatus.COMPLETED_NO); throw new TRANSACTION_ROLLEDBACK( ExceptionCodes.MARKED_ROLLEDBACK, CompletionStatus.COMPLETED_NO); throw new BAD_PARAM(0, CompletionStatus.COMPLETED_NO); throw new UNKNOWN(e3.toString(), ExceptionCodes.UNKNOWN_EXCEPTION, CompletionStatus.COMPLETED_NO); throw new INVALID_TRANSACTION(ExceptionCodes.ADD_FAILED, CompletionStatus.COMPLETED_NO);
RollbackException rollbackException = new javax.transaction.RollbackException(e2.toString()); rollbackException.initCause(e2); throw rollbackException;
throw new BAD_PARAM(0, CompletionStatus.COMPLETED_NO); Comparable c = (Comparable)otsSync; if(c.compareTo(_currentRecord) != 1) { throw new UNKNOWN(ExceptionCodes.ADD_FAILED, CompletionStatus.COMPLETED_NO); throw new UNKNOWN(ExceptionCodes.ADD_FAILED, throw new TRANSACTION_ROLLEDBACK( ExceptionCodes.MARKED_ROLLEDBACK, CompletionStatus.COMPLETED_NO);
} catch ( Exception e ){ e.printStackTrace( System.out ); throw new org.omg.CORBA.INTERNAL(); case LockSetFactoryImpl.COMMIT : case LockSetFactoryImpl.NO_TRANS : throw new org.omg.CORBA.INVALID_TRANSACTION(); case LockSetFactoryImpl.ROLLBACK : throw new org.omg.CORBA.TRANSACTION_ROLLEDBACK(); case LockSetFactoryImpl.REJECT : throw new LockNotHeld();
new java.lang.Object[] { "commitOnePhase", ">1 Resource"}); throw new org.omg.CORBA.INTERNAL(msg); new java.lang.Object[] { exc.toString(), "commit one phase"}); throw new org.omg.CORBA.INTERNAL(msg); new java.lang.Object[] { exc.toString(), "commit one phase"}); throw new org.omg.CORBA.INTERNAL(msg); throw new TRANSACTION_ROLLEDBACK(0, CompletionStatus.COMPLETED_YES);
public RecoveryCoordinator register_resource(Resource r) throws Inactive{ synchronized(stat_semaphore){ if (status == Status._StatusMarkedRollback){ throw new org.omg.CORBA.TRANSACTION_ROLLEDBACK(); } if (status != Status._StatusActive){ throw new Inactive(); } resources.addElement(r); votes.addElement(null); } return null; }
new TRANSACTION_ROLLEDBACK(0, CompletionStatus.COMPLETED_NO); throw exc; new TRANSACTION_ROLLEDBACK( 0, CompletionStatus.COMPLETED_NO); ex2.initCause(exc); throw ex2; INTERNAL ex2 = new INTERNAL(MinorCode.NotRegistered, CompletionStatus.COMPLETED_NO); ex2.initCause(exc); throw ex2; INTERNAL ex2 = new INTERNAL(MinorCode.RecCoordCreateFailed, CompletionStatus.COMPLETED_NO); ex2.initCause(exc);