DEBUG JtaTransactionManager - Initiating transaction commitDEBUG JtaTransactionManager - Initiating transaction commitDEBUG AbstractFlushingEventListener - Processing flush-time cascadesDEBUG AbstractFlushingEventListener - Dirty checking collectionsDEBUG AbstractFlushingEventListener - Flushed: 2 insertions, 0 updates, 0 deletions to 2 objectsDEBUG AbstractFlushingEventListener - Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collectionsDEBUG EntityPrinter - Listing entities:DEBUG EntityPrinter - org.springframework.samples.petclinic.model.Owner{pets=null, firstName=ThumsDown1, lastName=jcbj1, address=ncbwj1, city=cbw1, telephone=98867857678981, id=5000047}DEBUG EntityPrinter - org.springframework.samples.petclinic.model.Vet{firstName=ThumsDown1, lastName=jcbj1, specialties=null, id=5000046}DEBUG SQL - insert into vets (first_name, last_name, id) values (?, ?, ?)Hibernate: insert into vets (first_name, last_name, id) values (?, ?, ?)DEBUG JdbcCoordinatorImpl - Skipping aggressive release due to manual disablingDEBUG PlatformResourceBundleLocator - ValidationMessages not found.DEBUG PlatformResourceBundleLocator - ContributorValidationMessages not found.DEBUG PlatformResourceBundleLocator - org.hibernate.validator.ValidationMessages found.DEBUG LogicalConnectionManagedImpl - Initiating JDBC connection release from afterStatementDEBUG TransactionImpl - TransactionImpl created on closed Session/EntityManagerDEBUG TransactionImpl - On TransactionImpl creation, JpaCompliance#isJpaTransactionComplianceEnabled == falseWARN arjuna - ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for SynchronizationImple< 0:ffffc0a86e01:e5b3:60c05e5d:3, org.hibernate.resource.transaction.backend.jta.internal.synchronization.RegisteredSynchronization@64639fee >javax.validation.ConstraintViolationException: Validation failed for classes [org.springframework.samples.petclinic.model.Owner] during persist time for groups [javax.validation.groups.Default, ]List of constraint violations:[ ConstraintViolationImpl{interpolatedMessage='numeric value out of bounds (<10 digits>.<0 digits> expected)', propertyPath=telephone, rootBeanClass=class org.springframework.samples.petclinic.model.Owner, messageTemplate='
{javax.validation.constraints.Digits.message}'}] at org.hibernate.cfg.beanvalidation.BeanValidationEventListener.validate(BeanValidationEventListener.java:140) at org.hibernate.cfg.beanvalidation.BeanValidationEventListener.onPreInsert(BeanValidationEventListener.java:80) at org.hibernate.action.internal.EntityInsertAction.preInsert(EntityInsertAction.java:227) at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:100)
protected boolean beforeCompletion() {
boolean problem = false;
synchronized(this._syncLock) {
if (!this._beforeCalled) {
this._beforeCalled = true;
if (this._synchs != null) {
if (TxControl.asyncBeforeSynch && this._synchs.size() > 1) {
problem = !this.asyncBeforeCompletion();
} else {
int lastIndexProcessed = -1;
SynchronizationRecord[] copiedSynchs = (SynchronizationRecord[])((SynchronizationRecord[])this._synchs.toArray(new SynchronizationRecord[0]));
while(lastIndexProcessed < this._synchs.size() - 1 && !problem) {
if (copiedSynchs.length != this._synchs.size()) {
copiedSynchs = (SynchronizationRecord[])((SynchronizationRecord[])this._synchs.toArray(new SynchronizationRecord[0]));
}
++lastIndexProcessed;
this._currentRecord = copiedSynchs[lastIndexProcessed];
try {
problem = !this._currentRecord.beforeCompletion();
} catch (Exception var7) {
tsLogger.i18NLogger.warn_coordinator_TwoPhaseCoordinator_2(this._currentRecord.toString(), var7);
if (this._deferredThrowable == null) {
this._deferredThrowable = var7;
}
problem = true;
} catch (Error var8) {
tsLogger.i18NLogger.warn_coordinator_TwoPhaseCoordinator_2(this._currentRecord.toString(), var8);
if (this._deferredThrowable == null) {
this._deferredThrowable = var8;
}
problem = true;
}
}
}
}
}
if (problem && !this.preventCommit()) {
tsLogger.i18NLogger.warn_coordinator_TwoPhaseCoordinator_1();
}
}
return !problem;
}
--
You received this message because you are subscribed to a topic in the Google Groups "narayana-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/narayana-users/D16JTYmLiHM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to narayana-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/narayana-users/da8402f6-3185-4184-b5b4-4d34fce1dd59n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/narayana-users/d1577220-f597-4007-bc71-87c11540c99cn%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "narayana-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to narayana-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/narayana-users/CAAaE1w9PFB92LreCH1VwFQdq%2BZDupB6%3DDsE8w9Oz2-E3tcXnoA%40mail.gmail.com.
Hi Ondra,I will post the Logs and reproducer soon.Just an info, in my case first of all the Commit call is made and then during the Commit the Constraint Violation Exception is thrown, after which the exception handler marks the transaction as Rollback Only.Post this marking there is no actual Rollback() call made.
You received this message because you are subscribed to the Google Groups "narayana-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to narayana-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/narayana-users/CAAaE1w9PFB92LreCH1VwFQdq%2BZDupB6%3DDsE8w9Oz2-E3tcXnoA%40mail.gmail.com.