lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Update - IOException
Date Thu, 01 Mar 2007 08:56:25 GMT

While updating my index I have the following error :

[3/1/07 9:44:19:214 CET] 76414c82 SystemErr     R
Lock obtain timed out:
[3/1/07 9:44:19:214 CET] 76414c82 SystemErr     R 	at
[3/1/07 9:44:19:214 CET] 76414c82 SystemErr     R 	at
[3/1/07 9:44:19:214 CET] 76414c82 SystemErr     R 	at
[3/1/07 9:44:19:214 CET] 76414c82 SystemErr     R 	at

I am using lucene 2.0,

When I execute the code below I find an entry with the specified Term
(it displays One Entry Found)
Then when I try to delete the document, I get the error I apsted above.

What I do is :
open a second index reader,
delete document
close second index reader
close main index reader, 
open new idnexreader

Can anyone help ?

Thank u very much.

  // Open second indexReader
  IndexReader mIndexReaderClone = null;
  try {
	mIndexReaderClone =;
  catch (IOException exc) {
	throw new RegainException("Creating index reader failed", exc);

Term urlTerm = new Term("url", url1);
Query query2 = new TermQuery(urlTerm2);
Document doc2;

  Hits hits2 = search(query2);
  if (hits2.length() > 0) {
	if (hits2.length() > 1) {
	  System.out.println("Duplicates Entries");
	System.out.println("One Entry Found");
  else {
	  System.out.println("No Entries");

  try {
  } catch (IOException e) {
	throw new RegainException("Deleting old entry failed", e);
  // Close the Clone IndexReader
try {
catch (IOException exc) {
  throw new RegainException("Closing index reader failed", exc);



Internet communications are not secure and therefore Fortis Banque Luxembourg S.A. does not
accept legal responsibility for the contents of this message. The information contained in
this e-mail is confidential and may be legally privileged. It is intended solely for the addressee.
If you are not the intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Nothing
in the message is capable or intended to create any legally binding obligations on either
party and it is not intended to provide legal advice.

View raw message