ObjectDB Database Search

51-100 of 138 results

Should derived fields of an EmbeddedId be manually maintained by app code?

); //em. flush (); return newObj; } } import java.io.Serializable; import javax.persistence.Basic; import ... ("Created " + numItems + " in " + (end - begin) + " milliseconds"); System.err. flush (); System.out. flush (); int numberOfMapItems = container.getNumberOfMapItems(em); if(numberOfMapItems != numItems

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

(); m_EntityManager. flush (); m_EntityManager.clear(); m_EntityManager.close(); } After executing code ... .getTransaction().commit(); m_DataKeysCache.clear(); m_EntityManager. flush (); m_EntityManager.clear(); } When we completed import data to database we also using following code for flush all data to DB

Run out of memory

#Batch_Store_ . However the problem is that it seems that even calling flush followed by clear ... () = 5000) {     this.commitCount.set(0); this.em. flush (); this.em.clear(); System.err.println(" Flushing "); } } protected void onCommit() {     this.em.getTransaction

Remove not working

the same transaction. No exception is thrown if em. flush () is invoked before em.remove ... that was deleted. The fix was to do a PersistenceManager. flush () before trying to gather the Extent ... there // needs a flush () here else the next statement throws the Exception get Extent, traverse

Cannot save or update entity on Spring App

(Language guest) { em.persist(guest); em. flush (); em.refresh(guest); return guest; }     ... .persist(guest); em.getTransaction().commit(); em. flush (); em.refresh(guest); em.clear(); em.close ... .getTransaction().begin(); em.merge(guest); em.getTransaction().commit(); em. flush (); em.clear(); em.close

SectionClassifier message in log

.framework.ApplicationException: Error flushing queue at rbccm.felix.objectdb.messaging.ObjectDbMessagePipe. flush (Unknown Source) at rbccm.felix.objectdb.messaging.ObjectDbMessagePipe. flush (Unknown Source

Spring Transactions (@Transactional) within ObjectDB

, Sandeep Sandeep Sandeep Dhamale Build 2.5.2_01 adds support for enabling auto flush by default, by setting a system property:     System.setProperty("objectdb.temp.auto- flush ", "true"); before loading ObjectDB, or as a JVM argument: java -Dobjectdb.temp.auto- flush =true ... support Support

Querys slower when execute a query after every persist

EmbeddedSystems When entity classes are not enhanced every flush  or commit requires ... and should be flushed to the database. If you have more objects in the current transaction it takes more time (i.e. every query execution requires a more expensive flush ). Results of your test

remove & persist in same transaction => Attempt to reuse an existing primary key value

(EntityA.class, 1); em.remove(persitedEntity); // If we call a FLUSH it works. // em. flush ... int id; } } A possible workaround, that this scenario works is to call a flush (see commet

Heap Limit reached although the option 'objectdb.temp.page-file' is activated

although the flush and the GC were invoked regularly. The attachments show the memory heap dump ... .o.OBM.bO(OBM.java:835) ~[na:na] at com.objectdb.o.OBM. flush (OBM.java:765) ~[na:na] btc_es BTC ... , which may work and move modified database pages (after flush ) to a temporary file, but is not

Duplicate Entity class names causes Exception in Query

demands we flush transaction to db if we wish to see its results   q.setFlushMode(FlushModeType.AUTO ... ", cachedKey.toString());//ObjectDb demands we flush transaction to db if we wish to see its results q

EntityManager refresh problem

object has not been stored yet in the database. If we change the code and add a flush operation ... ;     entityManager. flush ();         

Exception on creation when running multithreaded

are executed on flushed changes that have not been committed yet - this may indicate an ObjectDB ... would be very helpful. support Support Yes, the query was executed on flushed changes and I

Query for objects persisted within the same transaction

was persisted. lwalkowski Lukasz Walkowski You may change the default flush mode: https://www.objectdb.com/java/jpa/query/setting# Flush _Mode_setFlushMode support Support Thanks, The part about performance in

Slave server not getting deletes

and disable the L2 data cache. support Support What about calling em. flush (); em.clear ... ; I have done some test cases, and doing a em. flush (); em.clear(); after the query

Need to close+open database for a commit to be taken into account

Hi, I have one case where commit (update of entity in this case) is not taken in account unless database is actually closed and re-open, no error. I tried to use flush instead of close+re-open ... entities) I would like to know if i could try anything else that flush to replace the close+open

calling persist on an object more than once

may be thrown at flush or commit time.) The right way to update an entity doesn't include invocation ... for existing entity in the database is only performed on commit or flush . support Support

evictAll() behavior

one transaction and i want to reclaim memory after commit or even better after flush but  I can imagine that after flush method it could be problematic so i did sth like this  

Access entity version before commit transaction

field it doesn´t. I tried transaction. flush () in combination with transaction.refresh(entity ... ;    transaction. flush ();           

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

+ "...."  );         this.em.persist(guest);   this.em. flush ... ; );   this.em.persist(guest);   this.em. flush ();   System.out.println( "persisted: " 

multi thread application, id field sporadically null

to overcome the problem by using flush (), clear() and refresh()  hgzwicker Hans-Georg Zwicker Good. See also this manual page, regarding setting a flush mode . support Support

Performance issue in a query due to internal calls visitRefs and visitKeyRefs

stepNumberCache;   btc_es BTC EmbeddedSystems It seems that the time is spent on a flush ... memory (before commit) then a flush operation is required before the query can be executed. support

ClassCastException of same object type

) at com.objectdb.o.OBM.bG(OBM.java:800) at com.objectdb.o.OBM. flush (OBM.java:735) at org.sportscoring

