Issue Details (XML | Word | Printable)

Key: LUCENE-449
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Jeff Turner
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

NullPointerException when temporary directory not readable

Created: 10/Oct/05 03:48 PM   Updated: 27/May/06 01:33 AM
Return to search
Component/s: None
Affects Version/s: CVS Nightly - Specify date in submission
Fix Version/s: 1.9

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works unreadable-lockdir.diff 2005-10-10 03:50 PM Jeff Turner 0.6 kB
Environment: Lucene 1.4.3 and SVN head (2005-10-10)

Resolution Date: 11/Oct/05 04:34 AM


 Description  « Hide
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.<init>(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



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jeff Turner made changes - 10/Oct/05 03:50 PM
Field Original Value New Value
Attachment unreadable-lockdir.diff [ 12314786 ]
Daniel Naber made changes - 11/Oct/05 04:34 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 1.9 [ 12310334 ]
Doug Cutting made changes - 27/May/06 01:33 AM
Status Resolved [ 5 ] Closed [ 6 ]