Re: ArrayIndexOutOfBoundsException if stopword on left of bool clause w/ StandardAnalyzer

2004-07-15 Thread Morus Walter
Claude Devarenne writes:
 
 My question is: should the queryParser catch that there is no term  
 before trying to add a clause when using a StandardAnalyzer?  Is this  
 even possible? Should the burden be on the application to either catch  
 the exception or parse the query before handing it out to the  
 queryParser?
 
Yes. Yes. No.
There are fixes in bugzilla that would make query parser read that query
as title:bla and simply drop the stop word.

see http://issues.apache.org/bugzilla/show_bug.cgi?id=9110
http://issues.apache.org/bugzilla/show_bug.cgi?id=25820

Morus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ArrayIndexOutOfBoundsException

2004-04-28 Thread Phil brunet
Hi.

I had this problem when i transfered a Lucene index by FTP in ASCII mode. 
Using binary mode, i never has such a problem.

Philippe

From: James Dunn [EMAIL PROTECTED]
Reply-To: Lucene Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: ArrayIndexOutOfBoundsException
Date: Mon, 26 Apr 2004 12:15:39 -0700 (PDT)
Hello all,

I have a web site whose search is driven by Lucene
1.3.  I've been doing some load testing using JMeter
and occassionally I will see the exception below when
the search page is under heavy load.
Has anyone seen similar errors during load testing?

I've seen some posts with similar exceptions and the
general consensus is that this error means that the
index is corrupt.  I'm not sure my index is corrupt
however.  I can run all the queries I use for load
testing under normal load and I don't appear to get
this error.
Is there any way to verify that a Lucene index is
corrupt or not?
Thanks,

Jim

java.lang.ArrayIndexOutOfBoundsException: 53 = 52
at java.util.Vector.elementAt(Vector.java:431)
at
org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:135)
at
org.apache.lucene.index.FieldsReader.doc(FieldsReader.java:103)
at
org.apache.lucene.index.SegmentReader.document(SegmentReader.java:275)
at
org.apache.lucene.index.SegmentsReader.document(SegmentsReader.java:112)
at
org.apache.lucene.search.IndexSearcher.doc(IndexSearcher.java:107)
at
org.apache.lucene.search.MultiSearcher.doc(MultiSearcher.java:100)
at
org.apache.lucene.search.MultiSearcher.doc(MultiSearcher.java:100)
at
org.apache.lucene.search.Hits.doc(Hits.java:130)




__
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Hotmail : un compte GRATUIT qui vous suit partout et tout le temps ! 
http://g.msn.fr/FR1000/9493

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: ArrayIndexOutOfBoundsException

2004-04-28 Thread James Dunn
Philippe, thanks for the reply.  I didn't FTP my index
anywhere, but your response does make it seem that my
index is in fact corrupted somehow.

Does anyone know of a tool that can verify the
validity of a Lucene index, and/or possibly repair it?
 If not, anyone have any idea how difficult it would
be to write one?  

Thanks,

Jim 

--- Phil brunet [EMAIL PROTECTED] wrote:
 
 Hi.
 
 I had this problem when i transfered a Lucene index
 by FTP in ASCII mode. 
 Using binary mode, i never has such a problem.
 
 Philippe
 
 From: James Dunn [EMAIL PROTECTED]
 Reply-To: Lucene Users List
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: ArrayIndexOutOfBoundsException
 Date: Mon, 26 Apr 2004 12:15:39 -0700 (PDT)
 
 Hello all,
 
 I have a web site whose search is driven by Lucene
 1.3.  I've been doing some load testing using
 JMeter
 and occassionally I will see the exception below
 when
 the search page is under heavy load.
 
 Has anyone seen similar errors during load testing?
 
 I've seen some posts with similar exceptions and
 the
 general consensus is that this error means that the
 index is corrupt.  I'm not sure my index is corrupt
 however.  I can run all the queries I use for load
 testing under normal load and I don't appear to get
 this error.
 
 Is there any way to verify that a Lucene index is
 corrupt or not?
 
 Thanks,
 
 Jim
 
 java.lang.ArrayIndexOutOfBoundsException: 53 = 52
  at
 java.util.Vector.elementAt(Vector.java:431)
  at

org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:135)
  at

org.apache.lucene.index.FieldsReader.doc(FieldsReader.java:103)
  at

org.apache.lucene.index.SegmentReader.document(SegmentReader.java:275)
  at

org.apache.lucene.index.SegmentsReader.document(SegmentsReader.java:112)
  at

org.apache.lucene.search.IndexSearcher.doc(IndexSearcher.java:107)
  at

