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.
Build: NetBeans IDE 6.9.1 (Build 201007282301) VM: Java HotSpot(TM) Client VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07 OS: Windows XP User Comments: GUEST: no idea what happened. started netbeans with ruby and C-programm open. GUEST: Just opened the netbeans program. Failed during scanning of project. tmannherz: Installed 6.9.1. The exception was reported after I opened the IDE for the first time. Stacktrace: org.apache.lucene.index.CorruptIndexException: Unknown format version: -9 at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:225) at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:275) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:653) at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:272) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1088) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:686)
Created attachment 102945 [details] stacktrace
The older IDE was started on newer user dir (from newer IDE). I will annotate the exception to let user know. According to stack trace the NB 6.9 was started on 7.0 user dir.
jet-main eab7ff5abb0b The older IDE was started on the newer user dir. This does not work from obvious reasons, the older code does not understand newer data structures. The IDE should never be started on the newer userdir. I've added exception annotation to print the current lucene version to easily detect this situations.
Integrated into 'main-golden', will be available in build *201011190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/eab7ff5abb0b User: Tomas Zezula <tzezula@netbeans.org> Log: #191905:org.apache.lucene.index.CorruptIndexException: Unknown format version: -9