[pylucene-dev] what's JCCEnv::exception?

Andi Vajda vajda at osafoundation.org
Wed Mar 5 19:05:57 PST 2008


On Wed, 5 Mar 2008, Bill Janssen wrote:

>> Ah ha, an unhandled C++ exception :)
>>
>> To debug this, run your process in gdb and get a stack trace.
>
> Yeah, I figured that out.
>
> Turns out it's a noSuchClass exception trying to load the Java class
> that corresponds to the C++ stub, in the initializeClass C++ code for
> that class.  I was using the --classpath flag to JCC to point to my
> jar file, so it wasn't bundled with the extension, and the Python
> CLASSPATH property was empty.  Once I used a real classpath to initVM,
> this went away.
>
> Though, why isn't this particular C++ exception handled?

Sometimes, it gets really hairy to handle a "class not found" exception. In 
particular during class initializations. If you send me the backtrace, I can 
give you a better answer, or maybe even a fix.

Andi..


More information about the pylucene-dev mailing list