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 191905 - org.apache.lucene.index.CorruptIndexException: Unknown format version: -9
Summary: org.apache.lucene.index.CorruptIndexException: Unknown format version: -9
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-13 03:27 UTC by Sam.MIT
Modified: 2010-11-19 06:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 153539


Attachments
stacktrace (2.39 KB, text/plain)
2010-11-13 03:27 UTC, Sam.MIT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam.MIT 2010-11-13 03:27:05 UTC
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)
Comment 1 Sam.MIT 2010-11-13 03:27:09 UTC
Created attachment 102945 [details]
stacktrace
Comment 2 Tomas Zezula 2010-11-16 21:48:42 UTC
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.
Comment 3 Tomas Zezula 2010-11-18 09:50:08 UTC
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.
Comment 4 Quality Engineering 2010-11-19 06:17:05 UTC
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