About commit

191-200 of 200Refresh
Issue
1

InternalException

Hi, 3 Days before our rollout.. We've just got this when trying to commit persist of a bunch of entities into the DB   Caused by: com.objectdb.o._RollbackException: Failed to commit transaction ... :] at com.objectdb.jpa.EMImpl.commit(EMImpl.java:279) [objectdb-2.4.0.jar:] {..} ... 25 more Caused by
Issue
1

Issue with cascade delete & add/remove

to clear the collection first, commit that and then remove the Contact? thanks! Any Update ... .persist(contact);         em.getTransaction().commit();         printCounts(em);         em.close ... .getAddresses().add(address_1);         em.getTransaction().commit();         printCounts(em);         em
Issue
1

java.lang.ClassCastException: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU

): Failed to commit transaction: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU [ObjectDB 2.7.1] javax.persistence.RollbackException Failed to commit transaction: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:290) at cl
Forum
1

Left join fetch behaviour doesn't retrieve children?

"));         em.merge(e1);         // Ok, seems to be well merged         em.getTransaction().commit ... .getTransaction().commit();   em.clear();   em.close();   // Try to retrieve parent and children ... .setEntityChild(child2);    em.merge(e1);   }   em.getTransaction().commit();   em.clear
Forum
1

Multi-thread access to single EM's entities

);         em.getTransaction().begin();         em.persist(pointless);         em.getTransaction().commit ... );                }         });         t.start();         t.join();           em.getTransaction().commit(); // commit t's changes         em.close();         emf.close();     }     @Entity     static
Issue
1

new objects not available in mappedBy associations

, even if it is persisted, and even if the transaction is committed??   This seems to be the normal ... after the transaction is committed (or after the update and before commit, if your EntityManager is set to use
Forum
1

New to Product & Having An Issue

); em.getTransaction().commit(); }catch(Exception e){ e ... (this.foundResult); em.getTransaction().commit(); }catch(Exception e ... : departments) em.remove(d); em.getTransaction().commit
Forum
1

Not able to update records

.getTransaction().commit() to end the transaction wirh a commit. It schould then look like ... .getTransaction().commit(); // end the transaction On an error you had propably to rollback your transaction
Forum
1

null pointer exception in objectdb-2.4.4_06

I have the following stack trace.  Is this a null ptr in our code or in the object db code? Failed to commit transaction:  (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:279) [Removed ... .EMImpl.commit(EMImpl.java:276) The stack trace indicates an attempt to persist (indirectly
Issue
1

NullPointer when accessing entity field

is manipulated concurrently in another thread (e.g. transaction is committed or the EntityManager ... ), do the operations using EM in ThreadLocal, on batch end we commit transaction,delete from ThreadLocal and close ... operations, where we usually do update on many objects and after that commit and close the EM. But I