Refine search
public void resume(javax.transaction.Transaction tobj) throws InvalidTransactionException, IllegalStateException, SystemException { TransactionManager transactionManager = this.beanFactory.getTransactionManager(); CompensableManager compensableManager = this.beanFactory.getCompensableManager(); if (org.bytesoft.transaction.Transaction.class.isInstance(tobj) == false) { throw new InvalidTransactionException(); } org.bytesoft.transaction.Transaction transaction = (org.bytesoft.transaction.Transaction) tobj; org.bytesoft.transaction.Transaction compensable = // (org.bytesoft.transaction.Transaction) transaction.getTransactionalExtra(); if (compensable == null) { transactionManager.resume(tobj); } else { org.bytesoft.compensable.TransactionContext compensableContext = // (org.bytesoft.compensable.TransactionContext) compensable.getTransactionContext(); (compensableContext.isCompensable() ? compensableManager : transactionManager).resume(tobj); } }
logger.debug("Standard JTA resume threw InvalidTransactionException: " + ex.getMessage() + " - trying WebLogic JTA forceResume");
tm.resume(suspended); } catch (InvalidTransactionException e) { e.addSuppressed(t); throw Log.log.unexpectedFailure(e);
@Override public final InvalidTransactionException invalidTransactionConnection() { final InvalidTransactionException result = new InvalidTransactionException(String.format(getLoggingLocale(), invalidTransactionConnection$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String noTransactionXa = "WFTXN0070: No such transaction";
AtomicAction act = ((theTransaction == null) ? null : theTransaction.getAtomicAction()); if (!AtomicAction.resume(act)) throw new InvalidTransactionException(); javax.transaction.SystemException systemException = new javax.transaction.SystemException(); systemException.initCause(e2); throw systemException; throw new InvalidTransactionException("Illegal type is: " + which);
throws InvalidTransactionException, IllegalStateException, SystemException { if (!isActive) { throw new SystemException( "TransactionManager invalid"); if (VERBOSE) writer.fine(exception); throw new InvalidTransactionException(exception); if (VERBOSE) writer.fine(exception); throw new InvalidTransactionException(exception); if (VERBOSE) writer.fine(exception); throw new SystemException(exception);
InvalidTransactionException invalidTransactionException = new InvalidTransactionException(); invalidTransactionException.initCause(e1); throw invalidTransactionException; javax.transaction.SystemException systemException = new javax.transaction.SystemException(e2.toString()); systemException.initCause(e2); throw systemException; throw new InvalidTransactionException();
if (!isActive) { throw new SystemException(LocalizedStrings.TransactionManagerImpl_TRANSACTIONMANAGER_INVALID.toLocalizedString()); } if (txn == null) { String exception = LocalizedStrings.TransactionManagerImpl_TRANSACTIONMANAGERIMPL_RESUME_CANNOT_RESUME_A_NULL_TRANSACTION.toLocalizedString(); LogWriterI18n writer = TransactionUtils.getLogWriterI18n(); if (VERBOSE) writer.fine(exception); throw new InvalidTransactionException(exception); LogWriterI18n writer = TransactionUtils.getLogWriterI18n(); if (VERBOSE) writer.fine(exception); throw new InvalidTransactionException(exception); LogWriterI18n writer = TransactionUtils.getLogWriterI18n(); if (VERBOSE) writer.fine(exception); final SystemException ex = new SystemException(exception); ex.initCause(e); throw ex;
public Void call() throws InvalidTransactionException, javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, java.lang.SecurityException, javax.transaction.SystemException, java.lang.IllegalStateException { if (AtomicAction.suspend() != null) { System.err .println("WARNING - A PREVIOUS TRANSACTION WAS ON THE THREAD UNSUSPENDED"); } if (!AtomicAction.resume(theTransaction.getAtomicAction())) throw new InvalidTransactionException(); theTransaction.commitAndDisassociate(); return null; } });
} catch (SystemException e) { if (TraceTm.jta.isDebugEnabled()) { String error = "Cannot get transaction:" + e + "--" + e.getMessage(); TraceTm.jta.debug(error); } catch (SystemException e) { if (TraceTm.jta.isDebugEnabled()) { String error = "Cannot suspend transaction:" + e + "--" + e.getMessage(); TraceTm.jta.debug(error); } catch (SystemException e) { if (TraceTm.jta.isDebugEnabled()) { String error = "Cannot resume transaction:" + e + "--" + e.getMessage(); TraceTm.jta.debug(error); String error = "Cannot resume transaction:" + e + "--" + e.getMessage(); TraceTm.jta.debug(error); String error = "Cannot resume transaction:" + e + "--" + e.getMessage(); TraceTm.jta.debug(error);
AtomicAction act = ((theTransaction == null) ? null : theTransaction.getAtomicAction()); if (!AtomicAction.resume(act)) throw new InvalidTransactionException(); javax.transaction.SystemException systemException = new javax.transaction.SystemException(); systemException.initCause(e2); throw systemException; throw new InvalidTransactionException("Illegal type is: " + which);
/** * Resume the transaction context association of the calling thread * with the transaction represented by the supplied Transaction object. * When this method returns, the calling thread is associated with the * transaction context specified. */ public void resume(Transaction suspended) throws InvalidTransactionException, IllegalStateException, SystemException { // thread is already associated with a transaction? if (getTransaction() != null) throw new IllegalStateException(); // check for invalid Transaction object if (suspended == null) throw new InvalidTransactionException(); if ((suspended instanceof TransactionImpl) == false) { throw new InvalidTransactionException(); } Control control = ((TransactionImpl) suspended).getControl(); try { current.resume(control); } catch (InvalidControl ex) { //_logger.log(Level.FINE,"Invalid Control Exception in resume",ex); throw new InvalidTransactionException(); } catch (Exception ex) { throw new SystemException(ex.toString()); } }
InvalidTransactionException invalidTransactionException = new InvalidTransactionException(); invalidTransactionException.initCause(e1); throw invalidTransactionException; javax.transaction.SystemException systemException = new javax.transaction.SystemException(e2.toString()); systemException.initCause(e2); throw systemException; throw new InvalidTransactionException();
public Void call() throws InvalidTransactionException, javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, java.lang.SecurityException, javax.transaction.SystemException, java.lang.IllegalStateException { if (AtomicAction.suspend() != null) { System.err .println("WARNING - A PREVIOUS TRANSACTION WAS ON THE THREAD UNSUSPENDED"); } if (!AtomicAction.resume(theTransaction.getAtomicAction())) throw new InvalidTransactionException(); theTransaction.commitAndDisassociate(); return null; } });
@Override public final InvalidTransactionException notSupportedTransaction(final Transaction transaction) { final InvalidTransactionException result = new InvalidTransactionException(String.format(getLoggingLocale(), notSupportedTransaction$str(), transaction)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String invalidTransactionLocationUri = "WFTXN0003: Invalid transaction location URI (must be absolute): %s";
+ e + "--" + e.getMessage(); TraceTm.jta.debug(error); + e + "--" + e.getMessage(); TraceTm.jta.debug(error); + e + "--" + e.getMessage(); TraceTm.jta.debug(error); + e + "--" + e.getMessage(); TraceTm.jta.debug(error); + e + "--" + e.getMessage(); TraceTm.jta.debug(error);
AtomicAction act = ((theTransaction == null) ? null : theTransaction.getAtomicAction()); if (!AtomicAction.resume(act)) throw new InvalidTransactionException(); javax.transaction.SystemException systemException = new javax.transaction.SystemException(); systemException.initCause(e2); throw systemException; throw new InvalidTransactionException("Illegal type is: " + which);
public void resume(javax.transaction.Transaction tobj) throws InvalidTransactionException, IllegalStateException, SystemException { if (Transaction.class.isInstance(tobj)) { TransactionManager transactionManager = this.beanFactory.getTransactionManager(); Transaction transaction = (Transaction) tobj; CompensableTransaction compensable = (CompensableTransaction) transaction.getTransactionalExtra(); compensable.setTransactionalExtra(transaction); compensable.resume(); TransactionContext compensableContext = compensable.getTransactionContext(); compensableContext.setPropagationLevel(compensableContext.getPropagationLevel() - 1); transactionManager.resume(transaction); } else { throw new InvalidTransactionException(); } }
throw new InvalidTransactionException("resume(" + tobj.getClass().getName() + ") is not valid"); (tx.getStatus() != Status.STATUS_PREPARING)) { TraceTm.jotm.error("resume: Invalid Transaction Status:" + StatusHelper.getStatusName(tx.getStatus())); InvalidTransactionException e = new InvalidTransactionException("Invalid resume " + tobj.getClass().getName()); throw e; throw new SystemException("RollbackException in occured in resume() " + e.getMessage());
public Void call() throws InvalidTransactionException, javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, java.lang.SecurityException, javax.transaction.SystemException, java.lang.IllegalStateException { if (AtomicAction.suspend() != null) { System.err .println("WARNING - A PREVIOUS TRANSACTION WAS ON THE THREAD UNSUSPENDED"); } if (!AtomicAction.resume(theTransaction.getAtomicAction())) throw new InvalidTransactionException(); theTransaction.commitAndDisassociate(); return null; } });