About PESSIMISTIC_READ

21-30 of 200Refresh
Manual
16

Setting and Tuning of JPA Queries

. JPA 2 adds support for pessimistic locking. The setLockMode method sets a lock mode ... execution sets a pessimistic WRITE lock on all the result objects:   List results = query.setLockMode(LockModeType.PESSIMISTIC_WRITE) .getResultList(); Notice that when a query
Forum
10

Pessimistic Lock Timeouts setting

) - and my test case is failing here. The issue is that once the pessimistic lock is in place ... the meantime, I'll use an optimistic lock and fail on stale updates. Support of pessimistic lock timeout ... for com.x.y.z.ProductCodeTracking:1 I have to stress, that the pessimistically locked entity
Issue
9

Pessimistic lock timeout - blocks indefinitely

I've attached a simple test which creates an object then kicks off several threads which each try to update the object. I'm using a pessimistic lock with timeout as follows: MapPESSIMISTIC_WRITE, properties
JPA Doc
9

javax.persistence.EntityManager

. If the entity is found within the persistence context and the lock mode type is pessimistic and the entity ... . If the lock mode type is pessimistic and the entity instance is found but cannot be locked ... PessimisticLockException - if pessimistic locking fails and the transaction is rolled
Forum
8

Pessimistic lock

Pessimistic lock
Forum
8

Error in reading Enum in JPA - Failed to read using reflection

with valid values of Status. This is all done with JPA/EJBs. However, at the time of reading the Object (findById), the system throws an error  com.objectdb.o.UserException: Failed to read the value
Issue
7

Query fails with failed to read

2-3 times per day we have a query that fails with:   Failed to read from file 'F:\Hummingbird ... : Failed to read from file 'F:\Hummingbird\Objectdb\db\coresystemdb.odb' [2018.08.09 10:41:30](2)class ... store.file] LocalFile.read error: 0, 52076077056, 2048 [2018-08-17 19:14:41 #5 store.file
Forum
7

Master database switching to read-only mode, possibly caused by slave failure

, slave became unresponsive and the master switched to read-only mode. By the look of it the slave database failed first and possibly caused the master to switch to read-only mode. The sequence ... .java:133) at java.lang.Thread.run(Unknown Source) The reading continued to work
Forum
6

Failed to read DB file while online backup is running

Hi, it happened already few times (seemingly randomly), that some db operation (read and also write ... ._JdoUserException: Failed to read from file '/path_to_db/dbFile.odb' NestedThrowables: java.io ... to read from file '/path_to_db/dbFile.odb' NestedThrowables: java.lang.NullPointerException
Forum
6

Error 363 - Failed to read value of inverse relationship

Explorer, however when I try to read the Event type, I'm getting the following exception. As far as I ... .persistence.PersistenceException Failed to read the value of field com.pvdc.model.entity.EEvent ... .UserException: Failed to read the value of field com.pvdc.model.entity.EEvent.town using reflection at com