org.apache.lucene.search.MultiSearcher.doc(MultiSearcher.java:100)
  at

org.apache.lucene.search.MultiSearcher.doc(MultiSearcher.java:100)
  at
 org.apache.lucene.search.Hits.doc(Hits.java:130)
 
 
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Photos: High-quality 4x6 digital prints for
 25¢
 http://photos.yahoo.com/ph/print_splash
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

_
 Hotmail : un compte GRATUIT qui vous suit partout et
 tout le temps ! 
 http://g.msn.fr/FR1000/9493
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 





__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ArrayIndexOutOfBoundsException

2004-04-26 Thread Paul
This looks very much like the problem I had (see subject/thread
'Optimize Crash').

I anyone replies to this, could you please read my post as well - this
is still unresolved and I'd like to be able to take some action on it.

Cheers,
Paul.


James Dunn wrote:
 Hello all,

 I have a web site whose search is driven by Lucene
 1.3.  I've been doing some load testing using JMeter
 and occassionally I will see the exception below when
 the search page is under heavy load.

 Has anyone seen similar errors during load testing?

 I've seen some posts with similar exceptions and the
 general consensus is that this error means that the
 index is corrupt.  I'm not sure my index is corrupt
 however.  I can run all the queries I use for load
 testing under normal load and I don't appear to get
 this error.

 Is there any way to verify that a Lucene index is
 corrupt or not?

 Thanks,

 Jim

 java.lang.ArrayIndexOutOfBoundsException: 53 = 52
 at java.util.Vector.elementAt(Vector.java:431)
 at
 org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:135)
 at
 org.apache.lucene.index.FieldsReader.doc(FieldsReader.java:103)
 at
 org.apache.lucene.index.SegmentReader.document(SegmentReader.java:275)
 at
 org.apache.lucene.index.SegmentsReader.document(SegmentsReader.java:112)
 at
 org.apache.lucene.search.IndexSearcher.doc(IndexSearcher.java:107)
 at
 org.apache.lucene.search.MultiSearcher.doc(MultiSearcher.java:100)
 at
 org.apache.lucene.search.MultiSearcher.doc(MultiSearcher.java:100)
 at
 org.apache.lucene.search.Hits.doc(Hits.java:130)





 __
 Do you Yahoo!?
 Yahoo! Photos: High-quality 4x6 digital prints for 25¢
 http://photos.yahoo.com/ph/print_splash

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
The trouble with the rat-race is that even if you win, you're still a rat.
-- Lily Tomlin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ArrayIndexOutOfBoundsException in IndexHTML demo

2002-06-27 Thread Otis Gospodnetic

I suggest you add some debugging code around the line where the
exception is thrown.  Check the array size, see which element is in
question, etc. etc. and also look at the stack trace with line numbers
included.

This part looks unusual:

 Dumping live threads:
  'Thread-0 tid 0x82bc010 ...

What's printing that?  Your application?  IndexHTML?  Some class?  JVM?

Otis

--- [EMAIL PROTECTED] wrote:
 Hi, again.  I would appreciate any pointers you could offer me as I
 continue to work through this problem.
 
 As an addendum to my previous message, I have tried the following:
 - Moving the location of {index} to another directory
 - Ensuring that I have permissions to write to the {index} directory
 - Double checking my CLASSPATH and the functionality of the shipping
 Tomcat
 demos
 - Checking the web and this mailing list archive for similar problems
 
 Also, I am running tomcat 4.0.4 (full edition).
 
 What would cause the demo code to generate an
 ArrayIndexOutOfBoundsException?  Could be something simple--I'm a
 Java
 newbie.
 
 Thanks,
 Jeff
 
 
 - Forwarded by Jeff Watts/AUS/NIC on 06/27/2002 03:09 PM -
 
 I am working my way through the examples in the Getting Started
 documentation, and I have run into a problem with the Web demo
 program.
 
 When I run the following command
 
 java org.apache.lucene.demo.IndexHTML -create -index {index} ..
 
 I receive the following messages:
 
 adding ./jsp/cal/Entries.txt
  caught a class java.lang.ArrayIndexOutOfBoundsException with
 message:
 null
 Dumping live threads:
  'Thread-0 tid 0x82bc010 ...
 
 Regardless of the starting directory (.. in this case), the indexer
 appears
 to find the first file and then catch the Array Index Exception after
 that.
 
 I am able to run the other demo (IndexFiles) without any problems,
 and the
 lucene jar and lucene demo jar are both in my CLASSPATH.
 
 I would appreciate any help you could offer.
 
 Jeff
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]