lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pulkit Singhal <>
Subject Works on Windows, crashes on Linux
Date Mon, 07 Feb 2011 17:55:49 GMT
Hello Folks,

I'm using Lucene 3.0, my code runs fine on Windows but when I test it
on Linux, I run into the following stack trace:
(No such file or directory)
        at Method)
        at org.apache.lucene.index.FieldsWriter.<init>(
        at org.apache.lucene.index.StoredFieldsWriter.initFieldsWriter(
        at org.apache.lucene.index.StoredFieldsWriter.finishDocument(
        at org.apache.lucene.index.StoredFieldsWriter$PerDoc.finish(
        at org.apache.lucene.index.DocumentsWriter$WaitQueue.writeDocument(
        at org.apache.lucene.index.DocumentsWriter$WaitQueue.add(
        at org.apache.lucene.index.DocumentsWriter.finishDocument(
        at org.apache.lucene.index.DocumentsWriter.updateDocument(
        at org.apache.lucene.index.DocumentsWriter.addDocument(
        at org.apache.lucene.index.IndexWriter.addDocument(

Things I tried:
1) At first I thought that it had something to do with permissions but
the permissions on the directory where all my indexes are nested and
stored is 755 so I don't see how that could be an issue.
2) Then I realized that l was using Directory directory = to create the directory that I passed to the
IndexWriter ... and the value of my dir was
...luceneData/backend_IP/en_US/ ... now the two directories
backend_IP/en_US are really placeholders ... the real names are known
to me just before I call ... so I thought that the
problem maybe that in Windows the backend_IP/en_US directories may be
getting created auto-magically by the
implementation ... but in Linux I need to create them manually before
calling ... so I tried that but that didn't help

Now I'm out of clues.

Anyone have any advice?

- Pulkit

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message