Home » Search

About commit

131-140 of 200Refresh
Issue
2

ArrayIndexOutOfBoundsException on flush

().commit(); } catch(Exception e) { if(em.getTransaction().isActive()) em.getTransaction ... into a commit retry loop which blew out the logs: Attempt to commit a transaction after failure in ... mentioned above is this: [ObjectDB 2.3.2_08] javax.persistence.PersistenceException Attempt to commit
Forum
2

Different behavior with persist() and queried instances?

a sample project, *after* the commit, my list property is correctly enhanced with odb specific fields ... ) it doesn't work. Alex Okay I think I know what's going: After the commit and persist calls I do close the entity manager so my object gets detached. Between the persist() and the commit() call, my list
Forum
2

Error 613 - i cant put a list<Athlete> into a Squad object

.RollbackException Failed to commit transaction: Failed to write the value of field test.Squad ... 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:259) at test.Main.main(Main.java:25) Caused by ... ) at com.objectdb.o.OBM.bD(OBM.java:711) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:256) ... 1
Forum
2

Error using query with MAX() function

.setChangeDate(new Date(System.currentTimeMillis())); em.getTransaction().commit(); em ... = (Date)tq.getSingleResult(); em.getTransaction().commit(); System.out.println("MaxDate ... )   There seems to be a link between how often I commit and the results of success or failure. If I commit after every update
Forum
2

Fantom

() .with { transaction.begin() persist(new Address(street:"Groovy")) transaction.commit() } @Entity class ... "}) getTransaction.commit } } } @Entity class Address{ Str? street } Result Groovy version works ... to commit transaction: Failed to get reference value of field field fan.FodbTest.Address.street using
Issue
2

InternalException during producer/consumer scenario

) Caused by: com.objectdb.o._RollbackException: Failed to commit transaction: Unexpected internal ... .onObjectDBError(OBC.java:1386) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:259) at rbccm.felix ... (OBM.java:711) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:256) ... 4 more Caused by: java.lang
Forum
2

Items in list are doubled, when the entity class is not enhanced

(); for(Object o : l){ em.remove(o); } em.getTransaction().commit(); l ... (); for(Object o : l){ em.remove(o); } em.getTransaction().commit ... .persist(c); em.getTransaction().commit(); em.refresh(c); em
Forum
2

Mysterious "Attempt to persist a reference to a non managed instance" error

exceptions at commit time. I've stripped it down to a  set of files that seem to be of trivial complexity ... );       em.persist(oo);         tx.commit();     } } I had started with the expectation ... .RollbackException Failed to commit transaction: Attempt to persist a reference to a non managed failing
Forum
2

Optimistic locking: prevent version increment on entity collection attribute

);     em.persist(doc);        em.getTransaction().commit();        Document tmpDoc = em.find ... and we are still in the same transaction (before any commit or rollback). In the debugger, when I check ... - The Test class with a test method that creates a document, adds 2 Readings to it and commits
Issue
2

Server out of memory exceptions

an embedded database: [ObjectDB 2.2.8] javax.persistence.RollbackException Failed to commit transaction: Attempt to commit a transaction after failure in writing to database file 'F:\calculationservice\objectdb\dbs\admin\WorkflowHistory.odb' (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277