Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6317510498 for ; Thu, 16 Jan 2014 21:40:15 +0000 (UTC) Received: (qmail 61813 invoked by uid 500); 16 Jan 2014 21:40:12 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 61713 invoked by uid 500); 16 Jan 2014 21:40:12 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Delivered-To: moderator for java-user@lucene.apache.org Received: (qmail 77372 invoked by uid 99); 16 Jan 2014 21:09:32 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of matt.petersen@logrhythm.com designates 65.127.112.132 as permitted sender) From: "Matthew D. Petersen" To: "java-user@lucene.apache.org" Subject: ArrayIndexOutOfBoundsException calling FacteFields.addFields() Thread-Topic: ArrayIndexOutOfBoundsException calling FacteFields.addFields() Thread-Index: AQHPEv8wsItmCCAZBEi5ZuPBbjyzag== Date: Thu, 16 Jan 2014 21:09:05 +0000 Message-ID: <7F391D2E-9677-4674-BD96-B2697E9C8822@logrhythm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.109.53] Content-Type: multipart/alternative; boundary="_000_7F391D2E96774674BD96B2697E9C8822logrhythmcom_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_7F391D2E96774674BD96B2697E9C8822logrhythmcom_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I=92m having an issue with an index when adding category paths to a documen= t. They seem to be added without issue for a long period of time, then for= some unknown reason the addition fails with an ArrayIndexOutOfBounds excep= tion. Subsequent attempts to add category paths fail with the same excepti= on. I=92ve run CheckIndex on both the index and the taxonomy directory and= both come back as clean with no issues. I cannot fix the index because ac= cording to lucene it is not broken. Could this be a bug in lucene? Below = is the stack trace when the exception occurs: Lucene v4.4.0 java.lang.ArrayIndexOutOfBoundsException: -65535 at java.util.ArrayList.elementData(ArrayList.java:371) at java.util.ArrayList.get(ArrayList.java:384) at org.apache.lucene.facet.taxonomy.writercache.cl2o.CharBlockArray.charAt(= CharBlockArray.java:152) at org.apache.lucene.facet.taxonomy.writercache.cl2o.CategoryPathUtils.equa= lsToSerialized(CategoryPathUtils.java:61) at org.apache.lucene.facet.taxonomy.writercache.cl2o.CompactLabelToOrdinal.= getOrdinal(CompactLabelToOrdinal.java:257) at org.apache.lucene.facet.taxonomy.writercache.cl2o.CompactLabelToOrdinal.= getOrdinal(CompactLabelToOrdinal.java:140) at org.apache.lucene.facet.taxonomy.writercache.cl2o.Cl2oTaxonomyWriterCach= e.get(Cl2oTaxonomyWriterCache.java:74) at org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter.addCa= tegory(DirectoryTaxonomyWriter.java:455) at org.apache.lucene.facet.index.FacetFields.addFields(FacetFields.java:175= ) at com.logrhythm.messaging.indexing.LogIndexerImpl.getDocument(LogIndexerIm= pl.java:478) at com.logrhythm.messaging.indexing.LogIndexerImpl.indexLog(LogIndexerImpl.= java:392) at com.logrhythm.messaging.indexing.LogIndexerImpl.indexLogs(LogIndexerImpl= .java:357) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.logrhythm.tests.unit.messaging.indexing.LogIndexerTests.logIndexerLo= adTest(LogIndexerTests.java:752) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMet= hod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallab= le.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMetho= d.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod= .java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner= .java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner= .java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.junit.runner.JUnitCore.run(JUnitCore.java:157) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaT= estRunner.java:74) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUni= tStarter.java:202) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) --_000_7F391D2E96774674BD96B2697E9C8822logrhythmcom_--