problem with lazy loading - unittest project attached

commit). Using EntityManager 's flush during the transaction. support Support

Mismatch client-server protocol prefix

during commit or flush  and should indicate an attempt to persist a new entity object with a primary key

Need help to make this test work and define proper annotations for entities Lists

;  em. flush ();              em

OrphanRemoval not working?

to null. When saving the entity, I'm using merge and flush . The entity object is managed, so I think

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

. flush (); Project project = new Project(); project.setAccount(account); entityManager.persist(project); entityManager. flush (); account = entityManager.find(account); assertNonNull(account.getProjects ... ;   em.persist(account);         em. flush ();   

docker documentation

( ) piped.write(13) piped. flush () sleep(100) piped.println( ) piped.write(13) piped. flush () sleep(100) piped.println( ) piped.write(13) piped. flush () } }   Now here's the strange bit, the license url

Internal exception

during attempt to resolve a mapped by relationship, which required a flush before running the mapped by query (due to changes since last commit/ flush ) in order to retrieve the mapped by instances. The stack trace indicates a failure to cascade persist operation from unknown reason during that flush . Any

Query in nested transaction returns detached entity if lazy-loaded

new objects that have been persisted by other transactions from within a transaction that was flushed ... manages flushed transactions as a snapshot of the database when flush occurs. Build 2.7.4_04 includes

ObjectDB 2.2.6

Fixed the "Attempt to reuse an existing primary key value" after flush bug. Fixed a bug in tracking changes to collections of new flushed entity objects. Fixed generated value (ID allocation) bug with flush and in EJB containers. Fixed a NullPointerException on getObjectsById. Fixed a server

NoResultException: No matching results for a unique query

; modifying the flush mode . Which flush mode are using? support Support Hi, I didn't change it so I am using the default Flush Mode (COMMIT). I don't get why this is happening, it just has happened

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

); } protected void persist(Object o) { try { em.persist(o); if (Global.USE_OBJECTDB) { em. flush (); //ObjectDB ... ) //[ObjectDB 2.6.9_06] javax.persistence.TransactionRequiredException //Attempt to flush a transaction ... .TransactionRequiredException Attempt to flush a transaction when no transaction is active (error 611) at com

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null:

) { em. flush (); //ObjectDB ensure id exists. } if (DO_CHECK_REPEAT_PERSIST) { persisted.add(o); } } catch ... ownedElement) { if (DO_PRE_ FLUSH ) { em. flush (); } if (owner == null) { return false; //TODO? throw

ObjectDB 2.6.8

after flushing a removed modified entity object. Fixed a  NullPointerExeption on new index building . Fixed a NullPointerExeption on flush ( issue #1840 ). Fixed a bug in using temporary files in

[ObjectDB 2.6.0_04] Unexpected exception (Error 990) com.objectdb.jpa.JpaQuery.getResultList

condition of running a query in a transaction with uncommitted flushed updates, where these flushed updates

ObjectDB 2.6.5

Added optional (experimental) support of using clients with different object model versions. Changed references to new flushed objects from ObjectDB to weak references. Cancelled an exception ... of connections specified in configuration. Fixed optimistic lock exception on removing of a flushed modified

ArrayIndexOutOfBoundsException: -1

:945) at com.objectdb.o.OBM.bH(OBM.java:818) at com.objectdb.o.OBM. flush (OBM.java:739) ... 1 ... size. In some situations (e.g. when using flush that is followed by other operations and then commit

Best practise loading big data

is that currently we have no other chance then to cut transitions or flush or clear or close from ... /rollback/ flush /reconnect strategy but it would be definitely better to have such strategies

Persist & remove in same transaction

I have a test case (attached) which performs the following actions: Open a new transaction Create & persist a simple entity object, EntityManager is flushed , Transaction is not committed Count ... Remove the entity object, EntityManager is flushed & cleared, Transaction is not committed Count

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

. flush (EntityManagerWrapper.java:437) at com.greensoft.objectdb.test.mini.ejb.BuilderCommon.persist ... .objectdb.o.OBM.bO(OBM.java:842) at com.objectdb.o.OBM. flush (OBM.java:772) ... 117 more Caused by: java

GC Memory

is flushed and released.  This process is repeated until all 16 segments are loaded. Around the 10th ... too many large objects in one transaction. Note that only commit can release memory, not flush

[ObjectDB 2.6.7_04] Unexpected exception (Error 990)

you for this report. The stack trace indicates an unexpected condition at the end of a flush

File lock exception on odb$

.createEntityManager(EMF.java:176) at rbccm.felix.objectdb.workflow.ObjectDbInstanceContainer. flush (Unknown Source

ObjectDB 2.9.3_01

Fixed issue #2964  part 2 (posts 15-...) - refresh after flush can fail.

Negative snapshot user count exception

during query execution on a flushed transaction, i.e. there are uncommitted changes in

ArrayIndexOutOfBoundException

is invoked, do you have an open transaction? Are there flushed but non committed changes to the database

ObjectDB 2.8.8

#2750 ). Fixed an error on closing an  EntityManager  with non-comitted flushed transaction

ObjectDB 2.6.1

Added an option to disable temporary file deletion . Added support of using entity classes with missing dependent types. Added support of composite indexes with components of different lengths . Fixed a bug in reflection mode in detecting changes after flush ( issue #1602 ). Fixed