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 6F97E95E7 for ; Thu, 19 Jan 2012 14:19:33 +0000 (UTC) Received: (qmail 65242 invoked by uid 500); 19 Jan 2012 14:19:30 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 65162 invoked by uid 500); 19 Jan 2012 14:19:29 -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 Received: (qmail 65003 invoked by uid 99); 19 Jan 2012 14:19:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 14:19:29 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of duke.dai.007@gmail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-lpp01m010-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 14:19:24 +0000 Received: by lahl5 with SMTP id l5so3096492lah.35 for ; Thu, 19 Jan 2012 06:19:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=me/bMHDwes1iz+TgQX8QZmAmeaSuDBfQ0xw6m5Cdiao=; b=EoBHBsgG1qJWP2tWPX4pM/n8AAhkN/ERBmtu3i5ZQRdvklaRy1FcdmEHcTq8sky9WP GhvVhLQ0SX4YKhJff5lm4mHrT6hyTjutrI7L/czm3T/ESlHtSEydj/jwQtfpIf0bYhCm 43qyETd3f0AGKUGAvSG2fMr2/qcuigOMLn+Y8= MIME-Version: 1.0 Received: by 10.112.99.231 with SMTP id et7mr6339241lbb.57.1326982742422; Thu, 19 Jan 2012 06:19:02 -0800 (PST) Received: by 10.112.100.65 with HTTP; Thu, 19 Jan 2012 06:19:02 -0800 (PST) In-Reply-To: References: Date: Thu, 19 Jan 2012 22:19:02 +0800 Message-ID: Subject: Re: ArrayIndexOutOfBoundsException: -65536 From: Duke DAI To: Michael McCandless Cc: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=f46d040169cffc361904b6e23e9b --f46d040169cffc361904b6e23e9b Content-Type: text/plain; charset=UTF-8 Dear Mike, Yes, it's possible that the document is bigger enough after original PDF has been processed to intermediate one. I'm trying to make sure it from customer. I can't produce with the same PDF on in-house system, but the component translating PDF to intermediate file can be different. What kind of hardware issue can cause AIOOBE? Is there any possible? Best regards, Duke If not now, when? If not me, who? On Wed, Jan 18, 2012 at 9:47 PM, Michael McCandless < lucene@mikemccandless.com> wrote: > Hmm, are you certain your RAM buffer is 3 MB? > > Is it possible you are indexing an absurdly enormous document...? > > Finally, it's possible this is a hardware issue; does it happen on > other machines? > > Mike McCandless > > http://blog.mikemccandless.com > > On Wed, Jan 18, 2012 at 8:15 AM, Duke DAI wrote: > > Dear Mike, > > Thank you very much and sorry for the late reply. > > > > Followings are the trace stack, the lucene code line is 3.0.3. From line > > numbers, lucene is adding payload field to the buffer. This had been > tested > > millions of times in various customers and internally. But recently the > > exception happened on one system without access by me. When using those > > documents who triggered the exception in a similar system, I just can't > > reproduce. I hope you can retrospect something from the limited > > information. > > > > Caused by: java.lang.ArrayIndexOutOfBoundsException: -65536 > > at > > > org.apache.lucene.index.TermsHashPerField.writeByte(TermsHashPerField.java:480) > > at > > > org.apache.lucene.index.TermsHashPerField.writeVInt(TermsHashPerField.java:506) > > at > > > org.apache.lucene.index.FreqProxTermsWriterPerField.writeProx(FreqProxTermsWriterPerField.java:99) > > at > > > org.apache.lucene.index.FreqProxTermsWriterPerField.addTerm(FreqProxTermsWriterPerField.java:160) > > at > org.apache.lucene.index.TermsHashPerField.add(TermsHashPerField.java:468) > > at > > > org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:174) > > at > > > org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:246) > > at > > > org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:826) > > at > > > org.apache.lucene.index.DocumentsWriter.addDocument(DocumentsWriter.java:802) > > at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1998) > > at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1972) > > ... > > (following are business related method stack and also had been > > obfuscated) > > > > Best regards, > > Duke > > If not now, when? If not me, who? > > M 13818420095 > > > > > > > > On Mon, Jan 16, 2012 at 9:09 AM, Michael McCandless > > wrote: > >> > >> Do you have a full traceback of the exception? > >> > >> Mike McCandless > >> > >> http://blog.mikemccandless.com > >> > >> On Sun, Jan 15, 2012 at 7:21 PM, Duke DAI > wrote: > >> > Hi friends, > >> > Any one meet ArrayIndexOutOfBoundsException: -65536 described in > >> > https://issues.apache.org/jira/browse/LUCENE-1995 after it declared > >> > being > >> > fixed? > >> > My lucene version is 3.0.3 and MaxRAMBufferSize is 3M. All other > >> > configurations seem to be normal. > >> > It's hard to describe the environment and debug the system(which is > >> > invisible for me). But by code reviewing and the explanation of > >> > LUCENE-1995, only when the offset of byte array is Integer.MAX_VALUE > the > >> > exception will happen. Now I think there is no chance to cause it. > >> > > >> > Anyone has met the same issue and any hint or experience is > appreciated. > >> > > >> > Best regards, > >> > Duke > >> > If not now, when? If not me, who? > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > >> For additional commands, e-mail: java-user-help@lucene.apache.org > >> > > > --f46d040169cffc361904b6e23e9b--