Internal Website Search

51-100 of 145 results

On ensuring ID available after persist

as the "internal" managed entity), which under EclipseLink it did. Performing em. flush () immediately after em.persist(e) seems to work (although I'm not sure about the performance hit of flushing every time). This can be encapsulated as a wrapping persist(Object) method that also always flushes

Feature Request for database.obj$ file

a write (or flush ) from the database.obj$ file to database.obj during an opened database connection ... down and sometimes it even takes longer than 3 minutes.We could avoid this if a flush of a database.obj$ file is possible ... (or flush ) from the database.obj$ file to database.obj during an opened database connection

Query can't see recently persisted object

within the same transaction. However if I call flush () on the EntityManager after the persist() the object will be found. Clearly I don't want to call flush () on the EntityManager, as I want the container ... ) { myObject = new MyObject(oid); mem.persist(myObject); // Flush is required for query to find object

Soft Reference Object Cache Recommendation

to upload). I desire to have a JdoBlob2 object cache that flushes automatically when JVM full GC happens ... [] to see that it did indeed get flushed from RAM and this listing after a single full GC.) I expected all byte[]s from ... More information. I did a test to see if evict() would allow the RAM to be flushed .  (e.g., code

Visibility of changes in Transaction is not visible to a JPA QL Query

apart from the EAR JFK John Francis Please check if this is due to the default flush mode . In ... be visible to queries with no flush . Probably you do have a flush in that code. Maybe in the setting ... You are right! I was doing a count with the flush mode auto on... If I don't I can't see any

Remove a modified entity cause an optimistic lock exception

although the former query has cause an automatically flush . Best regards btc_es BTC EmbeddedSystems ... the object. Flushing changes to the database (by running a query in FlushModeType.AUTO ?) Removing the object. Committing the changes. The console application is the same but without the flush

Database Inconsistency or corruption

;   }       em. flush ();       if(em ... ; }       em. flush ();     }     */    ... to commit");     em. flush ();         System.out.println

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

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

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

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

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

");   parentEntity.getChildEntityContainer().put("01", childEntity);   entityManager. flush ... .getChildEntityContainer().remove("01");   entityManager. flush ();   entityManager.getTransaction ... . Any change to entity objects after flush is not detected, as demonstrated by a simpler test case

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

generated a broken database. It might be related to the flush bugs that are being fixed in the last builds ... that you have reported till now are related to using flush extensively (many times until commit). You should avoid ... flush extensively (many times until commit). Before testing build .._10, as a separate topic. Just

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