Examples of HeuristicMixedException


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

        if (!commit)
      throw new TransactionCommittedException();
    }
    break;
      case TwoPhaseResult.HEURISTIC_MIXED:
    throw new HeuristicMixedException();
      case TwoPhaseResult.HEURISTIC_HAZARD:
    throw new HeuristicHazardException();
      case TwoPhaseResult.FINISH_OK:
    break;
      case TwoPhaseResult.FINISH_ERROR:
View Full Code Here

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

        if (!commit)
      throw new TransactionCommittedException();
    }
    break;
      case TwoPhaseResult.HEURISTIC_MIXED:
    throw new HeuristicMixedException();
      case TwoPhaseResult.HEURISTIC_HAZARD:
    throw new HeuristicHazardException();
      case TwoPhaseResult.FINISH_OK:
    break;
      case TwoPhaseResult.FINISH_ERROR:
View Full Code Here

Examples of javax.transaction.HeuristicMixedException

        throw new HeuristicRollbackException();
      case ActionStatus.H_ROLLBACK:
        throw new HeuristicRollbackException();
      case ActionStatus.H_HAZARD:
      case ActionStatus.H_MIXED:
        throw new HeuristicMixedException();
      case ActionStatus.INVALID:
        throw new IllegalStateException();
      default:     
        throw new HeuristicMixedException(); // not sure what happened,
      // so err on the safe side!
      }
    }
    catch (ClassCastException ex)
    {
View Full Code Here

Examples of javax.transaction.HeuristicMixedException

        break;
      case ActionStatus.H_COMMIT:
        throw new HeuristicCommitException();
      case ActionStatus.H_HAZARD:
      case ActionStatus.H_MIXED:
        throw new HeuristicMixedException();
      default:     
        throw new HeuristicMixedException();
      }
    }
    catch (ClassCastException ex)
    {
      ex.printStackTrace();
View Full Code Here

Examples of javax.transaction.HeuristicMixedException

        throw new HeuristicRollbackException();
      case ActionStatus.H_ROLLBACK:
        throw new HeuristicRollbackException();
      case ActionStatus.H_HAZARD:
      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)
View Full Code Here

Examples of javax.transaction.HeuristicMixedException

        break;
      case ActionStatus.H_COMMIT:
        throw new HeuristicCommitException();
      case ActionStatus.H_HAZARD:
      case ActionStatus.H_MIXED:
        throw new HeuristicMixedException();
      default:
        throw new HeuristicMixedException();
      }
    }
    catch (ClassCastException ex)
    {
      ex.printStackTrace();
View Full Code Here

Examples of javax.transaction.HeuristicMixedException

            try {
               //we only do 2-phase commits
               res.commit(xid, false);
            } catch (XAException e) {
               log.errorCommittingTx(e);
               throw new HeuristicMixedException(e.getMessage());
            }
         }
      }
   }
View Full Code Here

Examples of javax.transaction.HeuristicMixedException

         try {
            //we only do 2-phase commits
            res.commit(xid, false);
         } catch (XAException e) {
            log.warn("exception while committing", e);
            throw new HeuristicMixedException(e.getMessage());
         }
      }
   }
View Full Code Here

Examples of javax.transaction.HeuristicMixedException

      for (XAResource res : resources) {
         try {
            res.commit(xid, false);//todo we only support one phase commit for now, change this!!!
         } catch (XAException e) {
            log.warn("exception while committing", e);
            throw new HeuristicMixedException(e.getMessage());
         }
      }
      return true;
   }
View Full Code Here

Examples of javax.transaction.HeuristicMixedException

    @Test( expected = RuntimeException.class )
    public void commitWithHeuristicMixedException()
        throws Exception
    {
        doThrow( new HeuristicMixedException() ).when( txn ).commit();
        sut.commit();
    }
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.