dbpedia-spotlight/dbpedia-spotlight — pull request #258 by sandroacoelho (2014-02-11 15:05:15+00:00)
Title: No segments* file found, when running index.sh

Hi there,

index.sh is crashing on this step:

```
echo -e "Creating a context index from occs.tsv...\n"
mvn scala:run -Dlauncher=IndexMergedOccurrences "-DjavaOpts.Xmx=$JAVA_XMX" "-DaddArgs=$INDEX_CONFIG_FILE|$DBPEDIA_WORKSPACE/data/output/occs.uriSorted.tsv"
```

The error I get:

```
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
Caused by: org.apache.lucene.index.IndexNotFoundException: no segments* file found in org.apache.lucene.store.MMapDirectory@/data/spotlight/data/output/nl/index lockFactory=org.apache.lucene.store.NativeFSLockFactory@2b2c8b14: files: [write.lock]
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:667)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:554)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:359)
at org.apache.lucene.index.IndexWriter.(IndexWriter.java:1138)
at org.dbpedia.spotlight.lucene.index.BaseIndexer.(BaseIndexer.java:75)
at org.dbpedia.spotlight.lucene.index.BaseIndexer.(BaseIndexer.java:86)
at org.dbpedia.spotlight.lucene.index.OccurrenceContextIndexer.(OccurrenceContextIndexer.java:57)
at org.dbpedia.spotlight.lucene.index.MergedOccurrencesContextIndexer.(MergedOccurrencesContextIndexer.java:79)
at org.dbpedia.spotlight.lucene.index.IndexMergedOccurrences$.main(IndexMergedOccurrences.scala:119)
at org.dbpedia.spotlight.lucene.index.IndexMergedOccurrences.main(IndexMergedOccurrences.scala)
... 6 more
```

Seems to be an issue with flushing segments to disk. Any ideas?

Thanks