lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@apache.org>
Subject Re: initVM() crash and web.py
Date Mon, 15 Jun 2009 20:25:28 GMT

On Mon, 15 Jun 2009, Neha Gupta wrote:

> I have lucene-2.4.1-py2.5-macosx-10.5-i386.egg installed which I believe
> should be the latest?

You have the latest lucene but maybe not the latest PyLucene.
The complete version is encoded in the source archive you downloaded.
The very latest PyLucene was released in May and has version 2.4.1-2.
It is a refresher release with some bug fixes.

Andi..

> 
> - 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.htm
> l.<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
View raw message