Internal Website Search

51-94 of 94 results

How to Use a SF with extended Persistence Context?

: Attempt to rollback a transaction when no transaction is active at com.objectdb.o.JPE.g(JPE.java:73 ... .BaseTransaction. rollback (BaseTransaction.java:134) at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate. rollback (BaseTransactionManagerDelegate.java:114) at org.jboss.as.ejb3.tx.CMTTxInterceptor

New to Product & Having An Issue

.printStackTrace(); if(em.getTransaction().isActive()) em.getTransaction(). rollback (); assertTrue(false ... (Exception e){ e.printStackTrace(); if(em.getTransaction().isActive()) em.getTransaction(). rollback ... (Exception e){ e.printStackTrace(); if(em.getTransaction().isActive()) em.getTransaction(). rollback

Memory Leak in EntityManagerFactory ?

with no commit or rollback ). Possibly, this behaviour is to avoid cleaning objects that are still in use ... / rollback any active transaction before closing an EntityManager , which is a good practice ... .getTransaction(). rollback (); }       ... if (manager.isOpen()) {    

Run out of memory

and store it back in the database to access / modify later. I require to be able to rollback changes ... Done"); } protected void onRollback() { this.em.getTransaction(). rollback (); this.em.clear(); this.em.close();     System.err.println(" Rollback Done"); } The general

pesimistic Lock semantic

.currentTransaction().commit(); pm2.currentTransaction(). rollback (); System.out.println(Thread.currentThread ... .currentTransaction(). rollback (); pm1.close(); } if (pm2 != null) { if (pm2.currentTransaction().isActive()) pm2.currentTransaction(). rollback (); pm2.close(); } } }   br Tomasz Tomasz Tomasz Wozniak First

Unable to delete the .odb file programatically

(). rollback (); } if (!pm.isClosed()) {     pm.evictAll();     pm ... (). rollback (); } if (!pm.isClosed()) {     pm.evictAll(); pm.close(); }    

@Unique member combination not working

.getTransaction(). rollback ();             ... (). rollback ();                

Cannot catch a PersistenceException and continue the transaction

in the same transaction. Implement a BMT- it doesn't let me commit and rollback because the server ... thrown to the application server, the transaction is not expected to be marked for rollback . support Support Ohh, I see. Thx! dreckguy Ophir Haramaty

JOD problems regarding detachCopy()

(); }finally { if (pm.currentTransaction().isActive()) pm.currentTransaction(). rollback (); if (!pm ... .currentTransaction(). rollback (); if (!pm.isClosed()) pm.close(); if (!pmf.isClosed())pmf.close(); } }catch

Embedded List

.getTransaction(). rollback ();            

CriteriaQuery .where() for multiple conditions

().commit(); } finally { if (em.getTransaction().isActive()) { em.getTransaction(). rollback (); } em

Multiple Collection Fields not update correctly

(). rollback ();             }       

Optimistic locking: prevent version increment on entity collection attribute

constructor and we are still in the same transaction (before any commit or rollback ). In the debugger

Database Files

(). rollback ();             }      

Date field Index is corrupted due to time change

(). rollback ();         }        

Bug with unique constraint exception not resulting in transaction roll back

does result in a transaction rollback as expected.   However, this same method

Rename Application StringIdentity

StringIdentity("UniqueNew"); transaction.commit(); }finally{ if(transaction.isActive()) transaction. rollback

Attempt to refresh a non managed entity object (error 635)

, am noticing a few weird things in my tests, for example, managed, but objects surviving a rollback . Pretty

Entity has be persistended,but query not fetched?

.getTransaction(). rollback ();         em.close();   

Not able to update records

(); em.getTransaction().commit(); // end the transaction On an error you had propably to rollback

ClassCastException on closing PersistenceManager

.currentTransaction(). rollback ();    }     this.persistenceManager.close();  

NullPointerException while setting a new property value

().isActive()) em.getTransaction(). rollback (); em.close(); } } 3. The code continues with a revalidation

Removing an entity throws exception

;catch (Exception e) {      em.getTransaction(). rollback ();    

EntityTransaction.commit() does not release a pessimistic lock

It appears that EntityTransaction.commit() does not release a pessimistic lock - test code below. I tried it in with the current (2.7.6_01) and older versions (2.6.9, 2.5.7, 2.4.7) with the same result. (side note: EntityTransaction. rollback () releases it correctly) // Account.java package icke

Suspected memleak caused by bad state of EntityManager

.onObjectDBError(OBC.java:1493) ~[OBC.class:na] at com.objectdb.jpa.EMImpl. rollback (EMImpl.java:295) ~[EMImpl

One transaction or two?

.currentTransaction().isActive()) { pm.currentTransaction(). rollback (); } if(!pm.isClosed()) { pm.close

EM close causes an exception

is closed and that transaction is not rollbacked or committed before the close operation. Some additional

Working with a cleared cache

()) { m_persistenceManager.currentTransaction(). rollback (); } }   [ObjectDB 2.2.9] Unexpected

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

.isActive() ) transaction. rollback () if( !pm.isClosed() ) pm.close() } } // end method store

How to use ObjectDB properly in spring boot application?

(). rollback (); } It works but the code has become uggly since I had to use try catch finally blocks

Empty temporary dat files in the temp folder

rollback the transaction and closing the EntityManager. In some scenarios we use additional

Is it possible to commit only specific elements?

some of them and rollback others. Since JPA supports one transaction per thread, you will have to split

Best setup for huge amount of transactions

. this .entityManager. getTransaction (). rollback (); } I already get some errors from time to time

[ObjectDB 2.8.3_01] Unexpected exception (Error 990)

] javax.persistence.RollbackException Failed to commit transaction: Attempt to commit a rollback ... .objectdb.o.UserException: Attempt to commit a rollback only transaction at com.objectdb.o ... a rollback only transaction at com.objectdb.o.MSG.a(MSG.java:64) at com.objectdb.o.OBM.aU(OBM.java:849

UPDATE statemen crash when i put the WHERE clause.

().isActive()) updateEm.getTransaction(). rollback () ; updateEm.close() ; if (em.getTransaction().isActive()) em.getTransaction(). rollback () ; em.close() ; ioan.bodnar Bodnar Ciprian Apparently

Sometimes the ObjectDB throws an internal expeption if a persist() was executed

(and our application), we add for all entities an instance in the database and rollback the transaction. (As ... an instance in the database and rollback the transaction. This step is just to increase

InternalException

. rollback (EMImpl.java:292) at rbccm.felix.objectdb.workflow.ObjectDbInstanceContainer. rollback (Unknown

ArrayIndexOutOfBoundsException on flush

().commit(); } catch(Exception e) { if(em.getTransaction().isActive()) em.getTransaction(). rollback

Unexpected exception (Error 990) - NullPointerException

only stated, that the transaction has been marked for rollback . Why it has been marked was not clear

Unexpected exception (Error 990)

{ if (transaction.isActive()) { transaction. rollback (); } } "repository" is a Entity in database. Stracktrace as

ObjectDB 2.5.0

Added support of nested paths in JOIN FETCH. Added support of persisting collections and maps of user defined types. Added support of Google (Guava) collections. Added support of inheritance of ID fields. Added support of disabling detachment on rollback in JPA. Added support of using entity

java 8 LocalDateTime is not working in query

get an rollback caused by this exception: com.objectdb.o.UserException: Attempt to store an instance

Unexpected exception during query, if entity is not enhanced

whose transaction was rollback . Only the entity model structure of TCVector remains in the main database

NullPointer running multiple client against server

()) em.getTransaction(). rollback (); throw new ApplicationException("Error putting message on objectdb