ObjectDB Database Search

51-96 of 96 results

New to Product & Having An Issue

.printStackTrace(); if(em.getTransaction().isActive()) em.getTransaction(). rollback (); assertTrue(false ... (Exception e){ e.printStackTrace(); if(em.getTransaction().isActive()) em.getTransaction(). rollback ... (Exception e){ e.printStackTrace(); if(em.getTransaction().isActive()) em.getTransaction(). rollback

Run out of memory

and store it back in the database to access / modify later. I require to be able to rollback changes ... Done"); } protected void onRollback() { this.em.getTransaction(). rollback (); this.em.clear(); this.em.close();     System.err.println(" Rollback Done"); } The general

pesimistic Lock semantic

.currentTransaction().commit(); pm2.currentTransaction(). rollback (); System.out.println(Thread.currentThread ... .currentTransaction(). rollback (); pm1.close(); } if (pm2 != null) { if (pm2.currentTransaction().isActive()) pm2.currentTransaction(). rollback (); pm2.close(); } } }   br Tomasz Tomasz Tomasz Wozniak First

How to Use a SF with extended Persistence Context?

: Attempt to rollback a transaction when no transaction is active at com.objectdb.o.JPE.g(JPE.java:73 ... .BaseTransaction. rollback (BaseTransaction.java:134) at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate. rollback (BaseTransactionManagerDelegate.java:114) at org.jboss.as.ejb3.tx.CMTTxInterceptor

Memory Leak in EntityManagerFactory ?

with no commit or rollback ). Possibly, this behaviour is to avoid cleaning objects that are still in use ... / rollback any active transaction before closing an EntityManager , which is a good practice ... .getTransaction(). rollback (); }       ... if (manager.isOpen()) {    

Unable to delete the .odb file programatically

(). rollback (); } if (!pm.isClosed()) {     pm.evictAll();     pm ... (). rollback (); } if (!pm.isClosed()) {     pm.evictAll(); pm.close(); }    

Cannot catch a PersistenceException and continue the transaction

in the same transaction. Implement a BMT- it doesn't let me commit and rollback because the server ... thrown to the application server, the transaction is not expected to be marked for rollback . support Support Ohh, I see. Thx! dreckguy Ophir Haramaty

@Unique member combination not working

.getTransaction(). rollback ();             ... (). rollback ();                

JOD problems regarding detachCopy()

(); }finally { if (pm.currentTransaction().isActive()) pm.currentTransaction(). rollback (); if (!pm ... .currentTransaction(). rollback (); if (!pm.isClosed()) pm.close(); if (!pmf.isClosed())pmf.close(); } }catch

Entity has be persistended,but query not fetched?

.getTransaction(). rollback ();         em.close();   

Removing an entity throws exception

;catch (Exception e) {      em.getTransaction(). rollback ();    

ClassCastException: cannot be cast to com.objectdb.spi.TrackableUserType

.isActive() ) transaction. rollback () if( !pm.isClosed() ) pm.close() } } // end method store

Working with a cleared cache

()) { m_persistenceManager.currentTransaction(). rollback (); } }   [ObjectDB 2.2.9] Unexpected

One transaction or two?

.currentTransaction().isActive()) { pm.currentTransaction(). rollback (); } if(!pm.isClosed()) { pm.close

Suspected memleak caused by bad state of EntityManager

.onObjectDBError(OBC.java:1493) ~[OBC.class:na] at com.objectdb.jpa.EMImpl. rollback (EMImpl.java:295) ~[EMImpl

Attempt to refresh a non managed entity object (error 635)

, am noticing a few weird things in my tests, for example, managed, but objects surviving a rollback . Pretty

NullPointerException while setting a new property value

().isActive()) em.getTransaction(). rollback (); em.close(); } } 3. The code continues with a revalidation

Not able to update records

(); em.getTransaction().commit(); // end the transaction On an error you had propably to rollback

Optimistic locking: prevent version increment on entity collection attribute

constructor and we are still in the same transaction (before any commit or rollback ). In the debugger

Bug with unique constraint exception not resulting in transaction roll back

does result in a transaction rollback as expected.   However, this same method

