PaulWoooong / luke

Automatically exported from code.google.com/p/luke
0 stars 0 forks source link

String index out of range: -1000746248 #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
==>Open index files which built before with luke-0.9.9.1.jar

What is the expected output? What do you see instead?
==>Exception: String index out of range: -1000746248
==>It should be open normally, and can be opened by luke-0.8.1.jar

What version of the product are you using? On what operating system?
==>Lucene.Net 2.3.2.1

Original issue reported on code.google.com by floyd...@gmail.com on 7 Dec 2009 at 6:05

GoogleCodeExporter commented 9 years ago
===Stack trace===
java.lang.StringIndexOutOfBoundsException: String index out of range: -100074624
8
        at java.lang.String.checkBounds(Unknown Source)
        at java.lang.String.<init>(Unknown Source)
        at org.apache.lucene.store.IndexInput.readString(IndexInput.java:127)
        at org.apache.lucene.index.FieldInfos.read(FieldInfos.java:356)
        at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:71)
        at org.apache.lucene.index.SegmentReader$CoreReaders.<init>(SegmentReade
r.java:116)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:638)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:599)
        at org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:1
04)
        at org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java
:76)
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo
s.java:704)
        at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:69)

        at org.apache.lucene.index.IndexReader.open(IndexReader.java:476)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:375)
        at org.getopt.luke.Luke.openIndex(Unknown Source)
        at org.getopt.luke.Luke.openOk(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at thinlet.Thinlet.invokeImpl(Unknown Source)
        at thinlet.Thinlet.invoke(Unknown Source)
        at thinlet.Thinlet.handleMouseEvent(Unknown Source)
        at thinlet.Thinlet.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.StringIndexOutOfBoundsException: String index out of range: -100074624
8
        at java.lang.String.checkBounds(Unknown Source)
        at java.lang.String.<init>(Unknown Source)
        at org.apache.lucene.store.IndexInput.readString(IndexInput.java:127)
        at org.apache.lucene.index.FieldInfos.read(FieldInfos.java:356)
        at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:71)
        at org.apache.lucene.index.SegmentReader$CoreReaders.<init>(SegmentReade
r.java:116)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:638)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:599)
        at org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:1
04)
        at org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java
:76)
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo
s.java:704)
        at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:69)

        at org.apache.lucene.index.IndexReader.open(IndexReader.java:476)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:375)
        at org.getopt.luke.Luke.openIndex(Unknown Source)
        at org.getopt.luke.Luke.openOk(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at thinlet.Thinlet.invokeImpl(Unknown Source)
        at thinlet.Thinlet.invoke(Unknown Source)
        at thinlet.Thinlet.handleMouseEvent(Unknown Source)
        at thinlet.Thinlet.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.StringIndexOutOfBoundsException: String index out of range: -100074624
8
        at java.lang.String.checkBounds(Unknown Source)
        at java.lang.String.<init>(Unknown Source)
        at org.apache.lucene.store.IndexInput.readString(IndexInput.java:127)
        at org.apache.lucene.index.FieldInfos.read(FieldInfos.java:356)
        at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:71)
        at org.apache.lucene.index.SegmentReader$CoreReaders.<init>(SegmentReade
r.java:116)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:638)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:599)
        at org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:1
04)
        at org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java
:76)
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo
s.java:704)
        at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:69)

        at org.apache.lucene.index.IndexReader.open(IndexReader.java:476)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:375)
        at org.getopt.luke.Luke.openIndex(Unknown Source)
        at org.getopt.luke.Luke.openOk(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at thinlet.Thinlet.invokeImpl(Unknown Source)
        at thinlet.Thinlet.invoke(Unknown Source)
        at thinlet.Thinlet.handleMouseEvent(Unknown Source)
        at thinlet.Thinlet.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Original comment by floyd...@gmail.com on 7 Dec 2009 at 6:27

GoogleCodeExporter commented 9 years ago
This problem has been reported a few times. Apparently indexes created with
Lucene.Net are no longer compatible with Lucene-Java, and most likely there is
nothing we can do about this in Luke. Please report this to the Lucene.Net 
team, and
be sure to include that stack trace.

Original comment by sig...@gmail.com on 7 Dec 2009 at 11:21