0 Replies Latest reply on Mar 1, 2013 3:51 PM by mr han

    LockObtainFailedException

    mr han Newbie

      I am getting this exception in 3.X using oracle to store the repo. Any idea, how to fix ?

      pls note, everything seems to work fine (I mean able to save and retreive back).

       

      ERROR: HSEARCH000058: Exception occurred org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target\content\index\nodeinfo\write.lock

      Primary Failure:

          Entity org.modeshape.jcr.query.lucene.basic.NodeInfo  Id a7ca2377505d64/  Work Type  org.hibernate.search.backend.UpdateLuceneWork

      org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@target\content\index\nodeinfo\write.lock

          at org.apache.lucene.store.Lock.obtain(Lock.java:84)

          at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1108)

          at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.createNewIndexWriter(IndexWriterHolder.java:127)

          at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.getIndexWriter(IndexWriterHolder.java:102)

          at org.hibernate.search.backend.impl.lucene.AbstractWorkspaceImpl.getIndexWriter(AbstractWorkspaceImpl.java:119)

          at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.applyUpdates(LuceneBackendQueueTask.java:99)

          at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.run(LuceneBackendQueueTask.java:67)

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

          at java.util.concurrent.FutureTask.run(FutureTask.java:166)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

          at java.lang.Thread.run(Thread.java:722)

       

      ERROR: HSEARCH000072: Couldn't open the IndexWriter because of previous error: operation skipped, index ouf of sync!