Message from discussion
Weird exception with Lucene index
Received: by 10.180.88.170 with SMTP id bh10mr982758wib.3.1337476285674;
Sat, 19 May 2012 18:11:25 -0700 (PDT)
X-BeenThere: neo4j@googlegroups.com
Received: by 10.180.76.202 with SMTP id m10ls1526867wiw.1.canary; Sat, 19 May
2012 18:11:24 -0700 (PDT)
Received: by 10.180.88.170 with SMTP id bh10mr982757wib.3.1337476284039;
Sat, 19 May 2012 18:11:24 -0700 (PDT)
Received: by 10.180.88.170 with SMTP id bh10mr982756wib.3.1337476284024;
Sat, 19 May 2012 18:11:24 -0700 (PDT)
Return-Path: <ppar...@era7.com>
Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173])
by gmr-mx.google.com with ESMTPS id n4si3214951wiw.0.2012.05.19.18.11.23
(version=TLSv1/SSLv3 cipher=OTHER);
Sat, 19 May 2012 18:11:24 -0700 (PDT)
Received-SPF: neutral (google.com: 209.85.212.173 is neither permitted nor denied by best guess record for domain of ppar...@era7.com) client-ip=209.85.212.173;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.212.173 is neither permitted nor denied by best guess record for domain of ppar...@era7.com) smtp.mail=ppar...@era7.com
Received: by wibhj6 with SMTP id hj6so1144475wib.14
for <neo4j@googlegroups.com>; Sat, 19 May 2012 18:11:23 -0700 (PDT)
d=google.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type:x-gm-message-state;
bh=r8vd/IPTp2BgXDI+4MBzLVba4T/bia0Id94S+jnfUXE=;
b=Jkblr27yiA0UP9HecfIs/wg/mYqKD2LlNTiNvKys5qQkwCIvEAw7DNiW8jj909ZxuU
2HNlSzADO0oUaS1LksoMSvw3Dnenf9YvEte3CdKcvxgmj/pkPG2wXT29LbjAgqT59tLK
MsWRHQKztxSZsLXiS6Tqu50oA9Q6Y4RKRnWrattKp8q00hDYufETPfQQTuNniV7/+WwI
cy0R+PpCLOXuwoxCctfyo8H/0ah1zxGpNpnNXOyDiL9DDlryvpv44CR5tBzySyPC4/4t
/vMvGN2n/Qgc3HisgL92FZKcfn/39kBee9GH0eRMrdvfdw2KAXlfOnWyaNc+ng4z+TQW
Z7HQ==
MIME-Version: 1.0
Received: by 10.216.134.2 with SMTP id r2mr10382884wei.31.1337476283551; Sat,
19 May 2012 18:11:23 -0700 (PDT)
Received: by 10.216.202.193 with HTTP; Sat, 19 May 2012 18:11:23 -0700 (PDT)
In-Reply-To: <CADLsmutxGpD1i6geCtLhSZU2ne00jJWeUq+QKWzsBmkqadc...@mail.gmail.com>
References: <CAOukiE=C5U9i2ESqYJXgbM0WsbtTssc-26EaPhcjdKj8Oe+...@mail.gmail.com>
<CADLsmusGFQ1sY44-bwe8UvLzLYFTs5wwHry6dL2BR1-jcx0...@mail.gmail.com>
<CAOukiE=W5o8+5NsiuDg50dzp_sJ_+MCAkmMhmd+F3-o77SH...@mail.gmail.com>
<CADLsmutxGpD1i6geCtLhSZU2ne00jJWeUq+QKWzsBmkqadc...@mail.gmail.com>
Date: Sat, 19 May 2012 21:11:23 -0400
Message-ID: <CAOukiEkp520UjdFxAy62ac=mYWcQBUrfe616E3Jx55Mc+dd...@mail.gmail.com>
Subject: Re: [Neo4j] Weird exception with Lucene index
From: Pablo Pareja <ppar...@era7.com>
To: neo4j@googlegroups.com
Content-Type: multipart/alternative; boundary=0016e6d77c4ac6cf2a04c06d76f7
X-Gm-Message-State: ALoCoQmURNa02OBl2qzWitd8FiyerW9znA5pdncjoPQIAN4nw4Wtd++ghnrvrbxw5KwG2QgvHNfH
--0016e6d77c4ac6cf2a04c06d76f7
Content-Type: text/plain; charset=ISO-8859-1
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(LuceneDataSource.java:606)
>>>> at
>>>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexSearcher(LuceneDataSource.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(NodeRetriever.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:1213)
>>>> at
>>>> org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1149)
>>>> at
>>>> org.neo4j.index.impl.lucene.LuceneDataSource.getIndexWriter(LuceneDataSource.java:593)
>>>> ... 8 more
>>>>
>>>> I'm using Neo4j 1.7 on a Linux machine.
>>>> Any clues?
>>>> Thanks!
>>>>
>>>>
>>>> Pablo
>>>> --
>>>> Pablo Pareja Tobes
>>>>
>>>> My site http://about.me/pablopareja
>>>> LinkedIn http://www.linkedin.com/in/pabloparejatobes
>>>> Twitter http://www.twitter.com/pablopareja
>>>>
>>>> Creator of Bio4j --> http://www.bio4j.com
>>>>
>>>> http://www.ohnosequences.com
>>>>
>>>>
>>
>>
>> --
>> Pablo Pareja Tobes
>>
>> My site http://about.me/pablopareja
>> LinkedIn http://www.linkedin.com/in/pabloparejatobes
>> Twitter http://www.twitter.com/pablopareja
>>
>> Creator of Bio4j --> http://www.bio4j.com
>>
>> http://www.ohnosequences.com
>>
>>
--
Pablo Pareja Tobes
My site http://about.me/pablopareja
LinkedIn http://www.linkedin.com/in/pabloparejatobes
Twitter http://www.twitter.com/pablopareja
Creator of Bio4j --> http://www.bio4j.com
http://www.ohnosequences.com
--0016e6d77c4ac6cf2a04c06d76f7
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div>Ok, thanks ;)</div><div><br></div><div>Pablo</div><br><div class=3D"gm=
ail_quote">On Sat, May 19, 2012 at 9:03 PM, David Montag <span dir=3D"ltr">=
<<a href=3D"mailto:david.mon...@neotechnology.com" target=3D"_blank">dav=
id.mon...@neotechnology.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><p>It shouldn't be corrupted. It's j=
ust that 1.7 uses a later Lucene version that 1.5 can't read.</p><span =
class=3D"HOEnZb"><font color=3D"#888888">
<p>-David</p></font></span><div class=3D"HOEnZb"><div class=3D"h5">
<div class=3D"gmail_quote">On May 19, 2012 6:00 PM, "Pablo Pareja"=
; <<a href=3D"mailto:ppar...@era7.com" target=3D"_blank">ppar...@era7.co=
m</a>> wrote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi David,=A0<div><br></div><div>Thanks for the quick response. You're r=
ight!=A0</div><div>I was combining two different programs and one of them h=
as a version around 1.5 whilst the other one is built with 1.7, (silly me..=
. :P )</div>
<div>I probably corrupted the DB then, because I was adding new content whe=
n using the program compiled with 1.5 to a previously created DB with 1.7 v=
ersion ....=A0</div><div><br></div><div>Cheers,</div><div><br></div><div>
Pablo=A0<br><br><div class=3D"gmail_quote">On Sat, May 19, 2012 at 8:54 PM,=
David Montag <span dir=3D"ltr"><<a href=3D"mailto:david.montag@neotechn=
ology.com" target=3D"_blank">david.mon...@neotechnology.com</a>></span> =
wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><p>Hi Pablo,</p>
<p>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? A=
re you running embedded? </p>
<p>Thanks,<br>
David </p><div><div>
<div class=3D"gmail_quote">On May 19, 2012 5:43 PM, "Pablo Pareja"=
; <<a href=3D"mailto:ppar...@era7.com" target=3D"_blank">ppar...@era7.co=
m</a>> wrote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><br></div><div>I'm getting this exception when using a Lucene i=
ndex and don't have any idea why I might be getting it:</div><div><br><=
/div><div><div>SEVERE: null</div><div>java.lang.RuntimeException: org.apach=
e.lucene.index.CorruptIndexException: unrecognized format -3 in file "=
_2q.fnm"</div>
<div>=A0 =A0 =A0 =A0 at org.neo4j.index.impl.lucene.LuceneDataSource.getInd=
exWriter(LuceneDataSource.java:606)</div><div>=A0 =A0 =A0 =A0 at org.neo4j.=
index.impl.lucene.LuceneDataSource.getIndexSearcher(LuceneDataSource.java:4=
89)</div><div>
=A0 =A0 =A0 =A0 at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneInde=
x.java:248)</div><div>=A0 =A0 =A0 =A0 at org.neo4j.index.impl.lucene.Lucene=
Index.get(LuceneIndex.java:187)</div><div>=A0 =A0 =A0 =A0 at com.era7.bioin=
fo.bio4jmodel.util.NodeRetriever.getNCBITaxonByTaxId(NodeRetriever.java:278=
)</div>
<div>=A0 =A0 =A0 =A0 at com.era7.bioinfo.mg7.CountTaxonomyFreqs.main(CountT=
axonomyFreqs.java:86)</div><div>=A0 =A0 =A0 =A0 at com.era7.bioinfo.mg7.Cou=
ntTaxonomyFreqs.execute(CountTaxonomyFreqs.java:44)</div><div>=A0 =A0 =A0 =
=A0 at com.era7.lib.bioinfo.bioinfoutil.ExecuteFromFile.main(ExecuteFromFil=
e.java:66)</div>
<div>=A0 =A0 =A0 =A0 at com.era7.bioinfo.mg7.MG7.main(MG7.java:34)</div><di=
v>Caused by: org.apache.lucene.index.CorruptIndexException: unrecognized fo=
rmat -3 in file "_2q.fnm"</div><div>=A0 =A0 =A0 =A0 at org.apache=
.lucene.index.FieldInfos.read(FieldInfos.java:349)</div>
<div>=A0 =A0 =A0 =A0 at org.apache.lucene.index.FieldInfos.<init>(Fie=
ldInfos.java:71)</div><div>=A0 =A0 =A0 =A0 at org.apache.lucene.index.Index=
Writer.getFieldInfos(IndexWriter.java:1197)</div><div>=A0 =A0 =A0 =A0 at or=
g.apache.lucene.index.IndexWriter.getCurrentFieldInfos(IndexWriter.java:121=
3)</div>
<div>=A0 =A0 =A0 =A0 at org.apache.lucene.index.IndexWriter.<init>(In=
dexWriter.java:1149)</div><div>=A0 =A0 =A0 =A0 at org.neo4j.index.impl.luce=
ne.LuceneDataSource.getIndexWriter(LuceneDataSource.java:593)</div><div>=A0=
=A0 =A0 =A0 ... 8 more</div>
<div><br></div><div>I'm using Neo4j 1.7 on a Linux machine.</div><div>A=
ny clues?</div><div>Thanks!</div><div><br></div><div><br></div><div>Pablo</=
div>-- <br>Pablo Pareja Tobes=A0<div><br><div>My site =A0 =A0=A0<a href=3D"=
http://about.me/pablopareja" target=3D"_blank">http://about.me/pablopareja<=
/a><div>
<div><div>LinkedIn =A0 =A0<a href=3D"http://www.linkedin.com/in/pablopareja=
tobes" target=3D"_blank">http://www.linkedin.com/in/pabloparejatobes</a></d=
iv><div>Twitter =A0 =A0 =A0=A0<a href=3D"http://www.twitter.com/pablopareja=
" target=3D"_blank">http://www.twitter.com/pablopareja</a></div>
<div><br></div><div>Creator of Bio4j --> <a href=3D"http://www.bio4j.com=
" target=3D"_blank">http://www.bio4j.com</a></div><div><br></div><div><a hr=
ef=3D"http://www.ohnosequences.com" target=3D"_blank">http://www.ohnosequen=
ces.com</a></div>
</div></div></div></div><br>
</div>
</blockquote></div>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
Pablo Pareja Tobes=A0<div><br><div>My site =A0 =A0=A0<a href=3D"http://abou=
t.me/pablopareja" target=3D"_blank">http://about.me/pablopareja</a><div><di=
v><div>LinkedIn =A0 =A0<a href=3D"http://www.linkedin.com/in/pabloparejatob=
es" target=3D"_blank">http://www.linkedin.com/in/pabloparejatobes</a></div>
<div>Twitter =A0 =A0 =A0=A0<a href=3D"http://www.twitter.com/pablopareja" t=
arget=3D"_blank">http://www.twitter.com/pablopareja</a></div><div><br></div=
><div>Creator of Bio4j --> <a href=3D"http://www.bio4j.com" target=3D"_b=
lank">http://www.bio4j.com</a></div>
<div><br></div><div><a href=3D"http://www.ohnosequences.com" target=3D"_bla=
nk">http://www.ohnosequences.com</a></div></div></div></div></div><br>
</div>
</blockquote></div>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
Pablo Pareja Tobes=A0<div><br><div>My site =A0 =A0=A0<a href=3D"http://abou=
t.me/pablopareja" target=3D"_blank">http://about.me/pablopareja</a><div><di=
v><div>LinkedIn =A0 =A0<a href=3D"http://www.linkedin.com/in/pabloparejatob=
es" target=3D"_blank">http://www.linkedin.com/in/pabloparejatobes</a></div>
<div>Twitter =A0 =A0 =A0=A0<a href=3D"http://www.twitter.com/pablopareja" t=
arget=3D"_blank">http://www.twitter.com/pablopareja</a></div><div><br></div=
><div>Creator of Bio4j --> <a href=3D"http://www.bio4j.com" target=3D"_b=
lank">http://www.bio4j.com</a></div>
<div><br></div><div><a href=3D"http://www.ohnosequences.com" target=3D"_bla=
nk">http://www.ohnosequences.com</a></div></div></div></div></div><br>
--0016e6d77c4ac6cf2a04c06d76f7--