Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with lock exception

583967Jun 19 2007 — edited Sep 14 2007
Hello,

i m french excsue my english ;)

i m using berkeleydb version 3.2.21, it work fine, i can write, delete, update information but after many time , for no reason i obtain this error when i m trying to update entry :


Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sleepycat.je.DeadlockException: (JE 3.2.21) Lock expired. Locker 956207_TP-Processor24_Txn: waited for lock on database=store node=2234336 type=WRITE grant=WAIT_NEW timeoutMillis=500 startTime=1182273491517 endTime=1182273492025
Owners: [<LockInfo locker="953328_TP-Processor24_Txn" type="WRITE"/>]
Waiters: []

at org.sharengo.datastore.impl.jdbm.JEContentStore.storeInDb(JEContentStore.java:216)
at org.sharengo.datastore.impl.jdbm.JEContentStore.store(JEContentStore.java:207)
at org.sharengo.content.process.Impl_ContentManagerPrc.store(Impl_ContentManagerPrc.java:221)
... 26 more
Caused by: java.lang.RuntimeException: com.sleepycat.je.DeadlockException: (JE 3.2.21) Lock expired. Locker 956207_TP-Processor24_Txn: waited for lock on database=store node=2234336 type=WRITE grant=WAIT_NEW timeoutMillis=500 startTime=1182273491517 endTime=1182273492025
Owners: [<LockInfo locker="953328_TP-Processor24_Txn" type="WRITE"/>]
Waiters: []

at org.sharengo.datastore.impl.jdbm.JEContentStore.storeInDb(JEContentStore.java:216)
at org.sharengo.datastore.impl.jdbm.JEContentStore.contentToEntry(JEContentStore.java:240)
at org.sharengo.datastore.impl.jdbm.JEContentStore.storeInDb(JEContentStore.java:213)
... 28 more
Caused by: com.sleepycat.je.DeadlockException: (JE 3.2.21) Lock expired. Locker 956207_TP-Processor24_Txn: waited for lock on database=store node=2234336 type=WRITE grant=WAIT_NEW timeoutMillis=500 startTime=1182273491517 endTime=1182273492025
Owners: [<LockInfo locker="953328_TP-Processor24_Txn" type="WRITE"/>]
Waiters: []

at com.sleepycat.je.txn.LockManager.lock(LockManager.java:266)
at com.sleepycat.je.txn.Txn.lockInternal(Txn.java:291)
at com.sleepycat.je.txn.Locker.lock(Locker.java:257)
at com.sleepycat.je.dbi.CursorImpl.lockLNDeletedAllowed(CursorImpl.java:2349)
at com.sleepycat.je.tree.Tree.insert(Tree.java:2567)
at com.sleepycat.je.dbi.CursorImpl.putLN(CursorImpl.java:988)
at com.sleepycat.je.dbi.CursorImpl.put(CursorImpl.java:1011)
at com.sleepycat.je.Cursor.putAllowPhantoms(Cursor.java:861)
at com.sleepycat.je.Cursor.putNoNotify(Cursor.java:798)
at com.sleepycat.je.Cursor.putInternal(Cursor.java:752)
at com.sleepycat.je.Database.putInternal(Database.java:662)
at com.sleepycat.je.Database.put(Database.java:608)
at org.sharengo.datastore.impl.jdbm.JEContentStore.storeInDb(JEContentStore.java:214)
... 30 more


instead of this error, i can add, search data but when i m select user and update his information i have this error . I dont no realy where i can close the lock or doing something to resolve this problem to don t have it in the future.
a solution is to stop tomcat, remove lucene lock file and restart tomcat and all works fine but i cant stop/start tomcat all the time i would like to solve this problem in java.

if someone can help me :)

thanks by advance ;)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2007
Added on Jun 19 2007
9 comments
5,361 views