ObjectDB Database Search

101-150 of 200 results

Error 613 - i cant put a list into a Squad object

] javax.persistence.RollbackException Failed to commit transaction: Failed to write the value of field ... ' instance (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:259) at test.Main.main(Main.java:25 ... .java:827) at com.objectdb.o.OBM.bD(OBM.java:711) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:256

Fantom

") .createEntityManager() .with { transaction.begin() persist(new Address(street:"Groovy")) transaction. commit ... .with { getTransaction.begin persist(Address {street = "Fantom"}) getTransaction. commit } } } @Entity class ... : com.objectdb.o._RollbackException: Failed to commit transaction: Failed to get reference value

Different behavior with persist() and queried instances?

persist works though in a sample project, *after* the commit , my list property is correctly enhanced ... : After the commit and persist calls I do close the entity manager so my object gets detached. Between the persist() and the commit () call, my list property seems to be correctly tracked as it includes

Items in list are doubled, when the entity class is not enhanced

.getTransaction().begin(); for(Object o : l){ em.remove(o); } em.getTransaction(). commit (); l = em ... ){ em.remove(o); } em.getTransaction(). commit (); em.getTransaction().begin(); Customer c = new Customer(); em.persist(c); em.getTransaction(). commit (); em.refresh(c); em.getTransaction().begin(); Item i

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 ... . commit ();     } } I had started with the expectation that the cascading annotations ... : Exception in thread "main" [ObjectDB 2.2.6_03] javax.persistence.RollbackException Failed to commit

Optimistic Locking

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

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

Remove a modified entity cause an optimistic lock exception

the object. Committing the changes. The console application is the same but without the flush ... ;  em.getTransaction(). commit ();         em.close();   ... );         em.getTransaction(). commit ();      

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) ... 39 ... :715) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:274) ... 40 more   After this exception

Where Does ObjectDB Block/Lock?

at transaction. commit () if optimistic=true? 5) ObjectDB 1.0 Manual (Support Knowledge Base ObjectDB 1.0 ... , the call to transaction. commit () is where entity object locking actually happens.  Does this mean ... up to the point where transaction. commit () is called? CBE CBE  Does this mean that all other activity/calls

Eclipse plugin problem (using ObjectDB as a separate bundle)

.EMImpl. commit (EMImpl.java:277) at javax.jdo.Transaction$ commit .call(Unknown Source) at org.codehaus ... .objectdb.jpa.EMImpl. commit (EMImpl.java:277)  refers to JPA. Is this suppose to be there?   ... .java:800) at com.objectdb.o.OBM.bE(OBM.java:715) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:274

Object belongs to another EntityManager - ERROR

[stderr] (http--10.23.3.98-8081-5) Failed to commit transaction: Object 'pbdmodel.impl.OrgJedinicaImpl#8 ... ) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:290) 10:29:14,895 ERROR [stderr] (http--10.23.3.98 ... [stderr] (http--10.23.3.98-8081-5) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:287) 10:29:15,134 ERROR

problem with lazy loading - unittest project attached

the transaction should be valid for each repository method, so i guess after the commit the id is assigned ... me to call entityManager.getTransaction().begin()/ commit () and i also can not set the isolation to READ ... for your time and support. chris Christoph Ernst You are welcome. To get an object ID before commit

Memory Leak in EntityManagerFactory ?

with no commit or rollback ). Possibly, this behaviour is to avoid cleaning objects that are still in use ... it. Anyway, if this diagnosis is correct then a possible solution on your side may be to check and commit ... , anyway: if (em.getTransaction().isActive()) em.getTransaction(). commit (); em.close(); Another operation

failure to enforce NOT NULL for java.lang.String

); //try { tr.begin(); em.persist(r); tr. commit (); //} //catch (...) { } em.close(); emf.close ... Failed to commit transaction: Unique constraint (org.wroth.ws.signup.Request[username]) failed: Attempt to reuse an existing value (null) (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:279

Schema Update: class hierarchy change

; entity.value = "value123";   em.persist(entity);   em.getTransaction(). commit ();   ... ; System.out.println(entityWithID1.value);   em.getTransaction(). commit ();   em.close();   ... ); //  em.getTransaction(). commit ();     em.getTransaction().begin();   MyEntity

Updating Entities

;   Main.paygradeDB.getTransaction(). commit ();   return true; } } Each of these Entities ... (); modifyTo.executeUpdate(); Main.paygradeDB.getTransaction(). commit (); System.out.println ... ().begin(); * this.rate = rate; * Main.paygradeDB.getTransaction(). commit (); */ Main.employeeDB

Updating existing persistence entries

