Internal Website Search

51-100 of 200 results

Spring Transactions (@Transactional) within ObjectDB

Hi, We are using OBD with Spring and transactions are managed by Spring. Our spring service interfaces take list of objects and persist them and the interface service is marked as @ Transactional ... object we don't get it back on lookup. This is with transactions we are not able to retrieve

Attempt to begin a new transaction when a transaction is active

._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o.UserException: Attempt to begin a new transaction when a transaction is active  

Failed to commit transaction: Attempt to commit a rollback only transaction

Anyone know what this means?? Suddenly cropped up. Failed to commit transaction : Attempt to commit a rollback only transaction (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:271) at javax.jdo. Transaction $commit.call(Unknown Source)   dmoshal David Moshal Some fatal exceptions mark

Access entity version before commit transaction

commiting the transaction : 1. Change entity field e.g. from a to b 2. Create a change entry in database ... the transaction before commiting it. How can I achieve this? If I add something to a collection ... field it doesn´t. I tried transaction .flush() in combination with transaction .refresh(entity

Visibility of changes in Transaction is not visible to a JPA QL Query

transactions which is called by a trivial servlet. Inside a UserTransaction I add a number of items then check ... context = new InitialContext();    javax. transaction .UserTransaction tx = (javax. transaction ... transaction I find it, even though I don't set the FlushMode. So in that case I can see the results

javax.transaction.Synchronization with Java SE 10.0.1

: javax/ transaction /Synchronization     at java.base/java.lang.ClassLoader.defineClass1 ... : java.lang.ClassNotFoundException: javax. transaction .Synchronization     at java.base ... resolve) there is found a LoadedModule with this footprint [module java. transaction , location=jrt:/java

Bug with unique constraint exception not resulting in transaction roll back

would expect ObjectDB to roll back the transaction and not persist anything.  ... over more than one transaction . In a managed environment, in which transactions are started and committed ... to see when one transaction is ended and another one begins. if you are sure that there is a problem, you may try

Custom Transaction Manager

Hi, I am trying integrate ObjectDB and Quarkus Framework. Quarkus use Narayana/Arjuna transaction manager. ObjectDB doesn't allow me to configure custom JNDI name or Transaction Manager class ... locations, including: java:/TransactionManager javax. transaction .TransactionManager java:comp

Cannot catch a PersistenceException and continue the transaction

the transaction as one that need to be rolled back. I understood that I can overcome it in several ways but those don't work for me. Begin a new (nested) transaction in another method that will be rolled back instead of the first one- doesn't work. I got a message that it couldn't begin a new transaction

Best setup for huge amount of transactions

transactions for each edit of the entity: try {      DefaultConnectionManager ... to begin a new transaction when a transaction is active [PMImpl] at com.objectdb.o ._PersistenceException ... .java:56) Thanks, Martin itsme Martin Petzold Each transaction takes around 30-100ms at the moment

Rollback of several closed transactions

to split a transaction into several transactions . But then we need actually a rollback for several transactions . Is there any possibility in the ObjectDB to rollback several closed transactions ? btc_es BTC EmbeddedSystems You cannot roll back a committed transaction . In that case, you may want

Transaction isolation support?

have been unable to find any documentation about how transaction isolation is handled. For example: What happens If I am reading data in transaction A, and then transaction B commits while A is reading ... database, A and B would run in their own transaction , and the answer would thus depend

One transaction or two?

is it more efficient to do everything in one transaction or two? Currently my code looks like ... (); } } Should I separate the deletes and adds into separate transactions ? I think I remember reading ... Onstott Actually one transaction eliminates some overhead but may require more RAM if you have many large

Populating entity id before transaction commit

Hi, I have a question about populating auto generated id before transaction commit. We are using OBD with Spring and transactions are managed by Spring. The problem is, that we have custom ... transaction is committed so all returned entities are not populated with ID in this context

Update entity without first opening a transaction

