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 - UnsupportedOperationException: This IndexReader cannot make any changes to the index (it was opened with readOnly = true)
Summary: UnsupportedOperationException: This IndexReader cannot make any changes to th...
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 12:22 UTC by BFB
Modified: 2014-02-20 02:22 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 180707


Attachments
stacktrace (1.85 KB, text/plain)
2013-06-05 12:22 UTC, BFB
Details

Note You need to log in before you can comment on or make changes to this bug.
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