ObjectDB Database Search

151-200 of 200 results

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

Attempt to remove a detached entity object (error 613)

wanted to merge it ... Unfortunatly, i get this error : Failed to commit transaction: Attempt to remove a detached entity object (error 613)      at com.objectdb.jpa.EMImpl. commit (EMImpl.java:290) We see in this stack trace that is a commit operation, all right ... So why does it try

Cannot save or update entity on Spring App

.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 ... .setParameter(s, map.get(s)); boolean que = q.executeUpdate() 0; em.getTransaction(). commit (); em.clear(); em

Entity Update - Is the documentation up to date?

transaction.  If I subsequently begin and commit a transaction, all my changes seem to be merged ... and commit a transaction, all my changes seem to be merged automatically. The more conventional way ... because of another change, the array update will also be applied to database on transaction commit . support

alter table

_04] javax.persistence.RollbackException Failed to commit transaction: Failed to get reference value of field field image.MetaSogou.iHei using reflection (error 613) at com.objectdb.jpa.EMImpl. commit ... (OBM.java:821) at com.objectdb.o.OBM.bE(OBM.java:715) at com.objectdb.jpa.EMImpl. commit (EMImpl.java

Saving custom list which implements java.util.List fails

: Exception in thread "main" [ObjectDB 2.4.7_08] javax.persistence.RollbackException Failed to commit ... .MyPoint.list (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:290) at tutorial.TestMyList ... .java:734) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:287) ... 1 more   I thought

WebService : Failed to get reference value of field using enhanced method

.apache.axis2.AxisFault: Failed to commit transaction: Failed to get reference value of field field ... exceptions: org.apache.axis2.AxisFault: Failed to commit transaction: Failed to get reference value ... . With logging I know, that error take place on this line: em.getTransaction(). commit (); As

On ensuring ID available after persist

. before commit ). This may be useful when the primary key value is needed earlier. Hoping ... allocation to commit or flush - multiple IDs for multiple objects can be allocated together in one round ... ; if I commit to ObjectDB I can then adopt performance tuning strategies that suit it better, such as TABLE. webel Dr Darren Kelly

null pointer exception in objectdb-2.4.4_06

I have the following stack trace.  Is this a null ptr in our code or in the object db code? Failed to commit transaction:  (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:279 ... . commit (EMImpl.java:276) CalculationServices Calculation Services The stack trace indicates an attempt

Not able to update records

.getTransaction(). commit () to end the transaction wirh a commit . Stefan Stefan Mair It schould then look like ... (); em.getTransaction(). commit (); // end the transaction On an error you had propably to rollback

Embedded Entity in EmbeddedId not persisted. Error 631 at select.

;   issue: In case 1 transaction is committed , but select fails!  *   *     ... .persist(new A(new AId(new B(1))));         em.getTransaction(). commit ... )));   em.getTransaction(). commit (); or by specifying CascadeType.PERSIST: @Embeddable public

Spring Transactions (@Transactional) within ObjectDB

the persisted object within the same transaction. It is only available after transaction commit . Ideally ... are always available in the same transaction also before commit . But it is unclear which operations ... to miss recent updates, because ObjectDB uses FlushModeType. COMMIT  by default. Try switching

Database Inconsistency or corruption

to commit ");     em.flush();         System.out.println ... why your updates are not committed . Here is a list of possible reasons: Changing objects with no active transaction. Updating objects in a transaction but with no commit . Partial enhancement. Using enhanced classes

Multi-thread access to single EM's entities

.getTransaction(). commit ();         em.getTransaction().begin();   ... .getTransaction(). commit (); // commit t's changes         em.close

How to create dynamic Entity class.

.RollbackException Failed to commit transaction: Failed to get reference value of field field DClass.Field_1 using enhanced method (error 613) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:289 ... .aS(OBM.java:867) at com.objectdb.o.OBM.aG(OBM.java:755) at com.objectdb.jpa.EMImpl. commit (EMImpl

Update more than 10000 entities by an update query fails

); { create10001Elements(emOne); } emOne.getTransaction(). commit (); emOne.close(); EntityManager emTwo = emf ... .createQuery(query); q.executeUpdate(); } emTwo.getTransaction(). commit (); emTwo.close(); EntityManager ... .find(MyModelElement.class, 10001).isVisible()); } emTwo.getTransaction(). commit (); emTwo.close

Extra uninitialised entities spawned on merge()

(). commit ();         Long id = root.getId();      ... ;   em.getTransaction(). commit ();         }    ... ; em.merge(root);         em.getTransaction(). commit ();   

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

() try { transaction.begin() pm.makePersistent( instance ) transaction. commit () } catch( e ) { SiAuto ... .EMImpl. commit (EMImpl.java:274) at javax.jdo.Transaction$ commit .call(Unknown Source) at org.codehaus

Empty temporary dat files in the temp folder

, begin a transaction, do some stuff (find, persist, remove …) and then commit or in the case of errors ... ();   myEntity.name = "DBFILE: " + db;   em.persist(myEntity);   em.getTransaction(). commit ... .getTransaction(). commit ();   em.close();   emf.close(); } @Entity public static class

Error 363 - Failed to read value of inverse relationship

