Examples of InvalidTransactionException


Examples of com.arjuna.mw.wstx.exceptions.InvalidTransactionException

      parseOutcome(result, true);
  }
  catch (ActiveChildException ex)
  {
      throw new InvalidTransactionException(wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wstx11.model.as.twophase.UserTwoPhaseTx_2"));
  }
  catch (TransactionCommittedException ex)
  {
  }
  catch (InvalidActivityException ex)
  {
      throw new InvalidTransactionException();
  }
  catch (WrongStateException ex)
  {
      throw ex;
  }
  catch (ProtocolViolationException ex)
  {
      throw new HeuristicHazardException(ex.toString());
  }
  catch (NoActivityException ex)
  {
      throw new NoTransactionException();
  }
  catch (NoPermissionException ex)
  {
      throw new InvalidTransactionException(ex.toString());
  }
  catch (HeuristicHazardException ex)
  {
      throw ex;
  }
View Full Code Here

Examples of com.arjuna.mw.wstx.exceptions.InvalidTransactionException

      parseOutcome(result, false);
  }
  catch (ActiveChildException ex)
  {
      throw new InvalidTransactionException(wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wstx11.model.as.twophase.UserTwoPhaseTx_2"));
  }
  catch (TransactionRolledBackException ex)
  {
  }
  catch (InvalidActivityException ex)
  {
      throw new InvalidTransactionException();
  }
  catch (WrongStateException ex)
  {
      throw ex;
  }
  catch (ProtocolViolationException ex)
  {
      throw new HeuristicHazardException(ex.toString());
  }
  catch (NoActivityException ex)
  {
      throw new NoTransactionException();
  }
  catch (NoPermissionException ex)
  {
      throw new InvalidTransactionException(ex.toString());
  }
  catch (HeuristicHazardException ex)
  {
      throw ex;
  }
View Full Code Here

Examples of com.arjuna.mw.wstx.exceptions.InvalidTransactionException

      if (tx instanceof TransactionHierarchyImple)
      {
    hier = ((TransactionHierarchyImple) tx).activityHierarchy();
      }
      else
    throw new InvalidTransactionException();
  }

  try
  {
      _theCoordinator.resume(hier);
  }
  catch (InvalidActivityException ex)
  {
      throw new InvalidTransactionException();
  }
    }
View Full Code Here

Examples of com.arjuna.mw.wstx.exceptions.InvalidTransactionException

  
      parseOutcome(result, true);
  }
  catch (ActiveChildException ex)
  {
      throw new InvalidTransactionException(wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wstx.model.as.twophase.UserTwoPhaseTx_2"));
  }
  catch (TransactionCommittedException ex)
  {
  }
  catch (InvalidActivityException ex)
  {
      throw new InvalidTransactionException();
  }
  catch (WrongStateException ex)
  {
      throw ex;
  }
  catch (ProtocolViolationException ex)
  {
      throw new HeuristicHazardException(ex.toString());
  }
  catch (NoActivityException ex)
  {
      throw new NoTransactionException();
  }
  catch (NoPermissionException ex)
  {
      throw new InvalidTransactionException(ex.toString());
  }
  catch (HeuristicHazardException ex)
  {
      throw ex;
  }
View Full Code Here

Examples of javax.transaction.InvalidTransactionException

        final TransactionContext tc = transactions.getOrCreateTransactionContext(threadId);

        try {
          if (tc.getTransactionType() != TransactionContext.Scope.NONE) {
              if (tc.getTransactionType() != TransactionContext.Scope.LOCAL) {
                  throw new InvalidTransactionException(QueryPlugin.Util.getString("TransactionServer.existing_transaction")); //$NON-NLS-1$
              }
              if (!transactionExpected) {
                throw new InvalidTransactionException(QueryPlugin.Util.getString("TransactionServer.existing_transaction")); //$NON-NLS-1$
              }
              transactionManager.resume(tc.getTransaction());
          } else if (transactionExpected) {
            throw new InvalidTransactionException(QueryPlugin.Util.getString("TransactionServer.no_transaction", threadId)); //$NON-NLS-1$
          }
        } catch (InvalidTransactionException e) {
          throw new XATransactionException(e);
    } catch (SystemException e) {
          throw new XATransactionException(e);
View Full Code Here

Examples of javax.transaction.InvalidTransactionException

    private void associate(TransactionImpl tx) throws InvalidTransactionException {
        if (tx == null) throw new NullPointerException("tx is null");

        Object existingAssociation = associatedTransactions.putIfAbsent(tx, Thread.currentThread());
        if (existingAssociation != null) {
            throw new InvalidTransactionException("Specified transaction is already associated with another thread");
        }
        threadTx.set(tx);
        fireThreadAssociated(tx);
    }
View Full Code Here

Examples of javax.transaction.InvalidTransactionException

    public void resume(Transaction tx) throws IllegalStateException, InvalidTransactionException, SystemException {
        if (getTransaction() != null) {
            throw new IllegalStateException("Thread already associated with another transaction");
        }
        if (!(tx instanceof TransactionImpl)) {
            throw new InvalidTransactionException("Cannot resume foreign transaction: " + tx);
        }
        associate((TransactionImpl) tx);
    }
View Full Code Here

Examples of javax.transaction.InvalidTransactionException

            TransactionRequiredException transactionRequiredException = new TransactionRequiredException(ex.getMessage());
            transactionRequiredException.detail = ex;
            return transactionRequiredException;
        }
        if (ex instanceof INVALID_TRANSACTION) {
            InvalidTransactionException invalidTransactionException = new InvalidTransactionException(ex.getMessage());
            invalidTransactionException.detail = ex;
            return invalidTransactionException;
        }
        if (ex instanceof OBJECT_NOT_EXIST) {
            NoSuchObjectException noSuchObjectException = new NoSuchObjectException(ex.getMessage());
View Full Code Here

Examples of javax.transaction.InvalidTransactionException

            TransactionRequiredException transactionRequiredException = new TransactionRequiredException(ex.getMessage());
            transactionRequiredException.detail = ex;
            return transactionRequiredException;
        }
        if (ex instanceof INVALID_TRANSACTION) {
            InvalidTransactionException invalidTransactionException = new InvalidTransactionException(ex.getMessage());
            invalidTransactionException.detail = ex;
            return invalidTransactionException;
        }
        if (ex instanceof OBJECT_NOT_EXIST) {
            NoSuchObjectException noSuchObjectException = new NoSuchObjectException(ex.getMessage());
View Full Code Here

Examples of javax.transaction.InvalidTransactionException

        if (getTransaction() != null)
            throw new IllegalStateException();

        if (tobj == null)
            throw new InvalidTransactionException();

        bindings.put(Thread.currentThread(), tobj);

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.