Package com.arjuna.ats.jta.exceptions

Examples of com.arjuna.ats.jta.exceptions.InvalidTerminationStateException


              case Status.STATUS_ROLLEDBACK:
              case Status.STATUS_ROLLING_BACK:
                        break;
              case Status.STATUS_PREPARING:
              case Status.STATUS_PREPARED:
                        throw new InvalidTerminationStateException(
                                jtaLogger.logMesg
                                .getString("com.arjuna.ats.internal.jta.transaction.arjunacore.invalidstate"));
                    default:
                        throw new InactiveTransactionException(
                                jtaLogger.logMesg
View Full Code Here


        //throw new IllegalStateException(
        //    jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.invalidtx2"));
      }
      catch (org.omg.CORBA.SystemException e7)
      {
                InvalidTerminationStateException invalidTerminationStateException = new InvalidTerminationStateException();
                invalidTerminationStateException.initCause(e7);
                throw invalidTerminationStateException;
      }
      finally
      {
        TransactionImple.removeTransaction(this);
View Full Code Here

   */

  public void rollback () throws java.lang.IllegalStateException,
      java.lang.SecurityException, javax.transaction.SystemException
  {
    throw new InvalidTerminationStateException(
        jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.invalidstate"));
  }
View Full Code Here

                TransactionImple.removeTransaction(this);
                // JBTM-428. Note also this may be because the tx was set rollback only,
                // in which case IllegalState may be a better option?
                throw new RollbackException();
                  case ActionStatus.INVALID:
                                  throw new InvalidTerminationStateException();
      case ActionStatus.H_HAZARD:
      case ActionStatus.H_MIXED:
      default:
        throw new javax.transaction.HeuristicMixedException();
      }
View Full Code Here

      javax.transaction.HeuristicMixedException,
      javax.transaction.HeuristicRollbackException,
      java.lang.SecurityException, javax.transaction.SystemException,
      java.lang.IllegalStateException
  {
    throw new InvalidTerminationStateException();
  }
View Full Code Here

  protected void rollbackAndDisassociate ()
      throws java.lang.IllegalStateException,
      java.lang.SecurityException, javax.transaction.SystemException
  {
    throw new InvalidTerminationStateException();
  }
View Full Code Here

                    case Status.STATUS_ROLLEDBACK:
                    case Status.STATUS_ROLLING_BACK:
                        break;
                    case Status.STATUS_PREPARING:
                    case Status.STATUS_PREPARED:
                        throw new InvalidTerminationStateException(
                                jtaLogger.logMesg
                                .getString("com.arjuna.ats.internal.jta.transaction.arjunacore.invalidstate"));
                    default:
                        throw new InactiveTransactionException(
                                jtaLogger.logMesg
View Full Code Here

                            // we tried to commit but it went wrong - attach the reason for debug:
              rollbackException.initCause(_theTransaction.getDeferredThrowable());
            }
            throw rollbackException;
          default:
            throw new InvalidTerminationStateException(
                jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.arjunacore.invalidstate"));
        }
      }
      else
        throw new IllegalStateException(
View Full Code Here

              rollbackException.initCause(_rollbackOnlyCallerStacktrace);
                        }

            throw rollbackException;
          default:
            throw new InvalidTerminationStateException(
                jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.arjunacore.invalidstate"));
        }
      }
      else
        throw new IllegalStateException(
View Full Code Here

TOP

Related Classes of com.arjuna.ats.jta.exceptions.InvalidTerminationStateException

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.