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

Bill Janssen janssen at parc.com
Wed Mar 5 17:57:24 PST 2008


> 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?

Bill


More information about the pylucene-dev mailing list