[Jepp-users] from jep.jdbc import connect - jep.JepException (junit framework TestCase ?)
Brought to you by:
mrjohnson0
From: Douglas B. <bea...@ie...> - 2013-03-04 22:48:38
|
Evaluating Jep 3.1 for possible use in a Tomcat-based web application, here I'm trying to follow the example notes at http://www.mrj0.com/2012/06/jep_3.1/ with plans on substitute a Microsoft JDBC driver (which you see here is found successfully based on the CLASSPATH environment variable). --- --- --- --- --- --- --- --- --- --- My-iMac:pythonstuff dbeattie$ set | grep LD DYLD_LIBRARY_PATH=/usr/lib LD_LIBRARY_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ LD_PRELOAD=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib My-iMac:pythonstuff dbeattie$ set | grep CLASS CLASSPATH=/Users/dbeattie/Eclipse/workspace/MyWebapp/WebContent/WEB-INF/lib/sqljdbc4.jar My-iMac:pythonstuff dbeattie$ jep >>> jep.findClass('com.microsoft.sqlserver.jdbc.SQLServerDriver') <PyJobject object at 0x116884ae0> >>> from jep.jdbc import connect init: Bootstrapping class not in Py.BOOTSTRAP_TYPES[class=class org.python.core.PyMethodDescr] init: Bootstrap types weren't encountered in bootstrapping: [class org.python.core.PyBuiltinCallable] Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jep/console.py", line 46, in prompt ran = jep.eval(line) JavaException: jep.JepException: <class 'jep.JavaException'>: junit/framework/TestCase >>> exit() Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jep/console.py", line 46, in prompt ran = jep.eval(line) JavaException: jep.JepException: <type 'exceptions.SystemExit'>: None >>> --- --- --- --- --- --- --- --- --- --- Okay, I'm certainly no expert, but it looks like maybe there's a unit test being run in the release version of Jep 3.1, and an exception on exit() -- which I don't see if I exit using Ctrl-D ... and can someone explain why the exception is occurring on the attempt to import from 'jep.jdbc'? -- Douglas Beattie |