ObjectDB Database Search

101-150 of 200 results

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

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

RT Java application recording into 100DB run OOM after a few hours.

.java:1484) com.objectdb.jpa.EMImpl. commit (EMImpl.java:290) DB.ActualDB.writeToDB(ActualDB.java:109) DB ... ()=com.objectdb.o._RollbackException: Failed to commit transaction: GC overhead limit exceeded e

Storing objects problem

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

Does ObjectDB support lazy loading?

.persist(a); em.getTransaction(). commit (); Long id = a.id; em.close(); em = emf.createEntityManager ... .persist(a);          em.getTransaction(). commit ();   

ObjectDB CRUD Examples

.class); List allFoo = (List ) criteriaQuery.select(root); em.getTransaction(). commit (); em.close ... .getTransaction(). commit (); em.close(); emf.close(); return allFoo; } ThreaT Ashton Hogan You can try

Problem with byte arrays in JDO - ClassCastException

(). commit ();         pm.currentTransaction().begin();     ... (). commit ();         query = pm.newQuery(Example.class, "name

newbie - lots of exeptions

.transaction.JavaEETransactionImpl. commit (JavaEETransactionImpl.java:527) at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified. commit (JavaEETransactionManagerSimplified.java:855) at com.sun

Unexpected behaviour upon update. Bug?

.persist(simple); em.getTransaction(). commit (); simple.v = 4; em.getTransaction().begin(); simple = em ... one EntityManager instance are invisible in other  EntityManager instances until commit , but visible in

Database Files

Hi.  According the docs, "Every transaction commit is first written to the recovery file and then to the database".  During my testing, every time I make a transaction the recovery file ... .getTransaction(). commit ();             return t;  

multiple different applications access one odb file

it. We can contribute code as well but can't at the moment commit much time to the project, will need to wait for the new project to start to commit more resources. Please advise on next steps.  Kind regards

BTree 8 is not found at com.objectdb.o.JPE.d(JPE.java:91)

._RollbackException: Failed to commit transaction: Unexpected database state: BTree 8 is not found at com ... .onObjectDBError(OBC.java:1582) at com.objectdb.jpa.EMImpl. commit (EMImpl.java:289) at server.database.AuDatabase

Merge with Parent/Child entities not possible

; entityManager.getTransaction(). commit (); } @After public void tearDown() throws Exception {   ... .getTransaction(). commit ();   entityManager.refresh(parentEntity);   Assert.assertEquals(1

Bug with unique constraint exception not resulting in transaction roll back

over more than one transaction. In a managed environment, in which transactions are started and committed ... is where the persistence is happening, and so I think the transaction should not be committed no matter

Failed to read DB file while online backup is running

.jpa.EMImpl. commit (EMImpl.java:302) ... 9 more Caused by: java.io.IOException: Stream Closed at java ... .objectdb.jpa.EMImpl. commit (EMImpl.java:299) ... 9 more Stacktrace 2: pos = 3003074560 length = 2048 Caused

"Attempt to lock a non entity object" error

by a commit failure." Quite different behavior from what I expected and would prefer.  ... );         em.getTransaction(). commit ();     

Insert time increases as db grows.

one entity have index on String column. Entities are not enhanced and inserts are committed in a separate ... after every commit , to avoid further performance loss over time. support Support Well, I'm using Spring Data JPA

IN expression in a Criteria Query

"));         em.getTransaction(). commit ();      ... MyEntity("c"));         em.getTransaction(). commit ();   

Unable to persist TreeMap

;  em.persist(p);         em.getTransaction(). commit ... (association); em.persist(pc); em.getTransaction(). commit (); emf.close(); //------- emf = Persistence

[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

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

I can't get cascading delete to work in JDO

.currentTransaction(). commit ();         pm.currentTransaction().begin();         delete(pm);         pm.currentTransaction(). commit ();  

Inverse OneToMany Mapping and EmbeddedId

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

NPE on em.createQuery(query).getResultList()

the exception by sending a new entity object with no allocated ID (before commit ) as a query ... ).getResultList();         em.getTransaction(). commit ();