@Override public void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException { if (status == Status.STATUS_NO_TRANSACTION) throw new IllegalStateException("transaction hasn't started yet"); if (status == Status.STATUS_MARKED_ROLLBACK) throw new BitronixRollbackException("transaction has been marked as rollback only"); if (isDone()) throw new IllegalStateException("transaction is done, cannot register any more synchronization"); if (log.isDebugEnabled()) { log.debug("registering synchronization " + synchronization); } synchronizationScheduler.add(synchronization, Scheduler.DEFAULT_POSITION); }
public BitronixRollbackException(String string, Throwable t) { super(string); initCause(t); }
} catch (BitronixSystemException ex) { rollback(); throw new BitronixRollbackException("SystemException thrown during beforeCompletion cycle caused transaction rollback", ex); } catch (RuntimeException ex) { rollback(); throw new BitronixRollbackException("RuntimeException thrown during beforeCompletion cycle caused transaction rollback", ex); if (log.isDebugEnabled()) log.debug("transaction timed out"); rollback(); throw new BitronixRollbackException("transaction timed out and has been rolled back"); rollback(); throw new BitronixRollbackException("delistment error caused transaction rollback" + ex.getMessage()); if (log.isDebugEnabled()) log.debug("transaction marked as rollback only"); rollback(); throw new BitronixRollbackException("transaction was marked as rollback only and has been rolled back"); throw new BitronixRollbackException("transaction failed to prepare: " + this, ex);
} catch (BitronixSystemException ex) { rollback(); throw new BitronixRollbackException("SystemException thrown during beforeCompletion cycle caused transaction rollback", ex); } catch (RuntimeException ex) { rollback(); throw new BitronixRollbackException("RuntimeException thrown during beforeCompletion cycle caused transaction rollback", ex); if (log.isDebugEnabled()) { log.debug("transaction timed out"); } rollback(); throw new BitronixRollbackException("transaction timed out and has been rolled back"); rollback(); throw new BitronixRollbackException("delistment error caused transaction rollback" + ex.getMessage()); if (log.isDebugEnabled()) { log.debug("transaction marked as rollback only"); } rollback(); throw new BitronixRollbackException("transaction was marked as rollback only and has been rolled back"); throw new BitronixRollbackException("transaction failed to prepare: " + this, ex);
public void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException { if (status == Status.STATUS_NO_TRANSACTION) throw new IllegalStateException("transaction hasn't started yet"); if (status == Status.STATUS_MARKED_ROLLBACK) throw new BitronixRollbackException("transaction has been marked as rollback only"); if (isDone()) throw new IllegalStateException("transaction is done, cannot register any more synchronization"); if (log.isDebugEnabled()) log.debug("registering synchronization " + synchronization); synchronizationScheduler.add(synchronization, Scheduler.DEFAULT_POSITION); }
} catch (BitronixSystemException ex) { rollback(); throw new BitronixRollbackException("SystemException thrown during beforeCompletion cycle caused transaction rollback", ex); } catch (RuntimeException ex) { rollback(); throw new BitronixRollbackException("RuntimeException thrown during beforeCompletion cycle caused transaction rollback", ex); if (log.isDebugEnabled()) log.debug("transaction timed out"); rollback(); throw new BitronixRollbackException("transaction timed out and has been rolled back"); rollback(); throw new BitronixRollbackException("delistment error caused transaction rollback" + ex.getMessage()); if (log.isDebugEnabled()) log.debug("transaction marked as rollback only"); rollback(); throw new BitronixRollbackException("transaction was marked as rollback only and has been rolled back"); throw new BitronixRollbackException("transaction failed to prepare: " + this, ex);
public BitronixRollbackException(String string, Throwable t) { super(string); initCause(t); }
public void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException { if (status == Status.STATUS_NO_TRANSACTION) throw new IllegalStateException("transaction hasn't started yet"); if (status == Status.STATUS_MARKED_ROLLBACK) throw new BitronixRollbackException("transaction has been marked as rollback only"); if (isDone()) throw new IllegalStateException("transaction is done, cannot register any more synchronization"); if (log.isDebugEnabled()) log.debug("registering synchronization " + synchronization); synchronizationScheduler.add(synchronization, Scheduler.DEFAULT_POSITION); }
} catch (BitronixSystemException ex) { rollback(); throw new BitronixRollbackException("SystemException thrown during beforeCompletion cycle caused transaction rollback", ex); } catch (RuntimeException ex) { rollback(); throw new BitronixRollbackException("RuntimeException thrown during beforeCompletion cycle caused transaction rollback", ex); if (log.isDebugEnabled()) { log.debug("transaction timed out"); } rollback(); throw new BitronixRollbackException("transaction timed out and has been rolled back"); rollback(); throw new BitronixRollbackException("delistment error caused transaction rollback" + ex.getMessage()); if (log.isDebugEnabled()) { log.debug("transaction marked as rollback only"); } rollback(); throw new BitronixRollbackException("transaction was marked as rollback only and has been rolled back"); throw new BitronixRollbackException("transaction failed to prepare: " + this, ex);
public BitronixRollbackException(String string, Throwable t) { super(string); initCause(t); }
@Override public void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException { if (status == Status.STATUS_NO_TRANSACTION) throw new IllegalStateException("transaction hasn't started yet"); if (status == Status.STATUS_MARKED_ROLLBACK) throw new BitronixRollbackException("transaction has been marked as rollback only"); if (isDone()) throw new IllegalStateException("transaction is done, cannot register any more synchronization"); if (log.isDebugEnabled()) { log.debug("registering synchronization " + synchronization); } synchronizationScheduler.add(synchronization, Scheduler.DEFAULT_POSITION); }
public BitronixRollbackException(String string, Throwable t) { super(string); initCause(t); }
throw new BitronixRollbackException(message + ":" + " resource(s) " + Decoder.collectResourcesNames(heuristicResources) + " unilaterally finished transaction branch before being asked to prepare", phaseException); else throw new BitronixRollbackException(message + ":" + " resource(s) " + Decoder.collectResourcesNames(errorResources) + " threw unexpected exception", phaseException);
throw new BitronixRollbackException(message + ":" + " resource(s) " + Decoder.collectResourcesNames(heuristicResources) + " unilaterally finished transaction branch before being asked to prepare", phaseException); else throw new BitronixRollbackException(message + ":" + " resource(s) " + Decoder.collectResourcesNames(errorResources) + " threw unexpected exception", phaseException);
throw new BitronixRollbackException(sb.toString());
throw new BitronixRollbackException(message + ":" + " resource(s) " + Decoder.collectResourcesNames(heuristicResources) + " unilaterally finished transaction branch before being asked to prepare", phaseException); else throw new BitronixRollbackException(message + ":" + " resource(s) " + Decoder.collectResourcesNames(errorResources) + " threw unexpected exception", phaseException);
throw new BitronixRollbackException(message + ":" + " resource(s) " + Decoder.collectResourcesNames(heuristicResources) + " unilaterally finished transaction branch before being asked to prepare", phaseException); else throw new BitronixRollbackException(message + ":" + " resource(s) " + Decoder.collectResourcesNames(errorResources) + " threw unexpected exception", phaseException);
throw new BitronixRollbackException(sb.toString());
throw new BitronixRollbackException(sb.toString());
throw new BitronixRollbackException(sb.toString());