Hi everyone, I want to update an entity in my program without having to open a transaction , do the modifications and commit the transaction . I want to have a managed entity that is in sync ... transactions for updating the content of a database. But if you use Java EE or Spring, the container may manage the transactions automatically. support Support

Is it possible to using JDO and distributed transaction?

I'am new to study JDO. Can and How I use JDO an distributed transaction ?(multiple database ... Reference Documentation       JCA, JTA, and JDO Transactions - Using ... ;    btpka3 ZhangLiangLiang ObjectDB supports distributed transactions and JTA through JPA

Query for objects persisted within the same transaction

I have a question concerning reading uncommited entities with query, within active transaction . For example, I read data from file. Each line contains value of one of entity's attributes ... and persisted withing current transaction is invisible to future queries in this transaction , unless

Performance in large transactions

Hello, we have a performance problem when we use a large transaction . Let's do exactly the same in several transactions the ObjectDB works much faster. In our use case, we create many new entities and between the creations we call a select query. The execution of the query becomes slower at each

remove & persist in same transaction => Attempt to reuse an existing primary key value

the same transaction : first remove additional Data - The special Entity (with id 1) is empty and we remove ... removing an entity object and then in the same transaction persisting another object with the same primary

NegativeArraySizeException on commiting a transaction

Hi, we started to get a java.lang.NegativeArraySizeException from ObjectDB upon changing an object in the DB and committing the transaction . I tried to repair the DB file with Database Doctor ... , so only 20 remained and since then my changing transactions are working fine on that original object

com.objectdb.o._RollbackException: Failed to commit transaction

Check the Exception below: (occurs sometimes, ObjectDB 2.3.6_14) com.objectdb.o._RollbackException: Failed to commit transaction : at com.objectdb.o.JPE.g(JPE.java:89) ~[JPE.class:na] at com.objectdb.o.ERR.f(ERR.java:59) ~[ERR.class:na] at com.objectdb.o.OBC.onObjectDBError(OBC.java:1493) ~[OBC

Failed to commit transaction: Attempt to reuse an existing primary key value (613)

.RollbackException Failed to commit transaction : Attempt to reuse an existing primary key value

SELECT clause (JPQL / Criteria API)

to them when a transaction is active are not propagated to the database. Multiple SELECT Expressions

JPA Entity Fields

for the first time) is 1. For every transaction in which an entity object is modified its version number

Setting and Tuning of JPA Queries

