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 230785

Summary: UnsupportedOperationException: This IndexReader cannot make any changes to the index (it was opened with readOnly = true)
Product: contrib Reporter: BFB
Component: CodeAssignee: issues@contrib <issues>
Status: NEW ---    
Severity: normal CC: dcheese, estephanz, estyxx, garet, sdedic
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 180707
Attachments: stacktrace

Description BFB 2013-06-05 12:22:43 UTC
This bug was originally marked as duplicate of bug 195721, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build nbms-and-javadoc-11079-on-20130605)
VM: OpenJDK 64-Bit Server VM, 23.7-b01, OpenJDK Runtime Environment, 1.7.0_21-b02
OS: Linux

User Comments:
BFB: outside the IDE, added a new map to the project folder and moved some files to it that were open in Netbeans




Stacktrace: 
java.lang.UnsupportedOperationException: This IndexReader cannot make any changes to the index (it was opened with readOnly = true)
   at org.apache.lucene.index.ReadOnlySegmentReader.noWrite(ReadOnlySegmentReader.java:23)
   at org.apache.lucene.index.ReadOnlyDirectoryReader.acquireWriteLock(ReadOnlyDirectoryReader.java:43)
   at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:1339)
   at org.netbeans.modules.gsfret.source.usages.LuceneIndex.store(LuceneIndex.java:633)
   at org.netbeans.modules.gsfret.source.usages.SourceAnalyser.delete(SourceAnalyser.java:141)
   at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker.delete(RepositoryUpdater.java:1634)
Comment 1 BFB 2013-06-05 12:22:45 UTC
Created attachment 135385 [details]
stacktrace
Comment 2 Svata Dedic 2013-06-06 08:19:11 UTC
gsfret module in the contrib repository, not a part of the standard build.
Comment 3 Exceptions Reporter 2014-02-17 22:31:30 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=180707