Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 47579 invoked from network); 10 Jul 2010 00:02:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Jul 2010 00:02:31 -0000 Received: (qmail 37537 invoked by uid 500); 10 Jul 2010 00:02:30 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 37404 invoked by uid 500); 10 Jul 2010 00:02:29 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 37396 invoked by uid 99); 10 Jul 2010 00:02:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jul 2010 00:02:29 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [85.25.71.29] (HELO mail.troja.net) (85.25.71.29) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jul 2010 00:02:21 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id 81FB3D36004 for ; Sat, 10 Jul 2010 02:01:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.troja.net Received: from mail.troja.net ([127.0.0.1]) by localhost (megaira.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ujR2qCYpz0Di for ; Sat, 10 Jul 2010 02:01:20 +0200 (CEST) Received: from VEGA (port-83-236-62-54.dynamic.qsc.de [83.236.62.54]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTPSA id D4542D36003 for ; Sat, 10 Jul 2010 02:01:19 +0200 (CEST) From: "Uwe Schindler" To: References: <21627.97701.qm@web51501.mail.re2.yahoo.com> In-Reply-To: <21627.97701.qm@web51501.mail.re2.yahoo.com> Subject: RE: Problem with linux Date: Sat, 10 Jul 2010 02:01:54 +0200 Message-ID: <028301cb1fc3$1be7a200$53b6e600$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHpfTzvV8W92niYQQ5cp8G3IV/nmJJsi58g Content-Language: de X-Virus-Checked: Checked by ClamAV on apache.org Is the folder mounted on NFS? If yes, use SimpleFSLockFactory. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: sarfaraz masood [mailto:sarfarazmasood2002@yahoo.com] > Sent: Saturday, July 10, 2010 1:49 AM > To: general@lucene.apache.org > Cc: solr > Subject: Problem with linux > > I have problems when i execute my prog on linux having this following piece > of code. > { > > Document d; > Analyzer analyzer = new PorterStemAnalyzer(); System.out.println("1"); > > > Directory index = FSDirectory.open(new File("index1")); > System.out.println("2"); > > IndexWriter w = new IndexWriter(index, analyzer, true, > IndexWriter.MaxFieldLength.UNLIMITED ) ; // MY PROG HANGS UP HERE > System.out.println("3"); . > . > . > } > > > Strangely this exact prog runs well on windows. It simply hangs up(doesnt > halt) while creating the IndexWriter object in linux. The account via which im > logged in has sufficient rights for the concerned folder. > > > -Sarfaraz > >