Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 34704 invoked from network); 10 Oct 2005 06:52:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2005 06:52:15 -0000 Received: (qmail 77012 invoked by uid 500); 10 Oct 2005 06:52:14 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 76502 invoked by uid 500); 10 Oct 2005 06:52:12 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 76491 invoked by uid 99); 10 Oct 2005 06:52:12 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2005 23:52:11 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 72F1D242 for ; Mon, 10 Oct 2005 08:51:50 +0200 (CEST) Message-ID: <1944862232.1128927110448.JavaMail.jira@ajax.apache.org> Date: Mon, 10 Oct 2005 08:51:50 +0200 (CEST) From: "Jeff Turner (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-449) NullPointerException when temporary directory not readable In-Reply-To: <309952290.1128926987532.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-449?page=all ] Jeff Turner updated LUCENE-449: ------------------------------- Attachment: unreadable-lockdir.diff ..attached is a one-line patch which prints something more useful than a NPE. > NullPointerException when temporary directory not readable > ---------------------------------------------------------- > > Key: LUCENE-449 > URL: http://issues.apache.org/jira/browse/LUCENE-449 > Project: Lucene - Java > Type: Improvement > Versions: CVS Nightly - Specify date in submission > Environment: Lucene 1.4.3 and SVN head (2005-10-10) > Reporter: Jeff Turner > Attachments: unreadable-lockdir.diff > > We have customers reporting errors such as: > Caused by: java.lang.NullPointerException > at org.apache.lucene.store.FSDirectory.create(FSDirectory.java:200) > at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:144) > at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:117) > at org.apache.lucene.index.IndexWriter.(IndexWriter.java:205) > at com.atlassian.jira.util.LuceneUtils.getIndexWriter(LuceneUtils.java:46) > at com.atlassian.jira.issue.index.DefaultIndexManager.getIndexWriter(DefaultIndexManager.java:568) > at com.atlassian.jira.issue.index.DefaultIndexManager.indexIssuesAndComments(DefaultIndexManager.java:287) > ... 59 more > This occurs when the lock directory is unreadable (eg. because Tomcat sets java.io.tmpdir to temp/ and the permissions here are broken). Attached is -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org