ObjectDB Database Search

51-100 of 200 results

StackOverflowError after commit

We have following issue, if we execute a commit : java.lang.StackOverflowError at com.objectdb.o.ENT.D(ENT.java:411) at com.objectdb.o.ENT.D(ENT.java:499) at com.objectdb.o.ENT.D(ENT.java:417) at com.objectdb.o.ENT.D(ENT.java:499) at com.objectdb.o.ENT.D(ENT.java:499) at com.objectdb.o.ENT.D(ENT

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 but it does not work. So currently there is a dirty close + open + reload on each update

Failed to commit transaction: Java heap space (error 613)

.RollbackException Failed to commit transaction: Java heap space (error 613) We are using ObjectDB 2

Query and commit simultaneously

Is it possible to query and commit on the same persistence manager (i.e. same odb file) at the same time? jake Jake Hang Multithreading is fully supported by ObjectDB, so you can query and update the database at the same time using multiple threads. However, if all the threads share the same

Git seems not to commit objectdb.conf

Git seems not to commit objectdb.conf

Memory error during commit, if @ElementCollection field contains many elements

Memory error during commit, if @ElementCollection field contains many elements

Threaded Test - Failed to commit transaction: Unexpected internal exception

on the "take" commit . I've attached the objectdb log from these runs if that helps. felixobjectdb

Error on commit

I get the following on commit :  (v2.3.7_15) Let me know if you need more info. Caused by: com.objectdb.o.InternalException at com.objectdb.o.InternalException.f(InternalException.java:236) [:] at com.objectdb.o.SPW.aq(SPW.java:109) [:] at com.objectdb.o.PGW.am(PGW.java:210) [:] at com

OutofMemory error with Object DB 2.0

is commited after persisting 200 records and then the same transaction object from the same ... ;PersistentManager after every commit or how do I resolve this issue. Please help ... .objectdb.jpa.EMImpl. commit (EMImpl.java:279) at com.anritsu.eu.database.DatabaseImplementation.storeItem

evictAll() behavior

PersistenceManager - it is useful only to see changes that have been committed by other persistence ... one transaction and i want to reclaim memory after commit or even better after flush but  I ... ; System.out.println("Cache size before commit = " + pm.getManagedObjects().size()); pm.currentTransaction(). commit

Remove an entity which attributes were changed - OptimisticLockException

the entity from the database. After commit the transaction an exception is caused with optimistic ... , it works well. Why the ObjectDB want to commit the changes of the entity although the entity ... and changes it. User 2 retrieves an object, removes it and commit . This should work if the changes

Database size is much larger than expected (x2)

to commit transaction: Java heap space (error 613)         at com.objectdb.jpa.EMImpl. commit (EMImpl.java:277)         at image ... .jpa.EMImpl. commit (EMImpl.java:274)         ... 2 more Question 1

Dirty checking

: Ideally I'd like to capture all objects that were changed after a commit , i.e: after the transaction ... really like to know after a commit what objects changed in the prior commit . in other words a 'post- commit ' listener.  I can guarentee single threaded access to a single EntityManager in an embedded

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

there are now obsolete): -  Issue #1924 - ObjectDB-2.6.9: Failed to commit transaction: Failed ... " [ObjectDB 2.6.9_02] javax.persistence.RollbackException Failed to commit transaction: Failed to locate ... reflection (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:290) at com.greensoft.objectdb.test

Merge Issue: Attempt to reuse an existing primary key value

;   em.getTransaction(). commit ();         em.clear ... (). commit ();         em.clear();        ... ;    em.getTransaction(). commit ();         a = em

Refreshing a dirty object causes permanent JDOOptimisticVerificationException

;              pm.currentTransaction(). commit ();       ... , with the intention of modifying it and committing it.             TestEntity ... ;   // Try to make changes to the entity and commit them.            

Soft Reference Object Cache Recommendation

(until commit ). Your test (at #9 above) does not show strong references from ObjectDB to your Data instances after committing a transaction. Note that we got much smaller heap size (4MB) than reported by ... dump after commit , clicking right and selecting "Show nearest GC root" results with a VisualVM

Date field Index is corrupted due to time change

_14] javax.persistence.RollbackException Failed to commit transaction: (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:302) at com.arunta.base.db.RecordingMetaDataDAO.commitTxn ... :740) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:299) ... 17 more   It will be beneficial

