lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neha Gupta <gupta.n...@gmail.com>
Subject Re: initVM() crash and web.py
Date Mon, 15 Jun 2009 20:12:10 GMT
I have lucene-2.4.1-py2.5-macosx-10.5-i386.egg installed which I believe
should be the latest?

- Neha

On Mon, Jun 15, 2009 at 3:36 PM, Andi Vajda <vajda@apache.org> wrote:

>
> On Mon, 15 Jun 2009, Neha Gupta wrote:
>
>  The problem am having is that when I send a few requests one after the
>> other
>> then the server crashes. I tried to put initVM() right after import lucene
>> statement at the top of the program but the crash still happens. I also
>> read
>> this post:
>>
>> http://lists.osafoundation.org/pipermail/pylucene-dev/2008-April/002634.html
>> .<
>> http://lists.osafoundation.org/pipermail/pylucene-dev/2008-April/002634.html
>> >
>> The problem seems familiar to mine, however, am not sure where should I
>> put
>> initVM(). Should I also be calling env.attachCurrentThread() somewhere?
>>
>
> initVM() needs to be called once.
> attachCurrentThread() must be called once per thread calling into the Java
> VM.
>
> Here is the relevant documentation:
> http://lucene.apache.org/pylucene/jcc/documentation/readme.html#api
>
> You're probably using a old version of PyLucene as the latest are supposed
> to no longer be crashing if you forget these calls. What version of PyLucene
> are you using ?
>
> Get the latest from here:
> http://www.apache.org/dyn/closer.cgi/lucene/pylucene/
>
>  I am very new to pylucene, any help would be great.
>>
>
> Did you read the docs ?
>
> http://lucene.apache.org/pylucene/documentation/readme.html
> http://lucene.apache.org/pylucene/jcc/documentation/readme.html
>
> Andi..
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message