Package java.lang

Examples of java.lang.IllegalStateException


      case ActionStatus.H_MIXED:
        throw new HeuristicMixedException();
      case ActionStatus.INVALID:
        TransactionImple.removeTransaction(this);
       
        throw new IllegalStateException();
      default:
        throw new HeuristicMixedException(); // not sure what
      // happened,
      // so err on the safe side!
      }
    }
    catch (ClassCastException ex)
    {
      ex.printStackTrace();

      throw new IllegalStateException();
    }
  }
View Full Code Here


    }
    catch (ClassCastException ex)
    {
      ex.printStackTrace();

      throw new IllegalStateException();
    }
  }
View Full Code Here

      subAct.doForget();
    }
    catch (ClassCastException ex)
    {
      throw new IllegalStateException();
    }
    finally
    {
      TransactionImple.removeTransaction(this);
    }
View Full Code Here

      case ActionStatus.H_HAZARD:
      case ActionStatus.H_MIXED:
      default:
        throw new javax.transaction.HeuristicRollbackException();
      case ActionStatus.INVALID:
        throw new IllegalStateException();
      }
    }
    catch (ClassCastException ex)
    {
      ex.printStackTrace();

      throw new IllegalStateException();
    }
  }
View Full Code Here

    /*
     * throw new IllegalStateException(
     * jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.jts.subordinate.invalidstate"));
     */

    throw new IllegalStateException();
  }
View Full Code Here

    public PrintWriter getWriter() throws java.io.IOException {
        return printWriter;
    }

    public ServletOutputStream getOutputStream() throws java.io.IOException {
        throw new IllegalStateException();
    }
View Full Code Here

    }

    public void start(int flags) throws RollbackException, SystemException {
        if (_state != XAState.NOT_STARTED) {
            _logger.log(Level.SEVERE, "start called at an illegal state "+this);
            throw new IllegalStateException(toString());
        }
        Exception ex = null;
       
    try {
            if (_fi.FAULT_INJECTION) {
View Full Code Here

        if (_state != XAState.STARTED &&
            _state != XAState.START_FAILED &&
            _state != XAState.END_FAILED) {
            _logger.log(Level.SEVERE, "end called at an illegal state "+this);
            throw new IllegalStateException(toString());
        }
        Exception ex = null;
        try {

            if (_fi.FAULT_INJECTION) {
View Full Code Here

            _state != XAState.PREPARED &&
            _state != XAState.PREPARE_FAILED &&
            _state != XAState.ROLLEDBACK &&
            _state != XAState.ROLLBACK_FAILED) {
            _logger.log(Level.SEVERE, "rollback called at an illegal state "+this);
            throw new IllegalStateException(toString());
        }
        if (_state == XAState.ROLLEDBACK) {
            _logger.log(Level.INFO, _jbr.getString(_jbr.I_ALREADY_ROLLEDBACK, this.toString()));
            return;
        }
View Full Code Here

    public void prepare() throws IllegalStateException,
                                 RollbackException,
                                 SystemException {
        if (_state != XAState.ENDED) {
            throw new IllegalStateException(toString());
        }
        Exception ex = null;
        int vote;
        try {
            if (_fi.FAULT_INJECTION) {
View Full Code Here

TOP

Related Classes of java.lang.IllegalStateException

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.