From: Gary L. <gar...@en...> - 2006-11-17 01:07:23
|
My Cocoon app has a QuartzScheduler job which adds/deletes eXist resources. Users can also add/delete resources when navigating the app. (using eXist-1.0) I haven't run into this previously, but now I'm getting an occasional lock which stops the job and the browser. After about 5 minutes the job will begin processing again. It could be that I am not managing the adds/deletes properly but I'm not sure. Here's the exception: WARN [http-8080-Processor23] exist.collections.Collection 2006-11-16 19:43:02,640 - time out while acquiring a lock org.exist.util.LockException: time out while acquiring a lock at org.exist.storage.lock.ReentrantReadWriteLock.acquire(ReentrantReadWriteLock .java:94) at org.exist.collections.Collection.getDocuments(Collection.java:358) at org.exist.collections.Collection.allDocs(Collection.java:338) at org.exist.collections.Collection.allDocs(Collection.java:319) at org.exist.xquery.functions.ExtCollection.eval(ExtCollection.java:129) at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:49) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:56) at org.exist.xquery.PathExpr.eval(PathExpr.java:216) at org.exist.xquery.ForExpr.eval(ForExpr.java:139) at org.exist.xquery.BindingExpression.eval(BindingExpression.java:109) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:56) at org.exist.xquery.PathExpr.eval(PathExpr.java:216) at org.exist.xquery.EnclosedExpr.eval(EnclosedExpr.java:66) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:56) at org.exist.xquery.PathExpr.eval(PathExpr.java:216) at org.exist.xquery.ElementConstructor.eval(ElementConstructor.java:233) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:56) at org.exist.xquery.PathExpr.eval(PathExpr.java:216) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:56) at org.exist.xquery.XQuery.execute(XQuery.java:201) at org.exist.xquery.XQuery.execute(XQuery.java:171) at org.exist.xmldb.LocalXPathQueryService.execute(LocalXPathQueryService.java:1 85) at org.exist.cocoon.XQueryGenerator.generate(XQueryGenerator.java:328) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP ipeline(AbstractProcessingPipeline.java:575) .................. WARN [http-8080-Processor23] storage.lock.ReentrantReadWriteLock 2006-11-16 19:43:04,421 - Possible lock problem: thread Thread[http-8080-Processor23,5,main] released a lock it didn't hold. Either the thread was interrupted or it never acquired the lock. The lock was owned by: Thread[Thread-40,5,QuartzScheduler:Cocoon] Could there be something wrong in the way I'm working with the collection objects that could be causing this? Do I need to make sure only one collection.storeResource is occuring from the app? Thanks, Gary |