Persist error @ManyToMany how to define correct entities relationships

(prod); em.getTransaction(). commit (); System.out.println("add product id : "+prod.id); } synchronized ... ){ checkActive(); //em.persist(prod); em.merge(prod); em.getTransaction(). commit (); System.out.println("add ... .getTransaction().begin(); } } } lo Hoel I finally managed to get it working by using merge when commit fails

EnumRef jakarta.persistence.LockModeType

value, before T1 has committed or rolled back. Transaction T2 eventually commits successfully; it does not matter whether T1 commits or rolls back and whether it does so before or after T2 commits . P2 ... that row, before T1 has committed . Both transactions eventually commit successfully. Lock modes

InterfaceRef jakarta.persistence.EntityManager

... transaction. commit (); } catch (Exception e) { if (transaction.isActive()) transaction.rollback ... with a persistence context, that is scheduled for removal from the database upon transaction commit ... , which may be set explicitly by calling setFlushMode . For FlushModeType. COMMIT , the persistence context

Internal exception when updating date filed (TemporalType.DATE)

Hello! ObjectDB version 2.5.3_02. I get internal exception when commiting update Date field (javax ... to commit transaction: (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:290 ... .java:729) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:287) ... 2 more My test example attached 

Is it possible to remove parent/child entities without refresh?

.persistence.RollbackException Failed to commit transaction: (error 613)). Do you have an idea? package ... .getTransaction(). commit (); } @AfterClass public static void tearDown() throws Exception {   ... ; entityManager.getTransaction(). commit ();   Assert.assertEquals(4, parentEntity.getChildren().size());  

calling persist on an object more than once

results in an error (613) when the transaction is commited : [ObjectDB 2.2.4] javax.persistence.RollbackException Failed to commit transaction: Attempt to reuse an existing primary key value (common.model.UserSession:13) (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:271) at javax.jdo

Felix, rollback exception, error 613

can begin, persist and commit once, but not twice; even after framework restart. I need to delete ... to /example/ [ObjectDB 2.7.5] javax.persistence.RollbackException Failed to commit transaction ... ;  at com.objectdb.jpa.EMImpl. commit (EMImpl.java:289)     at db.Activator

OptimisticLockException

with these exceptions: [ObjectDB 2.2.5_04] javax.persistence.RollbackException Failed to commit transaction ... A subsequently commits ? 4. Would a valid solution be to explicitly refresh any object before I modify ... - it is acceptable to present an error to the user if it tries to commit changes on a document

pesimistic Lock semantic

an exceptopn that lock could not be granted, quite nice but in that moment I wanted commit the first ... Square(picture2, 20)); pm2.currentTransaction(). commit (); } catch (JDOUserException e1) { pm1.currentTransaction(). commit (); pm2.currentTransaction().rollback(); System.out.println(Thread.currentThread

Selective merge/cascade of detatched entity

with application logic before being committed to the database, so a commit will never fail. Any time an object is modified it is checked that the modification would be valid, and then committed . Lets ... ().begin(); Company company = new Company("new"); em.persist(company); em.getTransaction(). commit

Optimistic locking: prevent version increment on entity collection attribute

;     em.getTransaction(). commit ();        Document tmpDoc = em ... constructor and we are still in the same transaction (before any commit or rollback). In the debugger ... a document, adds 2 Readings to it and commits the transaction. - I then clear the EntityManager so I

InterfaceRef jakarta.persistence.EntityTransaction

()} is true Since: JPA 1.0 void commit () Commit the current resource transaction, writing any unflushed ... RollbackException - if the commit fails Since: JPA 1.0 boolean getRollbackOnly () Determine

EnumRef jakarta.persistence.FlushModeType

. On the other hand, if COMMIT is set, the effect of updates made to entities in the persistence context on queries ... at query execution. Since: JPA 1.0 COMMIT Flushing to occur at transaction commit . The provider may flush

InterfaceRef jakarta.persistence.EntityManagerFactory

is committed and the result of the function is returned. If the function does throw an exception ... an exception, this transaction is committed . If the function does throw an exception, the transaction

ClassRef jakarta.persistence.LockTimeoutException

part of an API call, at, flush or at commit time. The current transaction, if one is active

ClassRef jakarta.persistence.PessimisticLockException

at commit time. The current transaction, if one is active, is marked for rollback. Since: JPA 2.0 Public

ClassRef jakarta.persistence.OptimisticLockException

at commit time. The current transaction, if one is active, will be marked for rollback

EntityManager.persist(entity) - JPA Method

EntityExistsException} or another {@code PersistenceException} may be thrown at flush or commit time