don't get it to work. The transparent update needs a transaction to be started and then committed ... )". I can commit the session afterwards and that's it. I mean I don't need to modify the object ... are identified automatically. Of course, you have to begin and commit a transaction (when SAVE

@Unique member combination not working

;    em.getTransaction(). commit ();         } finally ... ;     em.getTransaction(). commit ();         ... to commit transaction: Unique constraint (com.objectdb.test.bug.forum.T1522$Person[name,surname

Some technical questions

an attribute of an object, but don't commit yet. Can another transaction fetch this object ... transaction either commits or rolls back? Since ObjectDB implements online backups, does it implement ... an attribute of an object, but don't commit yet. Can another transaction fetch this object without blocking

how to persist an object twice into two diff. collections of two diff. classes

.persist(tmpComp); } db. commit (); db.closeConnection();          ... Failed to commit transaction: Attempt to reuse an existing primary key value (ch.hsr.gymtastic.domain.Squad:1) (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:259) at ch.hsr.gymtastic

Run out of memory

(). commit (); this.em.clear(); this.em.close();     System.err.println(" Commit ... call of these functions are: onBegin(); for (DatabaseData d : lotsOfData) insertDatabaseData(d); if ( commit ... side in C/S mode) still keeps the changes in memory until commit . As a result, the transaction size

@OneToMany(fetch = FetchType.LAZY) list is always null

(); entityManager.persist(o); transaction. commit (); } catch (NotSupportedException e) { e.printStackTrace(); } catch ... ()); transaction. commit (); } catch (NotSupportedException e) { e.printStackTrace(); } catch ... { transaction.begin(); entityManager.persist(o); transaction. commit (); } catch (Exception e) { e

Not releasing locked MST object

Hi, we have an issue, that upon a call to EMImpl. commit while holding several locks the processing ... .objectdb.o.OBM.aH(OBM.java:790) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:292)   The lock ... ;  - locked (a com.objectdb.jdo.PMImpl)     at com.objectdb.jpa.EMImpl. commit

persisting object with long[][] arrays of array

[][]. It is taking very long to persist and sometimes never finish - it hangs on getTransaction(). commit ... );         emg.getTransaction(). commit ();      ... ;       emg.getTransaction(). commit ();      

zip file or JAR manifest missing

(); } catch (NoResultException e) { item = new ItemList(); item.setTaskid(iTask); } I have to commit ... ; i.setItemname("Beginning");    em.persist(i);    trans. commit (); gzdillon Lai ... .setsUrl(""+iCnt);    em.persist(uri);    trans. commit ();   

Unique contraint with 2 members

sport; ... } The first Unique constraint works. On commit , an exception is thrown if an Account ... ; em.getTransaction(). commit ();         em.getTransaction().begin ... ;    em.getTransaction(). commit ();         em.close

New to Product & Having An Issue

.getTransaction().begin(); em.persist(department); em.getTransaction(). commit (); }catch(Exception e){ e ... { em.getTransaction().begin(); em.remove(this.foundResult); em.getTransaction(). commit (); }catch ... : departments) em.remove(d); em.getTransaction(). commit (); }while(departments.size() 0); }catch

Persisting collection where members are subclasses

get  [ObjectDB 2.3.6] javax.persistence.RollbackException Failed to commit transaction: Attempt ... ); entityManager.getTransaction(). commit (); List savedEntries = entryDao.findAll(); System.err ... ;       em.getTransaction(). commit ();      

Question about modification

;               em.getTransaction(). commit ();       ... ;     em.getTransaction(). commit ();                 ... .getTransaction(). commit ();                     }  

Entity can be found by find() but not by query

Hello, we create an entity in transaction A, commit and close the transaction. After that in ... If transaction B started before transaction A committed , and it stored data using flush , then it may work until it commits on a separate snapshot of the database that includes its own updates but not

InternalException during producer/consumer scenario

.java:595) Caused by: com.objectdb.o._RollbackException: Failed to commit transaction: Unexpected ... .objectdb.o.OBC.onObjectDBError(OBC.java:1386) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:259 ... .o.OBM.bD(OBM.java:711) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:256) ... 4 more Caused by: java

Server out of memory exceptions

.RollbackException Failed to commit transaction: Attempt to commit a transaction after failure in writing ... .objectdb.jpa.EMImpl. commit (EMImpl.java:277) at rbccm.felix.gridservice.admin.dao ... to commit a transaction after failure in writing to database file 'F:\calculationservice\objectdb\dbs

[ObjectDB 2.8.3_01] Unexpected exception (Error 990)

] javax.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 ... .objectdb.o.UserException: Attempt to commit a rollback only transaction at com.objectdb.o

