Package org.springframework.transaction

Examples of org.springframework.transaction.TransactionSystemException


    JtaTransactionObject txObject = (JtaTransactionObject) transaction;
    try {
      return doJtaSuspend(txObject);
    }
    catch (SystemException ex) {
      throw new TransactionSystemException("JTA failure on suspend", ex);
    }
  }
View Full Code Here


    }
    catch (InvalidTransactionException ex) {
      throw new IllegalTransactionStateException("Tried to resume invalid JTA transaction", ex);
    }
    catch (IllegalStateException ex) {
      throw new TransactionSystemException("Unexpected internal transaction state", ex);
    }
    catch (SystemException ex) {
      throw new TransactionSystemException("JTA failure on resume", ex);
    }
  }
View Full Code Here

    }
    catch (HeuristicRollbackException ex) {
      throw new HeuristicCompletionException(HeuristicCompletionException.STATE_ROLLED_BACK, ex);
    }
    catch (IllegalStateException ex) {
      throw new TransactionSystemException("Unexpected internal transaction state", ex);
    }
    catch (SystemException ex) {
      throw new TransactionSystemException("JTA failure on commit", ex);
    }
  }
View Full Code Here

      if (tx.isActive()) {
        tx.rollback();
      }
    }
    catch (JDOException ex) {
      throw new TransactionSystemException("Could not roll back JDO transaction", ex);
    }
  }
View Full Code Here

      if (txObject.getUserTransaction().getStatus() != Status.STATUS_NO_TRANSACTION) {
        txObject.getUserTransaction().rollback();
      }
    }
    catch (IllegalStateException ex) {
      throw new TransactionSystemException("Unexpected internal transaction state", ex);
    }
    catch (SystemException ex) {
      throw new TransactionSystemException("JTA failure on rollback", ex);
    }
  }
View Full Code Here

      if (txObject.getUserTransaction().getStatus() != Status.STATUS_NO_TRANSACTION) {
        txObject.getUserTransaction().setRollbackOnly();
      }
    }
    catch (IllegalStateException ex) {
      throw new TransactionSystemException("Unexpected internal transaction state", ex);
    }
    catch (SystemException ex) {
      throw new TransactionSystemException("JTA failure on setRollbackOnly", ex);
    }
  }
View Full Code Here

          "transaction - processing Spring after-completion callbacks with outcome status 'unknown'" +
          "Original exception: " + ex);
      invokeAfterCompletion(synchronizations, TransactionSynchronization.STATUS_UNKNOWN);
    }
    catch (SystemException ex) {
      throw new TransactionSystemException("JTA failure on registerSynchronization", ex);
    }
  }
View Full Code Here

      Method getUserTransactionMethod =
          this.transactionHelperClass.getMethod("getUserTransaction", new Class[0]);
      return (UserTransaction) getUserTransactionMethod.invoke(this.transactionHelper, new Object[0]);
    }
    catch (InvocationTargetException ex) {
      throw new TransactionSystemException(
          "WebLogic's TransactionHelper/TxHelper.getUserTransaction() method failed", ex.getTargetException());
    }
    catch (Exception ex) {
      throw new TransactionSystemException(
          "Could not invoke WebLogic's TransactionHelper/TxHelper.getUserTransaction() method", ex);
    }
  }
View Full Code Here

      Method getTransactionManagerMethod =
          this.transactionHelperClass.getMethod("getTransactionManager", new Class[0]);
      return (TransactionManager) getTransactionManagerMethod.invoke(this.transactionHelper, new Object[0]);
    }
    catch (InvocationTargetException ex) {
      throw new TransactionSystemException(
          "WebLogic's TransactionHelper/TxHelper.getTransactionManager() method failed", ex.getTargetException());
    }
    catch (Exception ex) {
      throw new TransactionSystemException(
          "Could not invoke WebLogic's TransactionHelper/TxHelper.getTransactionManager() method", ex);
    }
  }
View Full Code Here

              getClass().getClassLoader().loadClass(TX_HELPER_CLASS_NAME);
          logger.debug("WebLogic 7.0 TxHelper found");
        }
      }
      catch (InvocationTargetException ex) {
        throw new TransactionSystemException(
            "WebLogic's TransactionHelper.getTransactionHelper() method failed", ex.getTargetException());
      }
      catch (Exception ex) {
        throw new TransactionSystemException(
            "Could not initialize WebLogicJtaTransactionManager because WebLogic API classes are not available",
            ex);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.transaction.TransactionSystemException

Copyright © 2018 www.massapicom. 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.