Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 41432 invoked from network); 24 Nov 2003 21:31:02 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Nov 2003 21:31:02 -0000 Received: (qmail 82630 invoked by uid 500); 24 Nov 2003 21:30:46 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 82606 invoked by uid 500); 24 Nov 2003 21:30:45 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 82580 invoked from network); 24 Nov 2003 21:30:45 -0000 Received: from unknown (HELO mta1.lbl.gov) (128.3.41.24) by daedalus.apache.org with SMTP; 24 Nov 2003 21:30:45 -0000 Received: from mta1.lbl.gov (localhost [127.0.0.1]) by mta1.lbl.gov (8.12.10/8.12.10) with ESMTP id hAOLUmfw000931 for ; Mon, 24 Nov 2003 13:30:49 -0800 (PST) Received: from lbl.gov (imapb.lbl.gov [128.3.41.51]) by mta1.lbl.gov (8.12.10/8.12.10) with ESMTP id hAOLUmbI000928 for ; Mon, 24 Nov 2003 13:30:48 -0800 (PST) From: DMGoodstein@lbl.gov Received: from [198.129.90.96] by imapb.lbl.gov (mshttpd); Mon, 24 Nov 2003 13:30:48 -0800 To: Lucene Users List Message-ID: <576ce5c024.5c024576ce@lbl.gov> Date: Mon, 24 Nov 2003 13:30:48 -0800 X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.21 (built Sep 8 2003) MIME-Version: 1.0 Content-Language: en Subject: permissions or lock problem? X-Accept-Language: en Priority: normal Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm having difficulty creating an IndexSearcher from an FSDirectory in 1.3-rc2. The code is as follows (log.writeToLog is a convenience method): log.writeToLog(Log.DEBUG,"directory path ="+hitPath); File f = new File(hitPath); log.writeToLog(Log.DEBUG,"file exists = "+String.valueOf(f.exists())); IndexSearcher t = new IndexSearcher(FSDirectory.getDirectory(f,false)); the output is: [2003-11-24 13:23:09] [--ERROR--] Error building multisearcher java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:827) at org.apache.lucene.store.FSDirectory$1.obtain(FSDirectory.java:324) at org.apache.lucene.store.Lock.obtain(Lock.java:92) at org.apache.lucene.store.Lock$With.run(Lock.java:147) at org.apache.lucene.index.IndexReader.open(IndexReader.java:110) at org.apache.lucene.search.IndexSearcher.(IndexSearcher.java:80) at jgi.util.search.LuceneSearch.(LuceneSearch.java:110) Since file.exists() is returning true, the No Such file or directory error is a bit surprising...is something getting mangled on its way from FSDirectory.getDirectory to java.io.UnixFileSystem.createFileExclusively? thx, --David --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org