Use temporary files to enable very large transactions

option of using temporary files for flush / commit , as suggested in #6 above (i.e. with heap size ... . This enables us to repeatedly commit on the second database and in case of a fault we can still recover a consistent state.  We run the commit , if the Application consumes a percentage threshold of memory

Unexpected exception (Error 990) com.objectdb.o.InternalException

;       em.getTransaction(). commit ();        ... ;       em.getTransaction(). commit (); // unexpected state    ... .getTransaction(). commit ();         // Keep a strong reference

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

);   entityManager.getTransaction(). commit ();   entityManager.getTransaction().begin ... (). commit ();   entityManager.clear();   parentEntity = entityManager.find(ParentEntity ... ; em.getTransaction(). commit ();         em.getTransaction().begin

cannot delete objects after crash (see issue 2283)

Hans-Georg Zwicker You are using recovery in sync="false" mode: In this mode, commit returns ... improvements: Improving the speed of the sync mode by delaying returning from commit , gathering several concurrent committing transactions together and reducing the number of sync operations by sync

ArrayIndexOutOfBoundsException: -1

stacktrace: [ObjectDB 2.3.5_04] javax.persistence.PersistenceException Attempt to commit a transaction ... : Attempt to commit a transaction after failure in writing to database file 'C:\Users\Home\workspace ... size. In some situations (e.g. when using flush that is followed by other operations and then commit

Blocked by find

.java:719) com.objectdb.jpa.EMImpl. commit (EMImpl.java:276) rbccm.felix.objectdb.workflow ... :662) I'm not sure how to read this but it looks like objectdb is blocked in the commit ... .objectdb.jpa.EMImpl. commit (EMImpl.java:276) at rbccm.felix.objectdb.workflow.ObjectDbDataContainer

Query in nested transaction returns detached entity if lazy-loaded

(entity version = 1) and committed , during the commit an optimistic lock exception is thrown. The version ... : Failed to commit transaction: Optimistic lock failed for object com.btc.ep.base.bl.internal.entities ... .objectdb.jpa.EMImpl. commit (EMImpl.java:289)     at com.btc.ep.base.transactions.internal

Removed entities can be found by query in the same transaction

the database and the change was flushed but not committed yet then the database maintains ... (until commit ). Build 2.7.4_04 fixed it by creating a new snapshot on query execution if changes have been committed after the last flush by other transactions. The new snapshot includes

NoResultException: No matching results for a unique query

are usually (but not always) invisible to the query until commit . This behavior can be changed by  ... am using the default Flush Mode ( COMMIT ). I don't get why this is happening, it just has happened ... . Could you please tell me why I do even get a NoResult* exception within a transaction commit that I've been using

New entity objects are duplicated on merge cascading

;   em.getTransaction(). commit ();         em.close ... ;      em.getTransaction(). commit ();         ... .getTransaction(). commit ();              

NullPointer running multiple client against server

.persist(obj); em.getTransaction(). commit (); } catch(Exception e) { if(em.getTransaction().isActive ... : Failed to commit transaction: $1 at com.objectdb.o.JPE.g(JPE.java:89) at com.objectdb.o.ERR.f(ERR.java:59) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1443) at com.objectdb.jpa.EMImpl. commit (EMImpl.java

new objects not available in mappedBy associations

, even if it is persisted, and even if the transaction is committed ??   dmoshal David Moshal ... object after the transaction is committed (or after the update and before commit , if your EntityManager

Can not have unique index on Byte Array

to commit transaction: Unique constraint (id.co.ecoin.test.objectdb.ObjectDbTest$OdbByteArray[key]) failed: Attempt to reuse an existing value (-121) (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl ... .jpa.EMImpl. commit (EMImpl.java:286) ... 3 more eko EKO FAJAR Unique is implemented by ObjectDB by

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

.getTransaction(). commit (); } catch (Exception ex) { if (findMomentEntity(moment.getDateTime()) != null ... .persist(chart); em.getTransaction(). commit (); } catch (Exception ex) { if (findChart(chart.getId ... = em.merge(chart); em.getTransaction(). commit (); } catch (Exception ex) { String msg = ex

ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

DBVectorStepBlockCollectionImpl was modified and then the transaction will be committed . em.getTransaction(). commit () em.clear() System.gc(); em.getTransaction().begin(); // here we had a break point and did ... . Why the ObjectDB holds instances of MST and PGC after commit ?   btc_es BTC EmbeddedSystems

java.lang.ClassCastException: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU

(92): Failed to commit transaction: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU [ObjectDB 2.7.1] javax.persistence.RollbackException Failed to commit transaction: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:290) at cl