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 224789

Summary: UnsupportedOperationException: This IndexReader cannot make any changes to the index (it was opened with readOnly = true)
Product: python Reporter: rodanmuro
Component: EditorAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED DUPLICATE    
Severity: normal CC: 108adams, aldobrucale, crosati, danfalos, dcheese, digipixel, dobrys, dzb3688, ekeyser, estephanz, estyxx, flotho, furas, goseta, harishom, hrompato, huam, jaska_tl, jbsabmello, joshglendenning, katams, KhArtNJava, kumarldh, luigli, michbarsinai, mr_lou_d, nexoma, Nukex, open64, peredurabefrog, rastakilla4, rodrigorsantos, santy_in, sdedic, sebourban, snilek, stefanocrosta, tskillman, tsullivan, tyjsoft, vinaykrsharma1986, vitor.souza, vitorvillar, xinxiao, ywliu, zosorock
Priority: P2    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter: 182234
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description rodanmuro 2013-01-12 17:47:59 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-10057-on-20130112)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows 7

User Comments:
rodanmuro: When i use the code completation later of use the ctrl spc

rodanmuro: this exception happens when im korking on python and i use the "import" word and the code completation

GUEST: ctrl+space




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.apache.lucene.index.IndexReader.deleteDocuments(IndexReader.java:1375)
   at org.netbeans.modules.gsfret.source.usages.LuceneIndex.store(LuceneIndex.java:636)
   at org.netbeans.modules.gsfret.source.usages.SourceAnalyser.analyseUnitAndStore(SourceAnalyser.java:129)
Comment 1 rodanmuro 2013-01-12 17:48:01 UTC
Created attachment 130140 [details]
stacktrace
Comment 2 Exceptions Reporter 2013-06-05 12:13:30 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=182234
Comment 3 rodrigorsantos 2013-06-29 01:56:53 UTC
Created attachment 136480 [details]
stacktrace

<Please provide a description of the problem or the steps to reproduce>
Comment 4 Exceptions Reporter 2013-06-29 01:56:57 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=182234
Comment 5 aldobrucale 2014-04-30 09:09:06 UTC
Created attachment 147018 [details]
stacktrace

May be related to the Python module
Comment 6 michbarsinai 2014-11-12 14:42:50 UTC
Created attachment 150454 [details]
stacktrace

Running a python project.
Comment 7 michbarsinai 2014-11-12 14:45:51 UTC
Created attachment 150455 [details]
stacktrace

Running a python project. Very simple one (1 file)
Comment 8 Lou Dasaro 2014-12-08 23:22:24 UTC
Created attachment 150970 [details]
stacktrace

Opening an existing Python project
Comment 9 Lou Dasaro 2014-12-09 02:01:24 UTC
Created attachment 150973 [details]
stacktrace

Python project: Changed platform to use 2.5.3. System responded: "Indexing..."
Comment 10 Ralph Ruijs 2015-04-04 13:07:51 UTC

*** This bug has been marked as a duplicate of bug 229836 ***