This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 175702 - org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@C:\Users\Rafael Costa\.netbeans\6.8beta\var\cache\index\s2\javascript\8\1\nb-lock-write.lock
Summary: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: Sim...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-29 19:02 UTC by rafael_sc
Modified: 2010-01-24 08:48 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 161170


Attachments
stacktrace (2.38 KB, text/plain)
2009-10-29 19:02 UTC, rafael_sc
Details
stacktrace (2.40 KB, text/plain)
2009-11-09 23:13 UTC, fatboldcyclop
Details
stacktrace (2.67 KB, text/plain)
2009-11-17 01:44 UTC, _ rkusterer
Details
stacktrace (3.89 KB, text/plain)
2009-11-20 06:14 UTC, adeanva
Details
stacktrace (2.41 KB, text/plain)
2009-12-14 19:42 UTC, jacobc
Details
stacktrace (1.95 KB, text/plain)
2009-12-19 09:10 UTC, schkovich
Details
stacktrace (2.16 KB, text/plain)
2009-12-19 13:22 UTC, schkovich
Details
stacktrace (2.41 KB, text/plain)
2009-12-29 03:42 UTC, schkovich
Details
stacktrace (2.30 KB, text/plain)
2010-01-05 05:06 UTC, jbsabmello
Details
stacktrace (2.19 KB, text/plain)
2010-01-05 10:22 UTC, jonathanramsey
Details
stacktrace (2.29 KB, text/plain)
2010-01-13 17:34 UTC, jacobc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rafael_sc 2009-10-29 19:02:29 UTC
This issue was originally marked as duplicate of issue 173562, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE 6.8 Beta (Build 200910212001)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows 7, 6.1, x86

User Comments:
rafael_sc: creating divs on oho module



Stacktrace: 
org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@C:\Users\Rafael Costa\.netbeans\6.8beta\var\cache\index\s2\javascript\8\1\nb-lock-write.lock
        at org.apache.lucene.store.Lock.obtain(Lock.java:85)
        at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1070)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:686)
        at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex.flush(LuceneIndex.java:598)
        at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex.access$700(LuceneIndex.java:87)
        at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex$1.run(LuceneIndex.java:162)
Comment 1 rafael_sc 2009-10-29 19:02:37 UTC
Created attachment 90232 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-10-29 19:02:44 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=161170
Comment 3 Vitezslav Stejskal 2009-10-30 15:17:58 UTC
Umm, interesting, first there was:

org.apache.lucene.store.LockReleaseFailedException: failed to delete C:\Users\Rafael
Costa\.netbeans\6.8beta\var\cache\index\s2\javascript\8\1\nb-lock-write.lock
	at org.apache.lucene.store.SimpleFSLock.release(SimpleFSLockFactory.java:149)
	at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1668)
	at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1602)
	at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1578)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex.flush(LuceneIndex.java:654)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex.access$700(LuceneIndex.java:87)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex$1.run(LuceneIndex.java:162)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex$1.run(LuceneIndex.java:142)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndexManager.writeAccess(LuceneIndexManager.java:72)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex.store(LuceneIndex.java:142)
	at org.netbeans.modules.parsing.spi.indexing.support.IndexingSupport$MyAccessor.store(IndexingSupport.java:239)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.delete(RepositoryUpdater.java:1529)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$DeleteWork.getDone(RepositoryUpdater.java:2113)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:1884)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:3355)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:3297)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:574)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)


... later on followed by:

Caused: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@C:\Users\Rafael
Costa\.netbeans\6.8beta\var\cache\index\s2\javascript\8\1\nb-lock-write.lock
	at org.apache.lucene.store.Lock.obtain(Lock.java:85)
	at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1070)
	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:686)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex.flush(LuceneIndex.java:598)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex.access$700(LuceneIndex.java:87)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex$1.run(LuceneIndex.java:162)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex$1.run(LuceneIndex.java:142)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndexManager.writeAccess(LuceneIndexManager.java:72)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LuceneIndex.store(LuceneIndex.java:142)
	at org.netbeans.modules.parsing.spi.indexing.support.IndexingSupport$MyAccessor.store(IndexingSupport.java:239)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:1661)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.scanFiles(RepositoryUpdater.java:1838)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.getDone(RepositoryUpdater.java:2016)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:1884)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:3355)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:3297)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:574)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)

I'm not sure why the first exception was thrown. It could have been thrown if the indexed hadn't been locked, but the
second exception indicates that this was not the case.
Comment 4 fatboldcyclop 2009-11-09 23:13:12 UTC
Created attachment 90651 [details]
stacktrace
Comment 5 _ rkusterer 2009-11-17 01:44:17 UTC
Created attachment 91152 [details]
stacktrace
Comment 6 adeanva 2009-11-20 06:14:29 UTC
Created attachment 91423 [details]
stacktrace
Comment 7 jacobc 2009-12-14 19:42:55 UTC
Created attachment 92567 [details]
stacktrace

Occurs immediately after opening Netbeans
Comment 8 Exceptions Reporter 2009-12-14 19:43:07 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=161170
Comment 9 Vitezslav Stejskal 2009-12-15 04:15:46 UTC
I'll have a look. It's not that dramatic, there were many exceptions in 6.8beta -> P2.
Comment 10 schkovich 2009-12-19 09:10:04 UTC
Created attachment 92780 [details]
stacktrace

Changing task filter to show only TODO
Comment 11 schkovich 2009-12-19 13:22:07 UTC
Created attachment 92783 [details]
stacktrace

I was replacing part of JavaScript embedded in html template.
Comment 12 schkovich 2009-12-29 03:42:29 UTC
Created attachment 92973 [details]
stacktrace

Starting IDE
Comment 13 jbsabmello 2010-01-05 05:06:47 UTC
Created attachment 93076 [details]
stacktrace

Opening the IDE
Comment 14 jonathanramsey 2010-01-05 10:22:53 UTC
Created attachment 93082 [details]
stacktrace

I had just added a dependency to a Maven POM file.
Comment 15 jacobc 2010-01-13 17:34:20 UTC
Created attachment 93268 [details]
stacktrace

Trying to open a project
Comment 17 Quality Engineering 2010-01-24 08:48:29 UTC
Integrated into 'main-golden', will be available in build *201001240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/af5652e5fab5
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #175702: perform index consistency checks at the beginning of a source root scan