to anyone who uses em , even before committing the transaction (but not to users

Retrieving JPA Entity Objects

The Java Persistence API (JPA) provides various ways to retrieve objects from the database. The retrieval of objects does not require an active transaction because it does not change the content of the database. The persistence context serves as a cache of retrieved entity objects. If a requested

Privacy Policy

of Your data and other personal information. Disclosure of Your Personal Data Business Transactions

What is ObjectDB?

ObjectDB is an Object Oriented Database Management System (ODBMS). It provides all the standard database management services (storage and retrieval, transactions , lock management, query processing, etc.), but it uses an object oriented model to store and manage data. You can easily store ordinary

Running JPA Queries

(); A TransactionRequiredException is thrown if no transaction is active. On success - the executeUpdate method

ObjectDB Object Database Features

- supports full transaction recording and replaying . Automatic diagnosis and repair of corrupted

ObjectDB Overview

The ObjectDB Object Database ObjectDB is a powerful Object-Oriented Database Management System (ODBMS). It is compact, reliable, easy to use and extremely fast. ObjectDB provides all the standard database management services (storage and retrieval, transactions , lock management, query

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

. transaction .isActive(true) Info: ExtRequestBean []: Created: com.greensoft.objectdb.test.mini.entity ... transaction when a transaction is active at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer ... "); if (em.getTransaction() == null) { log_info($i, "em. transaction == null

javax.persistence.EntityManager

transaction , the persistence context remains managed until the transaction completes. Throws ... locking failure causes transaction -level rollback the LockTimeoutException will be thrown if the database ... TransactionRequiredException - if there is no transaction and a lock mode other than NONE is specified or if invoked

Use temporary files to enable very large transactions

We have transactions in which many objects are created. These objects are no longer needed in the current transaction after creation. Unfortunately, we will receive an OutOfMemory exception ... .com/database/forum/921 on post #4 you wrote, that ObjectDB should support very large transactions in

Removed entities can be found by query in the same transaction

Hello, we opened a transaction , load an entity from database and removed this entity by em.remove ... explanation on the change in build 2.7.4_04: ObjectDB uses snapshots in order to isolate transactions , i.e. to hide uncommitted flush changes of one transaction from other transactions , but still make

Query in nested transaction returns detached entity if lazy-loaded

new objects that have been persisted by other transactions from within a transaction that was flushed ... manages flushed transactions as a snapshot of the database when flush occurs. Build 2.7.4_04 includes ... : Failed to commit transaction : Optimistic lock failed for object com.btc.ep.base.bl.internal.entities

Transaction size limit

Although I read in this post https://www.objectdb.com/forum/2606 that the size of the transaction has no hard limit, our experience shows that we can not commit a transaction exceeding 2GB even though the ObjectDB server runs with Xmx15G. We get the following exception in our JDO transaction in

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

a transaction (including the entity manager) the ODB file writer still holds a reference to entities ... DBVectorStepBlockCollectionImpl was modified and then the transaction will be committed. em.getTransaction ... which hold much memory, if we execute several transactions on the identical entity manager

Unexpected exception (Error 990) - Merge with no Transaction

I am frequently having an error when merging a detached object outside of a transaction ... : Attempt to modify an object with no active transaction when NontransactionalWrite is disabled: com ... .IllegalArgumentException Attempt to modify an object with no active transaction when NontransactionalWrite is disabled

Persist & remove in same transaction

I have a test case (attached) which performs the following actions: Open a new transaction Create & 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

Error in production. Failed to commit transaction: Unexpected database state: BTree -152 is not found

.Read .doGet (115 ): Failed to commit transaction : Unexpected database state: BTree -152 is not found [ObjectDB 2.5.5] javax.persistence.RollbackException Failed to commit transaction : Unexpected

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

The following error is reported for objectdb-2.6.9.jar: Failed to commit transaction : Failed to set numeric value of field property com.greensoft.objectdb.test.entity.Element.id using reflection ... " [ObjectDB 2.6.9] javax.persistence.RollbackException Failed to commit transaction : Failed to set numeric

Inefficient memory usage with very large transactions

When a large transaction is committed, ObjectDB increases some internal structures, i.e. allocates more memory, but from that point the structures remain big and the memory is not released even if all the next transactions are small. This problem was found during a heap analysis (see #9 in

Step 4: Add a Servlet Class

the transaction if still active) is closed. The next step is adding a JSP page that will produce the guestbook page output.

Step 1: Create a Maven Web Project

. transaction jta 1.1 javax.servlet servlet-api 2.5 provided javax.servlet.jsp jsp-api 2.1 provided org

Step 1: Create a Maven Web Project

;      javax. transaction      jta      1.1   

Step 4: Add a Servlet Class

. Finally, the database connection (including the transaction if still active) is closed. The next step

Spring MVC JPA Tutorial - NetBeans Project

the transaction type from RESOURCE_LOCAL to JTA in the persistence.xml file. If  a browser is not opened - open it at http://localhost:8080/Guestbook/.

ObjectDB 1.0 Manual

and transactions in JDO. Chapter 6 - Persistent Objects Shows how to store, retrieve, update

javax.jdo.PersistenceManager

application components. It is the factory for Query and Transaction instances, and contains methods ... if a transaction is not active. If a datastore transaction is active, this method verifies ... if flush were called, but it is not required to do so. If an optimistic transaction is active