On Thu, 10 Apr 2008, Bill Janssen wrote:

Now I tried to generate wrappers for GoodStuff.  Here's what I get:

% python -m jcc --jar GoodStuff.jar --package java.lang --package java.util 
--package java.io --build
terminate called after throwing an instance of 'JCCEnv::exception'
Abort
%

Looks like another missing class that's required by JCC:

(gdb) bt
#0  0x00953402 in __kernel_vsyscall ()
#1  0x0012a1c0 in raise () from /lib/i686/nosegneg/libc.so.6
#2  0x0012bba1 in abort () from /lib/i686/nosegneg/libc.so.6
#3  0x04f6e550 in __gnu_cxx::__verbose_terminate_handler ()
  from /usr/lib/libstdc++.so.6
#4  0x04f6c035 in ?? () from /usr/lib/libstdc++.so.6
#5  0x04f6c072 in std::terminate () from /usr/lib/libstdc++.so.6
#6  0x04f6c1aa in __cxa_throw () from /usr/lib/libstdc++.so.6
#7  0x0029b531 in JCCEnv::reportException ()
  from /usr/lib/python2.5/site-packages/JCC-1.8-py2.5-linux-i686.egg/jcc/_jcc.so
#8  0x0029a1b4 in JCCEnv::findClass ()
  from /usr/lib/python2.5/site-packages/JCC-1.8-py2.5-linux-i686.egg/jcc/_jcc.so
#9  0x002a1485 in findClass ()
  from /usr/lib/python2.5/site-packages/JCC-1.8-py2.5-linux-i686.egg/jcc/_jcc.so
#10 0x063a114d in PyCFunction_Call () from /usr/lib/libpython2.5.so.1.0
#11 0x063ee024 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#12 0x063edcdf in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#13 0x063eeb2f in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
#14 0x063eebb3 in PyEval_EvalCode () from /usr/lib/libpython2.5.so.1.0
#15 0x063ed54b in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#16 0x063eeb2f in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
#17 0x063ecd29 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#18 0x063eeb2f in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
#19 0x063ecd29 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#20 0x063eeb2f in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
#21 0x0638deaa in ?? () from /usr/lib/libpython2.5.so.1.0
#22 0x0636eee7 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
#23 0x06413ca1 in Py_Main () from /usr/lib/libpython2.5.so.1.0
#24 0x08048582 in main ()
(gdb)

Why can't JCCEnv::findClass() report this exception along with the
class name?

Hehe, it is. But there is no exception handler to report the error. So, process just quits. Yes, findClass() should be changed to catch that exception and report the error in Python.

Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to