Java errors are reported via a PyLucene.JavaError exception class which could can catch. The first and only argument of that exception is the Java Exception object itself, wrapped as a java.lang.Throwable by SWIG on which you can call getClass().getName() for type information, for example.
As for the error itself, you may be able to avoid it by closing some files. I remember seeing a similar question on the Lucene java user mailing list,
[email protected] which you should follow as it covers many non-java-specific Lucene issues.
Andi..
On Tue, 26 Apr 2005, Victor Peinado wrote:
Hi all,
I keep on playing around with PyLucene and I must say it's great. But I have a small question: how do you usually manage the following error? "JavaError: java.io.IOException: Too many open files".
I know I should change my ulimit parameter in bash to allow a greater number of files to be opened but I'd like to tune and modify that value only when needed. Is it possible to catch that Java exception from Python?? Thanks.
Cheers,
-- V�ctor Peinado || <vitojph /> || http://nlp.uned.es/~victor
_______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
_______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