CriteriaQuery .where() for multiple conditions

().commit(); } finally { if (em.getTransaction().isActive()) { em.getTransaction(). rollback (); } em

Is it possible to commit only specific elements?

some of them and rollback others. Since JPA supports one transaction per thread, you will have to split

ClassCastException on closing PersistenceManager

.currentTransaction(). rollback ();    }     this.persistenceManager.close();  

Date field Index is corrupted due to time change

(). rollback ();         }        

Rename Application StringIdentity

StringIdentity("UniqueNew"); transaction.commit(); }finally{ if(transaction.isActive()) transaction. rollback

Empty temporary dat files in the temp folder

rollback the transaction and closing the EntityManager. In some scenarios we use additional

How to use ObjectDB properly in spring boot application?

(). rollback (); } It works but the code has become uggly since I had to use try catch finally blocks

EntityTransaction.commit() does not release a pessimistic lock

It appears that EntityTransaction.commit() does not release a pessimistic lock - test code below. I tried it in with the current (2.7.6_01) and older versions (2.6.9, 2.5.7, 2.4.7) with the same result. (side note: EntityTransaction. rollback () releases it correctly) // Account.java package icke

Embedded List

.getTransaction(). rollback ();            

Database Files

(). rollback ();             }      

EM close causes an exception

is closed and that transaction is not rollbacked or committed before the close operation. Some additional

Multiple Collection Fields not update correctly

(). rollback ();             }       

Best setup for huge amount of transactions

. this .entityManager. getTransaction (). rollback (); } I already get some errors from time to time

Best practise loading big data

? maybe you can use rollback or clear instead of commit? Do you always use only enhanced classes ... so we do not need to commit - commit is a NOOP. If it is faster to rollback or just to clear ... expect performance improvements with rollback / clear, although it makes more sense to use them and maybe

[ObjectDB 2.8.3_01] Unexpected exception (Error 990)

] javax.persistence.RollbackException Failed to commit transaction: Attempt to commit a rollback ... .objectdb.o.UserException: Attempt to commit a rollback only transaction at com.objectdb.o ... a rollback only transaction at com.objectdb.o.MSG.a(MSG.java:64) at com.objectdb.o.OBM.aU(OBM.java:849

InternalException

. rollback (EMImpl.java:292) at rbccm.felix.objectdb.workflow.ObjectDbInstanceContainer. rollback (Unknown

Sometimes the ObjectDB throws an internal expeption if a persist() was executed

(and our application), we add for all entities an instance in the database and rollback the transaction. (As ... an instance in the database and rollback the transaction. This step is just to increase

UPDATE statemen crash when i put the WHERE clause.

().isActive()) updateEm.getTransaction(). rollback () ; updateEm.close() ; if (em.getTransaction().isActive()) em.getTransaction(). rollback () ; em.close() ; ioan.bodnar Bodnar Ciprian Apparently

missing merger

directly. The effect should be local, i.e. between flush to commit/ rollback or closing ... ) until commit/ rollback or closing the EntityManager . The cause was premature release of previous database

NullPointer running multiple client against server

()) em.getTransaction(). rollback (); throw new ApplicationException("Error putting message on objectdb

ArrayIndexOutOfBoundsException on flush

().commit(); } catch(Exception e) { if(em.getTransaction().isActive()) em.getTransaction(). rollback

ObjectDB 2.5.0

Added support of nested paths in JOIN FETCH. Added support of persisting collections and maps of user defined types. Added support of Google (Guava) collections. Added support of inheritance of ID fields. Added support of disabling detachment on rollback in JPA. Added support of using entity

Unexpected exception (Error 990)

{ if (transaction.isActive()) { transaction. rollback (); } } "repository" is a Entity in database. Stracktrace as

Unexpected exception (Error 990) - NullPointerException

only stated, that the transaction has been marked for rollback . Why it has been marked was not clear

java 8 LocalDateTime is not working in query

get an rollback caused by this exception: com.objectdb.o.UserException: Attempt to store an instance

Unexpected exception during query, if entity is not enhanced

whose transaction was rollback . Only the entity model structure of TCVector remains in the main database