ObjectDB ObjectDB

Internal Website Search

151-160 of 200 resultsRefresh
8

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
8

What algorithm in find()

", i);    o.setParent( p );    em.persist(o);    trans.commit();    if ((i & 0xFF)==0){     end ... );    }   } The time cost of each 256 commits changed from 0.343 to 59.344 seconds, the graph attached shows ... ? gzdillon Lai Yang Slow commit might be the result of not using enhancement and not calling clear
8

Optimistic Locking

.makePersistent(new Counter()); pm.currentTransaction().commit(); pm.close(); // First user ... ().next(); pm2.currentTransaction().begin(); c2.increase(); // First user commits - succeeds:   pm1.currentTransaction().commit(); pm1.close(); // Second user commits - fails
8

find() delay

(o); trans.commit();} 2, for 1 to 30 {p = em.find(typeC.class, i); print(p)} So simple a test ... .persist(o); trans.commit(); 2. Query q = em.createQuery("select e from typeC e"); List l = q ... .getTransaction().commit();         }         for (int i = 0; i < 30; i
8

Unable to execute update query

));         em.getTransaction().commit();                 em.getTransaction().begin();         Query query ... .getTransaction().commit();         em.close();         emf.close();     }     @Entity     public ... ) {                 System.out.println(i);                 em.getTransaction().commit();                 em.flush
8

unable to update table in slave server database

to commit transaction: Attempt to commit a transaction in read only mode[ObjectDB 2.8.2] javax.persistence.RollbackException Failed to commit transaction: Attempt to commit a transaction in read only mode (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:180) at code.db.jpa.oodb.ObjDBem
8

Remove a modified entity cause an optimistic lock exception

. Committing the changes. The console application is the same but without the flush. Accordingly ... ().commit();         em.close();         em = emf.createEntityManager();         em ... ();         em.flush();         em.remove(e);         em.getTransaction().commit();         em.close
8

Removing an entity throws exception

: Failed to commit transaction: 51 ... Caused by: com.objectdb.o._RollbackException: Failed to commit ... .objectdb.o.OBC.onObjectDBError(OBC.java:1451) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277 ... .OBM.bE(OBM.java:715) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:274) ... 40
8

Where Does ObjectDB Block/Lock?

) Does it lock at transaction.begin() if optimistic=false? 4) Does it lock at transaction.commit ... with optimistic locking, the call to transaction.commit() is where entity object locking actually happens ... are all happening concurrently up to the point where transaction.commit() is called? CBE CBE > Does this mean
1

[ObjectDB 2.8.3_01] Unexpected exception (Error 990)

.persistence.RollbackException Failed to commit transaction: Attempt to commit a rollback only transaction (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:289) at common.app.Database ... .persistence.PersistenceException: com.objectdb.o.UserException: Attempt to commit a rollback

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support