On Thu, 6 Nov 2008, Aaron Lav wrote: > On Tue, Nov 04, 2008 at 01:25:10PM -0500, Aaron Lav wrote: >> On Tue, Nov 04, 2008 at 10:02:22AM -0800, Andi Vajda wrote: >>> >>> DateField.dateToString(Date(0,1,1)) >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in <module> >>> lucene.JavaError: java.lang.RuntimeException: time '-2206281600000' is >>> too early, must be >= 0 >> >> That's what I was expecting: I'll try to dig further to see what's wrong >> with my build environment that gives me the SystemError. > > I suspect the difference is that I was building in non-shared mode. > > The underlying code is in JCCEnv::reportException() > > if (vm_env->IsSameObject(cls, _thr)) > throw pythonError(throwable); > > and above, if _jcc_lib isn't defined: > > _thr = (jclass) > vm_env->NewGlobalRef(vm_env->FindClass("java/lang/RuntimeException")); > > and then macros.h returns NULL when it catches a pythonError. > > Andi, I presume you're building with shared? I'll try that, but it might > be nice to clear this up for non-shared builds.
Yeah, I reproduced this now too. It only happens with non-shared mode. The only difference here is supposed to me the exception class used. In shared, I use a class provided by jcc itself called PythonException. In non-shared mode, since jcc is not required to present, the class used is RuntimeException. I need to find where this class difference is causing this bug. Andi.. _______________________________________________ pylucene-dev mailing list pylucene-dev@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/pylucene-dev