ClassRef jakarta.persistence.RollbackException

. See Also: EntityTransaction. commit () Since: JPA 1.0 Public Constructors RollbackException () Constructs a new

EntityManagerFactory.runInTransaction(work) - JPA Method

function returns without throwing an exception, this transaction is committed . If the function does

EntityManagerFactory.callInTransaction(work) - JPA Method

returns without throwing an exception, this transaction is committed and the result of the function

EntityManager.runWithConnection(action) - JPA Method

action should close any resources it creates, but should not close the connection itself, nor commit or

EntityManager.callWithConnection(function) - JPA Method

the connection itself, nor commit or roll back the transaction. If the given action throws an exception

EntityManager.getTransaction() - JPA Method

JPA Method in jakarta.persistence.EntityManager EntityTransaction getTransaction () Return the resource-level EntityTransaction object. The EntityTransaction instance may be used serially to begin and commit multiple transactions. Return: EntityTransaction instance Throws: IllegalStateException - if invoked on a JTA entity manager Since: JPA 1.0

ClassRef jakarta.persistence.EntityExistsException

may be thrown at flush or commit time. The current transaction, if one is active and the persistence context

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

in NetBeans8.1 and then: Set DO_FORCE_ COMMIT _AFTER_BUILD = false in com.greensoft.objectdb ... DO_FORCE_ COMMIT _AFTER_BUILD = false in com.greensoft.objectdb.test.mini.ejb.ExtProjectBuilder ! Then Clean ... }, * which is controlled by {@link ExtConfigBean#DO_BUILD_TWO_PROJECTS}. */ final static boolean DO_FORCE_ COMMIT

Best practise loading big data

. One is to stupidly commit the transaction after a certain number of read accesses (every 10000 read access to commit and open a new transaction). But this does not sound like a nice solution. We tried to detach ... . Could you please repair the code? You mentioned commit as a workaround. It is unclear if this operation includes

InternalException

.RollbackException Failed to commit transaction: (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:279) at rbccm.felix.objectdb.workflow.ObjectDbInstanceContainer. commit (Unknown Source) at rbccm.digest ... .bG(OBM.java:719) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:276) ... 9 more felixobjectdb Richard

Tracking changes to new collections (in enhancement mode) after flush

operations being performed in between. Once the transaction is committed , the issue is that the last ... .getTransaction(). commit ();         em.clear();       ... ); //------------------------------- //------------------------------- em.getTransaction(). commit (); em.close(); em = emf

Unexpected Exception (java.lang.NullPointerException: Cannot invoke "com.objectdb.o.ORS.Z9())

In one of our applications, we encounter an unexpected problem. Commits fail with the following exception: com.objectdb.o.UserException: Failed to commit transaction: Cannot invoke "com.objectdb.o.ORS.Z9()" because " " is null at com.objectdb.o.MSG.a(MSG.java:77) at com.objectdb.jpa.EMImpl. commit

missing merger

accessing/ committing that object hgzpincher Hans-Georg Zwicker by the way, we are using ... before that transaction was committed . Assuming there are no errors in the database itself (as in ... changes - Does your application/test use  flush (without or with later commit )? In the page

ArrayIndexOutOfBoundsException on flush

(). commit (); } catch(Exception e) { if(em.getTransaction().isActive()) em.getTransaction().rollback ... seems to be related but unfortunately I dont have a full stack trace as the app went into a commit retry loop which blew out the logs: Attempt to commit a transaction after failure in writing to database file 'F