Examples of TransactionException


Examples of com.scooterframework.orm.sqldataexpress.exception.TransactionException

            super.begin();
           
            ut.begin();
        }
        catch(Exception ex) {
            throw new TransactionException("eroror in begin()", ex);
        }
    }
View Full Code Here

Examples of com.skyline.energy.exception.TransactionException

      } else if (txManager.isLazyBegin()) {// 仅懒启动式事务,第一次启动事务
        beginNewTransaction(dataSource, txObject);
        con = txObject.getConnectionHolder().getCurrentConnection();
        shouldAddCount = true;
      } else {
        throw new TransactionException("not lazyBegin transaction bu no currentConnection exist");
      }

      conHolder = txObject.getConnectionHolder(); // 重新获取ConnectionHolder
    }
View Full Code Here

Examples of com.sun.sgs.app.TransactionException

      MyRunnable myRunnable = new MyRunnable();
      Thread thread = new Thread(myRunnable, "testDeadlockThread");
      thread.start();
      Thread.sleep(i * 500);
      flag.acquire();
      TransactionException exception = null;
      try {
    store.getObject(txn, id2, true);
    System.err.println(i + " txn1: commit");
    txn.commit();
      } catch (TransactionAbortedException e) {
View Full Code Here

Examples of com.sun.xml.ws.rx.rm.runtime.transaction.TransactionException

        if (rc.transactionHandler.userTransactionAvailable()
                && rc.transactionHandler.transactionExists()) {
            String errorMessage = LocalizationMessages.WSRM_5002_CLIENTTUBE_PROCESSING_CANNNOT_HAVE_TRANSACTION();
            LOGGER.severe(errorMessage);
            throw new TransactionException(errorMessage);
        }

        try {
            HaContext.initFrom(request);
            if (HaContext.failoverDetected()) {
View Full Code Here

Examples of lib.exceptions.TransactionException

      con.rollback();
      con.setAutoCommit(true);
      releaseCommunicationChannel(true);
    } catch (Exception e) {
      e.printStackTrace();
      throw new TransactionException("EXC_CANCELAR_TRANSACAO");
    } finally {
      try {
        notifyAll();
      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

Examples of net.jini.core.transaction.TransactionException

  // only throw an exception if we are not resolved.
  if (!resolved) {
      // Query still in progress, kill it
      resolved = true;
      toThrow = new TransactionException("completed while " +
                 "operation in progress");
      notifyAll();

      /* If we have a partial result we could try to return it,
       * but if we are a persistent space the attempt to log
View Full Code Here

Examples of net.sf.ehcache.transaction.TransactionException

            rollback();
            throw new TransactionTimeoutException("transaction timed out, rolled back on commit");
        }
        if (rollbackOnly) {
            rollback();
            throw new TransactionException("transaction was marked as rollback only, rolled back on commit");
        }

        try {
            fireBeforeCommitEvent();
            if (LOG.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.ibatis.transaction.TransactionException

        connection.setAutoCommit(desiredAutoCommit);
      }
    } catch (SQLException e) {
      // Only a very poorly implemented driver would fail here,
      // and there's not much we can do about that.
      throw new TransactionException("Error configuring AutoCommit.  " +
          "Your driver may not support getAutoCommit() or setAutoCommit(). " +
          "Requested setting: " + desiredAutoCommit + ".  Cause: " + e, e);
    }
  }
View Full Code Here

Examples of org.apache.jackrabbit.core.TransactionException

                while (opIndex < operations.size()) {
                    try {
                        LockInfo info = (LockInfo) operations.get(opIndex);
                        info.update();
                    } catch (RepositoryException e) {
                        throw new TransactionException("Unable to update.", e);
                    }
                    opIndex++;
                }
            } finally {
                if (opIndex < operations.size()) {
View Full Code Here

Examples of org.apache.jackrabbit.data.core.TransactionException

         */
        void lockAcquire() throws TransactionException {
            try {
                xaLock.acquire();
            } catch (InterruptedException e) {
                throw new TransactionException("Error while acquiering lock", e);
            }

        }
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.