You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Pasquale Imbemba <p....@gmail.com> on 2006/07/19 14:22:27 UTC

Lock obtain time out

Hi,

I am checking a txt file with entries against an index generated with 
Lucene. Of the enclosed Searcher.java class, I use the isInLex(String 
noun) method, i.e. I read every line of the txt file and compare using 
isInLex(String noun) against the index. If it's contained it returns 
true otherwise it returns false.

The entire comparison is started from the enclosed Merger.java class. I 
read here 
(http://issues.apache.org/jira/browse/LUCENE-307?page=comments#action_12417477) 
and after that I tried to close the reader (is.close() in the 
Searcher.java class), but the problem persists.

I would be grateful for some tip as this is my first approach to Lucene...

tia
Pasquale

Re: Lock obtain time out (&OT: Mailing list settings)

Posted by Paul Borgermans <pa...@gmail.com>.
Hello

I suppose that you are using gmail?

It is just a property of gmail, take a look at thee archives after a
few hours,  you will find it back ;-)

for example:

http://mail-archives.apache.org/mod_mbox/lucene-java-user/

hth

--paul

On 7/19/06, Pasquale Imbemba <p....@gmail.com> wrote:
> Michael McCandless wrote:
>
> > If you are subscribed to java-user then you should have received your
> > own original message (and my response) to the list -- are you not
> > seeing that?
>
> No, I didn't receive mine --just yours (and those of others of course).
>
> Pasquale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
http://walhalla.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Lock obtain time out (&OT: Mailing list settings)

Posted by Pasquale Imbemba <p....@gmail.com>.
Michael McCandless wrote:

> If you are subscribed to java-user then you should have received your 
> own original message (and my response) to the list -- are you not 
> seeing that?

No, I didn't receive mine --just yours (and those of others of course).

Pasquale

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Lock obtain time out (&OT: Mailing list settings)

Posted by Michael McCandless <lu...@mikemccandless.com>.
> BTW is it possible to set mailinglist so to obtain my own message in the 
> inbox, i.e. when sending to the ML, I get a copy as well as all other 
> subscribers?

If you are subscribed to java-user then you should have received your 
own original message (and my response) to the list -- are you not seeing 
that?

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Lock obtain time out (&OT: Mailing list settings)

Posted by Pasquale Imbemba <p....@gmail.com>.
Michael McCandless wrote:

>
>> I would be grateful for some tip as this is my first approach to 
>> Lucene...
>
>
> Is it your IndexSearcher instantiation that's raising the Lock obtain 
> time out exception?

Yes that's true. I removed the lock files and that was the problem. 
Thanks a lot.

BTW is it possible to set mailinglist so to obtain my own message in the 
inbox, i.e. when sending to the ML, I get a copy as well as all other 
subscribers?

Bye
Pasquale

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Lock obtain time out

Posted by Michael McCandless <lu...@mikemccandless.com>.
> I would be grateful for some tip as this is my first approach to Lucene...

Is it your IndexSearcher instantiation that's raising the Lock obtain 
time out exception?

Can you look in your java.io.tmpdir and see if there are any Lucene lock 
files present even when Lucene is not running?  If so (and you're 
certain you don't have Lucene running) you should remove those files 
manually and then retry your program?

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org