Re: Works on Windows, crashes on Linux

2011-02-08 Thread Ian Lea
That stack trace appears to be triggered in IndexWriter.addDocument() rather than .open() which leads one to speculate that the directory is fine, or was at any rate, but something is messing with the contents. Evidently you are running this in tomcat - have you got multiple threads writing to the

Works on Windows, crashes on Linux

2011-02-07 Thread Pulkit Singhal
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: java.io.FileNotFoundException: /opt/apache/tomcat/webapps/myapp/luceneData/backend_IP/en_US/_1.fdt (No such file or directory) at java.io.RandomAccessFile.ope