Internal Website Search

51-60 of 100 resultsRefresh

Dirty checking

drop the transaction? Don't I have to either rollback or commit it? Let's take a step ... Moshal OK. Rollback is fine, of course, and with your detailed explanations it is clear now ... > Regarding rollback, the JPA state diagram seems to indicate that post commit entities

How to Use a SF with extended Persistence Context?

with exception: com.objectdb.o._TransactionRequiredException: Attempt to rollback a transaction ... .BaseTransaction.rollback(BaseTransaction.java:134) at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.rollback(BaseTransactionManagerDelegate.java:114) at org.jboss.as.ejb3.tx.CMTTxInterceptor

New to Product & Having An Issue

.getTransaction().rollback(); assertTrue(false); } } @Test ... ()) em.getTransaction().rollback(); assertTrue(false ... ()) em.getTransaction().rollback(); } //Finish clean

Memory Leak in EntityManagerFactory ?

class="code">begin with no commit or rollback ... >Anyway, if this diagnosis is correct then a possible solution on your side may be to check and commit / rollback ... ="color:#e67e22;">// Condition A manager.getTransaction().rollback(); }  

Run out of memory

to be able to rollback changes as well, where there can be massive amount of changes. I ... .println("Commit Done"); } protected void onRollback() { this.em.getTransaction().rollback(); this.em.clear(); this.em.close();     System.err.println("Rollback

pesimistic Lock semantic

.currentTransaction().rollback(); System.out.println(Thread.currentThread().getName() + " --" + "Pesimistic ... .currentTransaction().rollback(); pm1.close(); } if (pm2 != null) { if (pm2.currentTransaction().isActive()) pm2.currentTransaction().rollback(); pm2.close

javax.persistence.PessimisticLockException

at commit time. The current transaction, if one is active, will be marked for rollback.

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

.TransactionRequiredException Attempt to rollback a transaction when no transaction is active (error ... .persistence.TransactionRequiredException Attempt to rollback a transaction when no transaction is active ... Attempt to rollback a transaction using a closed EntityManager (error 525) at com.objectdb.jpa.EMImpl

Best practise loading big data

">rollback or clear instead of commit? Do you always use ... so we do not need to commit - commit is a NOOP. If it is faster to rollback or just to clear ... >Commit is almost no-op in that case so don't expect performance improvements with rollback / clear

[ObjectDB 2.8.3_01] Unexpected exception (Error 990)

.persistence.RollbackException Failed to commit transaction: Attempt to commit a rollback ... .persistence.PersistenceException: com.objectdb.o.UserException: Attempt to commit a rollback ... : com.objectdb.o.UserException: Attempt to commit a rollback only transaction at com.objectdb.o.MSG