java.lang.ArrayIndexOutOfBoundsException: -1

JIRA | brij | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I am using the bobo api. zoie-2.0.0 jar is bundled with this. I am getting folowing exception 6 Jan 2013 12:28:40,902 ERROR proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader@683555b8 proj.zoie.impl.indexing.internal.LuceneIndexDataLoader - Problem copying segments: Cannot overwrite: C:\D-Drive\ProfilerNewJourney\releases\ab\FacetIndexFinal\event\_0.fdt java.io.IOException: Cannot overwrite: C:\D-Drive\releases\ab\FacetIndexFinal\event\_0.fdt at org.apache.lucene.store.FSDirectory.initOutput(FSDirectory.java:362) at org.apache.lucene.store.SimpleFSDirectory.createOutput(SimpleFSDirectory.java:58) at org.apache.lucene.index.FieldsWriter.<init>(FieldsWriter.java:61) at org.apache.lucene.index.SegmentMerger.mergeFields(SegmentMerger.java:334) at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:153) at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:5045) at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4630) at org.apache.lucene.index.IndexWriter.resolveExternalSegments(IndexWriter.java:3809) at org.apache.lucene.index.IndexWriter.addIndexesNoOptimize(IndexWriter.java:3718) at proj.zoie.impl.indexing.internal.BaseSearchIndex.loadFromIndex(BaseSearchIndex.java:229) at proj.zoie.impl.indexing.internal.LuceneIndexDataLoader.loadFromIndex(LuceneIndexDataLoader.java:153) at proj.zoie.impl.indexing.internal.DiskLuceneIndexDataLoader.loadFromIndex(DiskLuceneIndexDataLoader.java:134) at proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader.processBatch(RealtimeIndexDataLoader.java:171) at proj.zoie.impl.indexing.internal.BatchedIndexDataLoader$LoaderThread.run(BatchedIndexDataLoader.java:373) 26 Jan 2013 12:28:40,903 ERROR proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader@683555b8 proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader - java.io.IOException: Cannot overwrite: C:\D-Drive\ProfilerNewJourney\releases\AbbottRegulatory\FacetIndexFinal\event\_0.fdt proj.zoie.api.ZoieException: java.io.IOException: Cannot overwrite: C:\D-Drive\releases\ab\FacetIndexFinal\FacetIndexFinal\event\_0.fdt at proj.zoie.impl.indexing.internal.LuceneIndexDataLoader.loadFromIndex(LuceneIndexDataLoader.java:164) at proj.zoie.impl.indexing.internal.DiskLuceneIndexDataLoader.loadFromIndex(DiskLuceneIndexDataLoader.java:134) at proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader.processBatch(RealtimeIndexDataLoader.java:171) at proj.zoie.impl.indexing.internal.BatchedIndexDataLoader$LoaderThread.run(BatchedIndexDataLoader.java:373) Caused by: java.io.IOException: Cannot overwrite: C:\D-Drive\releases\ab\FacetIndexFinal\FacetIndexFinal\event\_0.fdt at org.apache.lucene.store.FSDirectory.initOutput(FSDirectory.java:362) at org.apache.lucene.store.SimpleFSDirectory.createOutput(SimpleFSDirectory.java:58) at org.apache.lucene.index.FieldsWriter.<init>(FieldsWriter.java:61) at org.apache.lucene.index.SegmentMerger.mergeFields(SegmentMerger.java:334) at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:153) at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:5045) at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4630) at org.apache.lucene.index.IndexWriter.resolveExternalSegments(IndexWriter.java:3809) at org.apache.lucene.index.IndexWriter.addIndexesNoOptimize(IndexWriter.java:3718) at proj.zoie.impl.indexing.internal.BaseSearchIndex.loadFromIndex(BaseSearchIndex.java:229) at proj.zoie.impl.indexing.internal.LuceneIndexDataLoader.loadFromIndex(LuceneIndexDataLoader.java:153) ... 3 more 26 Jan 2013 12:28:40,944 ERROR proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader@683555b8 proj.zoie.impl.indexing.IndexingThread - proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader@683555b8 is abruptly terminated java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.lucene.index.DirectoryReader.doDelete(DirectoryReader.java:523) at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:1162) at proj.zoie.impl.indexing.internal.BaseSearchIndex.deleteDocs(BaseSearchIndex.java:193) at proj.zoie.impl.indexing.internal.BaseSearchIndex.loadFromIndex(BaseSearchIndex.java:223) at proj.zoie.impl.indexing.internal.LuceneIndexDataLoader.loadFromIndex(LuceneIndexDataLoader.java:153) at proj.zoie.impl.indexing.internal.DiskLuceneIndexDataLoader.loadFromIndex(DiskLuceneIndexDataLoader.java:134) at proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader.processBatch(RealtimeIndexDataLoader.java:171) at proj.zoie.impl.indexing.internal.BatchedIndexDataLoader$LoaderThread.run(BatchedIndexDataLoader.java:373)

    JIRA | 4 years ago | brij
    java.lang.ArrayIndexOutOfBoundsException: -1
  2. 0

    I am using the bobo api. zoie-2.0.0 jar is bundled with this. I am getting folowing exception 6 Jan 2013 12:28:40,902 ERROR proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader@683555b8 proj.zoie.impl.indexing.internal.LuceneIndexDataLoader - Problem copying segments: Cannot overwrite: C:\D-Drive\ProfilerNewJourney\releases\ab\FacetIndexFinal\event\_0.fdt java.io.IOException: Cannot overwrite: C:\D-Drive\releases\ab\FacetIndexFinal\event\_0.fdt at org.apache.lucene.store.FSDirectory.initOutput(FSDirectory.java:362) at org.apache.lucene.store.SimpleFSDirectory.createOutput(SimpleFSDirectory.java:58) at org.apache.lucene.index.FieldsWriter.<init>(FieldsWriter.java:61) at org.apache.lucene.index.SegmentMerger.mergeFields(SegmentMerger.java:334) at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:153) at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:5045) at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4630) at org.apache.lucene.index.IndexWriter.resolveExternalSegments(IndexWriter.java:3809) at org.apache.lucene.index.IndexWriter.addIndexesNoOptimize(IndexWriter.java:3718) at proj.zoie.impl.indexing.internal.BaseSearchIndex.loadFromIndex(BaseSearchIndex.java:229) at proj.zoie.impl.indexing.internal.LuceneIndexDataLoader.loadFromIndex(LuceneIndexDataLoader.java:153) at proj.zoie.impl.indexing.internal.DiskLuceneIndexDataLoader.loadFromIndex(DiskLuceneIndexDataLoader.java:134) at proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader.processBatch(RealtimeIndexDataLoader.java:171) at proj.zoie.impl.indexing.internal.BatchedIndexDataLoader$LoaderThread.run(BatchedIndexDataLoader.java:373) 26 Jan 2013 12:28:40,903 ERROR proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader@683555b8 proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader - java.io.IOException: Cannot overwrite: C:\D-Drive\ProfilerNewJourney\releases\AbbottRegulatory\FacetIndexFinal\event\_0.fdt proj.zoie.api.ZoieException: java.io.IOException: Cannot overwrite: C:\D-Drive\releases\ab\FacetIndexFinal\FacetIndexFinal\event\_0.fdt at proj.zoie.impl.indexing.internal.LuceneIndexDataLoader.loadFromIndex(LuceneIndexDataLoader.java:164) at proj.zoie.impl.indexing.internal.DiskLuceneIndexDataLoader.loadFromIndex(DiskLuceneIndexDataLoader.java:134) at proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader.processBatch(RealtimeIndexDataLoader.java:171) at proj.zoie.impl.indexing.internal.BatchedIndexDataLoader$LoaderThread.run(BatchedIndexDataLoader.java:373) Caused by: java.io.IOException: Cannot overwrite: C:\D-Drive\releases\ab\FacetIndexFinal\FacetIndexFinal\event\_0.fdt at org.apache.lucene.store.FSDirectory.initOutput(FSDirectory.java:362) at org.apache.lucene.store.SimpleFSDirectory.createOutput(SimpleFSDirectory.java:58) at org.apache.lucene.index.FieldsWriter.<init>(FieldsWriter.java:61) at org.apache.lucene.index.SegmentMerger.mergeFields(SegmentMerger.java:334) at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:153) at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:5045) at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4630) at org.apache.lucene.index.IndexWriter.resolveExternalSegments(IndexWriter.java:3809) at org.apache.lucene.index.IndexWriter.addIndexesNoOptimize(IndexWriter.java:3718) at proj.zoie.impl.indexing.internal.BaseSearchIndex.loadFromIndex(BaseSearchIndex.java:229) at proj.zoie.impl.indexing.internal.LuceneIndexDataLoader.loadFromIndex(LuceneIndexDataLoader.java:153) ... 3 more 26 Jan 2013 12:28:40,944 ERROR proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader@683555b8 proj.zoie.impl.indexing.IndexingThread - proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader@683555b8 is abruptly terminated java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.lucene.index.DirectoryReader.doDelete(DirectoryReader.java:523) at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:1162) at proj.zoie.impl.indexing.internal.BaseSearchIndex.deleteDocs(BaseSearchIndex.java:193) at proj.zoie.impl.indexing.internal.BaseSearchIndex.loadFromIndex(BaseSearchIndex.java:223) at proj.zoie.impl.indexing.internal.LuceneIndexDataLoader.loadFromIndex(LuceneIndexDataLoader.java:153) at proj.zoie.impl.indexing.internal.DiskLuceneIndexDataLoader.loadFromIndex(DiskLuceneIndexDataLoader.java:134) at proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader.processBatch(RealtimeIndexDataLoader.java:171) at proj.zoie.impl.indexing.internal.BatchedIndexDataLoader$LoaderThread.run(BatchedIndexDataLoader.java:373)

    JIRA | 4 years ago | brij
    java.lang.ArrayIndexOutOfBoundsException: -1

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      -1

      at org.apache.lucene.index.DirectoryReader.doDelete()
    2. Lucene
      IndexReader.deleteDocument
      1. org.apache.lucene.index.DirectoryReader.doDelete(DirectoryReader.java:523)
      2. org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:1162)
      2 frames
    3. proj.zoie.impl
      BatchedIndexDataLoader$LoaderThread.run
      1. proj.zoie.impl.indexing.internal.BaseSearchIndex.deleteDocs(BaseSearchIndex.java:193)
      2. proj.zoie.impl.indexing.internal.BaseSearchIndex.loadFromIndex(BaseSearchIndex.java:223)
      3. proj.zoie.impl.indexing.internal.LuceneIndexDataLoader.loadFromIndex(LuceneIndexDataLoader.java:153)
      4. proj.zoie.impl.indexing.internal.DiskLuceneIndexDataLoader.loadFromIndex(DiskLuceneIndexDataLoader.java:134)
      5. proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader.processBatch(RealtimeIndexDataLoader.java:171)
      6. proj.zoie.impl.indexing.internal.BatchedIndexDataLoader$LoaderThread.run(BatchedIndexDataLoader.java:373)
      6 frames