About lock

11-20 of 185Refresh
Forum
34

"Attempt to lock a non entity object" error

and then doCancelEdit works fine. Second time I doEdit produces the error "Attempt to lock a non entity ... () { try {     session.beginTransaction();     session.lock(subjectJList.getSelectedValue ... ------------------------------------------------------------- Attempt to lock a non entity object
Forum
34

Where Does ObjectDB Block/Lock?

titled, "Sample JDO Architecture for Follow Up Questions".   Questions about blocking/locking ... blocking/locking so I might adapt to achieve better concurrency. 1) Where are locks when accessing PersistenceManager by multiple threads? 2) Does it lock at PersistenceManager.currentTransaction
Forum
34

pesimistic Lock semantic

Hi   I have tested pesimistic lock and the result was for me unexpected. In the first transaction i ... that lock could not be granted, quite nice but in that moment I wanted commit the first transaction and I also got lock exception. this the test:   public void testPesimisticLock
Forum
33

internal object DB locking in an embedded multi threaded application

locking. When profiling our app in JVisualVm we notice a large number of threads are blocked ... : BLOCKED at com.objectdb.o.MST.Vb(MST.java:1293) - waiting to lock <3a678c0> (a com ... .o.SFL.ah(SFL.java:998) - locked <67fc75bc> (a com.objectdb.o.LFL) at com.objectdb.o.MST.ah
Forum
33

Optimistic lock failed

: Failed to commit transaction: Optimistic lock failed for object com.example.MyEntity#3 (object ... you, Carl     Hi, Locking in general is explained on: http://www.objectdb.com/java/jpa/persistence/lock If you must avoid optimistic lock exceptions you can use pessimistic exceptions
Forum
33

Optimistic Locking

We are having problems with optimistic locking. I made a simple test case to try to induce an optimistic lock. I have two users logged on to our system.  They both read and display the same data ... does not get an optimistic lock exception, so the database has user 2’s change. Do you have a simple
Forum
33

Undeployment of an remote Glassfish application locks objectdb log file

, I can delete the folder. The locked file problem does not exist if I deploy the WebApplication on an local Glassfish server. How can I undeploy the application without getting the logfile locked ... :/" and then it worked to undeploy the webapplication. But now is the logfile at c:/ locked. The problem
Forum
32

Optimistic locking failure

Optimistic locking failure: I am using a Semaphore to force this execution of concurrents ... . Please explain the test output: Sequential=true Lock=WRITE Thread[Thread-2,5,main] READ  A1 version=1 ... version=2 value=30 Sequential=false Lock=WRITE Thread[Thread-6,5,main] READ  A1 version=1 value=0
Issue
32

Pessimistic lock timeout - blocks indefinitely

to update the object. I'm using a pessimistic lock with timeout as follows: Map properties = new HashMap(); properties.put("javax.persistence.lock.timeout", 5000 ... get released at the correct time but thrown a LockTimeoutException implying that the first lock wasn't
Forum
32

EntityTransaction.commit() does not release a pessimistic lock

It appears that EntityTransaction.commit() does not release a pessimistic lock -> test code ... (); } } You are right. Pessimistic locks are not released automatically (by default) on transaction ... after commit and the application can still use them for further processing and update. Locks are released