.beforeCompletion(EMImpl.java:338) at com.sun.enterprise.transaction.JavaEETransactionImpl. commit (JavaEETransactionImpl.java:453) at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified. commit ... ; tr. commit ();         } catch (Exception ex) {    

Problem with bidirectional link

in thread "main" [ObjectDB 2.3.6] javax.persistence.RollbackException Failed to commit transaction ... ) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:279) at F380.main(F380.java:20) Caused by: javax ... .java:719) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:276) ... 1 more dhosek Don Hosek Many

Possible issue with String fields

to commit transaction: String index out of range: 5 (error 613) at com.objectdb.jpa.EMImpl. commit ... .OBM.bG(OBM.java:722) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:276) ... 1 more Java Result: 1

Remove not working

but during commit the exception above get's thrown. The weird thing is that it works for some units ... (). commit (); em.close(); em = emf.createEntityManager(); em.getTransaction().begin(); b = em.find(B.class, 1); em.remove(b); A a = em.find(A.class, 2); em.remove(a); em.getTransaction(). commit (); em.close

Schema-Update: Rename superclass and remove one subclass

ChildClassB(); entity3.onlyRecordLastStep = false; em.persist(entity3); em.getTransaction(). commit (); em ... (ChildClassA.class, 2); entityWithID2.mode = "b"; em.getTransaction(). commit (); em.close(); emf.close

Objectdb recovery

that every invocation of commit will not return before data is physically written to the recovery file (bypassing OS cache). This should prevent any possible data loss of committed transactions. support Support

Attempt to begin a new transaction when a transaction is active

.getTransaction(). commit (); System.out.println("Entity persisted"); } }   Persistence unit looks ... to the start a transaction that is already active. Try commenting the begin and commit commands

Immediately retrieve unique id

commit , but pre the id isn't generated yet, and post I would have to somehow resave. mbcladwell Mortimer Cladwell To obtain an automatic id on persist before commit use sequence or table strategy . support Support

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

. commit (JavaEETransactionImpl.java:453) at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified. commit (JavaEETransactionManagerSimplified.java:857) at com.sun.ejb.containers.BaseContainer

Mismatch client-server protocol prefix

.o.OBM.bM(OBM.java:742) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:299) at org.springframework ... during commit or flush  and should indicate an attempt to persist a new entity object with a primary key

Problem with byte arrays in JDO - internal exception

(); Query query = pm.newQuery(Example.class); query.deletePersistentAll(); pm.currentTransaction(). commit ... (). commit (); query = pm.newQuery(Example.class, "name == :name"); List dataList = (List ) query.execute

find() cost unreasonable time!

", iNum, (System.currentTimeMillis()-start)/1000f);     trans. commit ();     em.clear();     trans.begin();    }   }   trans. commit

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

InternalException

Hi, 3 Days before our rollout.. We've just got this when trying to commit persist of a bunch of entities into the DB   Caused by: com.objectdb.o._RollbackException: Failed to commit transaction ... :] at com.objectdb.jpa.EMImpl. commit (EMImpl.java:279) [objectdb-2.4.0.jar:] {..} ... 25 more Caused by: com

Unexpected exception (Error 990)

Exception is thrown on commiting a transaction using this code: transaction.begin(); try ... ..."); //$NON-NLS-1$ repository.setImportProgressPercent(0); transaction. commit (); } finally ... you for this report. The exception is thrown when the server (during commit ) unexpectedly fails

Persist & remove in same transaction

& 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 the number of simple entity objects in the database Commit the transaction The count operations in step 3

NullPointer when accessing entity field

while the EntityManager is manipulated concurrently in another thread (e.g. transaction is committed or ... (if not exists), do the operations using EM in ThreadLocal, on batch end we commit transaction,delete from ... ... Regarding the batch operations, where we usually do update on many objects and after that commit

Issue with cascade delete & add/remove

to clear the collection first, commit that and then remove the Contact? thanks! quasado Alexander Adam ... .persist(contact);         em.getTransaction(). commit ();    ... .getTransaction(). commit ();         printCounts(em);    

Transaction size limit

has no hard limit, our experience shows that we can not commit a transaction exceeding 2GB ... and commit them more often. The tricky part is to find out that we have this situation ... ) at com.objectdb.o.OBM.aH(OBM.java:790) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:292) at eu.extech.db

stress test -> com.objectdb.o.InternalException: null

its connection to the pool. Then to ObjectDB (on the just closed EntityManager ) that had to commit ... ;    em2.getTransaction(). commit ();         em2.close ... .getTransaction(). commit ();         em1.close();         for (int i = 0; i

Pessimistic lock timeout - blocks indefinitely

a LockTimeoutException implying that the first lock wasn't released on the first commit ... LockTimeoutException updater3 LockTimeoutException updater4 changing name from start to updater4 updater4 commited ... to be getting the original copy rather than the commited update and ends up in a RollbackException

GC Memory

too many large objects in one transaction. Note that only commit can release memory, not flush . So bulk load of data into the database should be done in smaller transaction (with begin and commit for each, and possibly also  clear  after commit ) Using classes that are not enhanced. In

NullPointerException in __odbGetNumMember

: 719 PMImpl(EMImpl). commit () line: 276 [local variables unavailable] quasado Alexander Adam Here's the exception message:   Failed to commit transaction: Failed to get numeric value of field