I'm getting this exception when using a Lucene index and don't have any
idea why I might be getting it:
SEVERE: null
java.lang.RuntimeException: org.apache.lucene.index.CorruptIndexException:
unrecognized format -3 in file "_2q.fnm"
at
org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:606)
at
org.neo4j.index.impl.lucene.LuceneDataSource.getIndexSearcher(LuceneDataSou rce.java:489)
at
org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:248)
at org.neo4j.index.impl.lucene.LuceneIndex.get(LuceneIndex.java:187)
at
com.era7.bioinfo.bio4jmodel.util.NodeRetriever.getNCBITaxonByTaxId(NodeRetr iever.java:278)
at
com.era7.bioinfo.mg7.CountTaxonomyFreqs.main(CountTaxonomyFreqs.java:86)
at
com.era7.bioinfo.mg7.CountTaxonomyFreqs.execute(CountTaxonomyFreqs.java:44)
at
com.era7.lib.bioinfo.bioinfoutil.ExecuteFromFile.main(ExecuteFromFile.java: 66)
at com.era7.bioinfo.mg7.MG7.main(MG7.java:34)
Caused by: org.apache.lucene.index.CorruptIndexException: unrecognized
format -3 in file "_2q.fnm"
at org.apache.lucene.index.FieldInfos.read(FieldInfos.java:349)
at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:71)
at
org.apache.lucene.index.IndexWriter.getFieldInfos(IndexWriter.java:1197)
at
org.apache.lucene.index.IndexWriter.getCurrentFieldInfos(IndexWriter.java:1 213)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1149)
at
org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:593)
... 8 more
I'm using Neo4j 1.7 on a Linux machine.
Any clues?
Thanks!
That's most likely caused by a version mismatch. What Neo4j version was the
store created with, and which version are you using to access it? Are you
running embedded?
Thanks,
David
On May 19, 2012 5:43 PM, "Pablo Pareja" <ppar...@era7.com> wrote:
> I'm getting this exception when using a Lucene index and don't have any
> idea why I might be getting it:
> SEVERE: null
> java.lang.RuntimeException: org.apache.lucene.index.CorruptIndexException:
> unrecognized format -3 in file "_2q.fnm"
> at
> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:606)
> at
> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexSearcher(LuceneDataSou rce.java:489)
> at
> org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:248)
> at
> org.neo4j.index.impl.lucene.LuceneIndex.get(LuceneIndex.java:187)
> at
> com.era7.bioinfo.bio4jmodel.util.NodeRetriever.getNCBITaxonByTaxId(NodeRetr iever.java:278)
> at
> com.era7.bioinfo.mg7.CountTaxonomyFreqs.main(CountTaxonomyFreqs.java:86)
> at
> com.era7.bioinfo.mg7.CountTaxonomyFreqs.execute(CountTaxonomyFreqs.java:44)
> at
> com.era7.lib.bioinfo.bioinfoutil.ExecuteFromFile.main(ExecuteFromFile.java: 66)
> at com.era7.bioinfo.mg7.MG7.main(MG7.java:34)
> Caused by: org.apache.lucene.index.CorruptIndexException: unrecognized
> format -3 in file "_2q.fnm"
> at org.apache.lucene.index.FieldInfos.read(FieldInfos.java:349)
> at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:71)
> at
> org.apache.lucene.index.IndexWriter.getFieldInfos(IndexWriter.java:1197)
> at
> org.apache.lucene.index.IndexWriter.getCurrentFieldInfos(IndexWriter.java:1 213)
> at
> org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1149)
> at
> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:593)
> ... 8 more
> I'm using Neo4j 1.7 on a Linux machine.
> Any clues?
> Thanks!
Thanks for the quick response. You're right!
I was combining two different programs and one of them has a version around
1.5 whilst the other one is built with 1.7, (silly me... :P )
I probably corrupted the DB then, because I was adding new content when
using the program compiled with 1.5 to a previously created DB with 1.7
version ....
david.mon...@neotechnology.com> wrote:
> Hi Pablo,
> That's most likely caused by a version mismatch. What Neo4j version was
> the store created with, and which version are you using to access it? Are
> you running embedded?
> Thanks,
> David
> On May 19, 2012 5:43 PM, "Pablo Pareja" <ppar...@era7.com> wrote:
>> Hi,
>> I'm getting this exception when using a Lucene index and don't have any
>> idea why I might be getting it:
>> SEVERE: null
>> java.lang.RuntimeException:
>> org.apache.lucene.index.CorruptIndexException: unrecognized format -3 in
>> file "_2q.fnm"
>> at
>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:606)
>> at
>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexSearcher(LuceneDataSou rce.java:489)
>> at
>> org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:248)
>> at
>> org.neo4j.index.impl.lucene.LuceneIndex.get(LuceneIndex.java:187)
>> at
>> com.era7.bioinfo.bio4jmodel.util.NodeRetriever.getNCBITaxonByTaxId(NodeRetr iever.java:278)
>> at
>> com.era7.bioinfo.mg7.CountTaxonomyFreqs.main(CountTaxonomyFreqs.java:86)
>> at
>> com.era7.bioinfo.mg7.CountTaxonomyFreqs.execute(CountTaxonomyFreqs.java:44)
>> at
>> com.era7.lib.bioinfo.bioinfoutil.ExecuteFromFile.main(ExecuteFromFile.java: 66)
>> at com.era7.bioinfo.mg7.MG7.main(MG7.java:34)
>> Caused by: org.apache.lucene.index.CorruptIndexException: unrecognized
>> format -3 in file "_2q.fnm"
>> at org.apache.lucene.index.FieldInfos.read(FieldInfos.java:349)
>> at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:71)
>> at
>> org.apache.lucene.index.IndexWriter.getFieldInfos(IndexWriter.java:1197)
>> at
>> org.apache.lucene.index.IndexWriter.getCurrentFieldInfos(IndexWriter.java:1 213)
>> at
>> org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1149)
>> at
>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:593)
>> ... 8 more
>> I'm using Neo4j 1.7 on a Linux machine.
>> Any clues?
>> Thanks!
> Thanks for the quick response. You're right!
> I was combining two different programs and one of them has a version
> around 1.5 whilst the other one is built with 1.7, (silly me... :P )
> I probably corrupted the DB then, because I was adding new content when
> using the program compiled with 1.5 to a previously created DB with 1.7
> version ....
> Cheers,
> Pablo
> On Sat, May 19, 2012 at 8:54 PM, David Montag <
> david.mon...@neotechnology.com> wrote:
>> Hi Pablo,
>> That's most likely caused by a version mismatch. What Neo4j version was
>> the store created with, and which version are you using to access it? Are
>> you running embedded?
>> Thanks,
>> David
>> On May 19, 2012 5:43 PM, "Pablo Pareja" <ppar...@era7.com> wrote:
>>> Hi,
>>> I'm getting this exception when using a Lucene index and don't have any
>>> idea why I might be getting it:
>>> SEVERE: null
>>> java.lang.RuntimeException:
>>> org.apache.lucene.index.CorruptIndexException: unrecognized format -3 in
>>> file "_2q.fnm"
>>> at
>>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:606)
>>> at
>>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexSearcher(LuceneDataSou rce.java:489)
>>> at
>>> org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:248)
>>> at
>>> org.neo4j.index.impl.lucene.LuceneIndex.get(LuceneIndex.java:187)
>>> at
>>> com.era7.bioinfo.bio4jmodel.util.NodeRetriever.getNCBITaxonByTaxId(NodeRetr iever.java:278)
>>> at
>>> com.era7.bioinfo.mg7.CountTaxonomyFreqs.main(CountTaxonomyFreqs.java:86)
>>> at
>>> com.era7.bioinfo.mg7.CountTaxonomyFreqs.execute(CountTaxonomyFreqs.java:44)
>>> at
>>> com.era7.lib.bioinfo.bioinfoutil.ExecuteFromFile.main(ExecuteFromFile.java: 66)
>>> at com.era7.bioinfo.mg7.MG7.main(MG7.java:34)
>>> Caused by: org.apache.lucene.index.CorruptIndexException: unrecognized
>>> format -3 in file "_2q.fnm"
>>> at org.apache.lucene.index.FieldInfos.read(FieldInfos.java:349)
>>> at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:71)
>>> at
>>> org.apache.lucene.index.IndexWriter.getFieldInfos(IndexWriter.java:1197)
>>> at
>>> org.apache.lucene.index.IndexWriter.getCurrentFieldInfos(IndexWriter.java:1 213)
>>> at
>>> org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1149)
>>> at
>>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:593)
>>> ... 8 more
>>> I'm using Neo4j 1.7 on a Linux machine.
>>> Any clues?
>>> Thanks!
david.mon...@neotechnology.com> wrote:
> It shouldn't be corrupted. It's just that 1.7 uses a later Lucene version
> that 1.5 can't read.
> -David
> On May 19, 2012 6:00 PM, "Pablo Pareja" <ppar...@era7.com> wrote:
>> Hi David,
>> Thanks for the quick response. You're right!
>> I was combining two different programs and one of them has a version
>> around 1.5 whilst the other one is built with 1.7, (silly me... :P )
>> I probably corrupted the DB then, because I was adding new content when
>> using the program compiled with 1.5 to a previously created DB with 1.7
>> version ....
>> Cheers,
>> Pablo
>> On Sat, May 19, 2012 at 8:54 PM, David Montag <
>> david.mon...@neotechnology.com> wrote:
>>> Hi Pablo,
>>> That's most likely caused by a version mismatch. What Neo4j version was
>>> the store created with, and which version are you using to access it? Are
>>> you running embedded?
>>> Thanks,
>>> David
>>> On May 19, 2012 5:43 PM, "Pablo Pareja" <ppar...@era7.com> wrote:
>>>> Hi,
>>>> I'm getting this exception when using a Lucene index and don't have any
>>>> idea why I might be getting it:
>>>> SEVERE: null
>>>> java.lang.RuntimeException:
>>>> org.apache.lucene.index.CorruptIndexException: unrecognized format -3 in
>>>> file "_2q.fnm"
>>>> at
>>>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:606)
>>>> at
>>>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexSearcher(LuceneDataSou rce.java:489)
>>>> at
>>>> org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:248)
>>>> at
>>>> org.neo4j.index.impl.lucene.LuceneIndex.get(LuceneIndex.java:187)
>>>> at
>>>> com.era7.bioinfo.bio4jmodel.util.NodeRetriever.getNCBITaxonByTaxId(NodeRetr iever.java:278)
>>>> at
>>>> com.era7.bioinfo.mg7.CountTaxonomyFreqs.main(CountTaxonomyFreqs.java:86)
>>>> at
>>>> com.era7.bioinfo.mg7.CountTaxonomyFreqs.execute(CountTaxonomyFreqs.java:44)
>>>> at
>>>> com.era7.lib.bioinfo.bioinfoutil.ExecuteFromFile.main(ExecuteFromFile.java: 66)
>>>> at com.era7.bioinfo.mg7.MG7.main(MG7.java:34)
>>>> Caused by: org.apache.lucene.index.CorruptIndexException: unrecognized
>>>> format -3 in file "_2q.fnm"
>>>> at org.apache.lucene.index.FieldInfos.read(FieldInfos.java:349)
>>>> at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:71)
>>>> at
>>>> org.apache.lucene.index.IndexWriter.getFieldInfos(IndexWriter.java:1197)
>>>> at
>>>> org.apache.lucene.index.IndexWriter.getCurrentFieldInfos(IndexWriter.java:1 213)
>>>> at
>>>> org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1149)
>>>> at
>>>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:593)
>>>> ... 8 more
>>>> I'm using Neo4j 1.7 on a Linux machine.
>>>> Any clues?
>>>> Thanks!
On Sat, May 19, 2012 at 6:11 PM, Pablo Pareja <ppar...@era7.com> wrote:
> Ok, thanks ;)
> Pablo
> On Sat, May 19, 2012 at 9:03 PM, David Montag <
> david.mon...@neotechnology.com> wrote:
>> It shouldn't be corrupted. It's just that 1.7 uses a later Lucene version
>> that 1.5 can't read.
>> -David
>> On May 19, 2012 6:00 PM, "Pablo Pareja" <ppar...@era7.com> wrote:
>>> Hi David,
>>> Thanks for the quick response. You're right!
>>> I was combining two different programs and one of them has a version
>>> around 1.5 whilst the other one is built with 1.7, (silly me... :P )
>>> I probably corrupted the DB then, because I was adding new content when
>>> using the program compiled with 1.5 to a previously created DB with 1.7
>>> version ....
>>> Cheers,
>>> Pablo
>>> On Sat, May 19, 2012 at 8:54 PM, David Montag <
>>> david.mon...@neotechnology.com> wrote:
>>>> Hi Pablo,
>>>> That's most likely caused by a version mismatch. What Neo4j version was
>>>> the store created with, and which version are you using to access it? Are
>>>> you running embedded?
>>>> Thanks,
>>>> David
>>>> On May 19, 2012 5:43 PM, "Pablo Pareja" <ppar...@era7.com> wrote:
>>>>> Hi,
>>>>> I'm getting this exception when using a Lucene index and don't have
>>>>> any idea why I might be getting it:
>>>>> SEVERE: null
>>>>> java.lang.RuntimeException:
>>>>> org.apache.lucene.index.CorruptIndexException: unrecognized format -3 in
>>>>> file "_2q.fnm"
>>>>> at
>>>>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:606)
>>>>> at
>>>>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexSearcher(LuceneDataSou rce.java:489)
>>>>> at
>>>>> org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:248)
>>>>> at
>>>>> org.neo4j.index.impl.lucene.LuceneIndex.get(LuceneIndex.java:187)
>>>>> at
>>>>> com.era7.bioinfo.bio4jmodel.util.NodeRetriever.getNCBITaxonByTaxId(NodeRetr iever.java:278)
>>>>> at
>>>>> com.era7.bioinfo.mg7.CountTaxonomyFreqs.main(CountTaxonomyFreqs.java:86)
>>>>> at
>>>>> com.era7.bioinfo.mg7.CountTaxonomyFreqs.execute(CountTaxonomyFreqs.java:44)
>>>>> at
>>>>> com.era7.lib.bioinfo.bioinfoutil.ExecuteFromFile.main(ExecuteFromFile.java: 66)
>>>>> at com.era7.bioinfo.mg7.MG7.main(MG7.java:34)
>>>>> Caused by: org.apache.lucene.index.CorruptIndexException: unrecognized
>>>>> format -3 in file "_2q.fnm"
>>>>> at org.apache.lucene.index.FieldInfos.read(FieldInfos.java:349)
>>>>> at
>>>>> org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:71)
>>>>> at
>>>>> org.apache.lucene.index.IndexWriter.getFieldInfos(IndexWriter.java:1197)
>>>>> at
>>>>> org.apache.lucene.index.IndexWriter.getCurrentFieldInfos(IndexWriter.java:1 213)
>>>>> at
>>>>> org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1149)
>>>>> at
>>>>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSourc e.java:593)
>>>>> ... 8 more
>>>>> I'm using Neo4j 1.7 on a Linux machine.
>>>>> Any clues?
>>>>> Thanks!