From: Peter B. <bri...@ma...> - 2001-08-07 05:45:38
|
Hi! I've got some jython code that works fine when run with jython but breaks down when compiled and run with java. Here's the message I'm seeing. > Java Traceback: > > at org.python.core.Py.JavaError(Py.java, Compiled Code) > at org.python.core.PyTableCode.call(PyTableCode.java, Compiled Code) > at org.python.core.imp.createFromCode(imp.java, Compiled Code) > at org.python.core.imp.createFromClass(imp.java, Compiled Code) > at org.python.core.imp.loadPrecompiled(imp.java, Compiled Code) > at org.python.core.imp.loadFromPath(imp.java, Compiled Code) > at org.python.core.imp.loadFromPath(imp.java, Compiled Code) > at org.python.core.imp.load(imp.java, Compiled Code) > at org.python.core.imp.load(imp.java, Compiled Code) > at org.python.core.imp.importName(imp.java, Compiled Code) > at org.python.core.imp.importName(imp.java, Compiled Code) > at org.python.core.ImportFunction.load(__builtin__.java, Compiled Code) > at org.python.core.ImportFunction.__call__(__builtin__.java, Compiled Code) > at org.python.core.PyObject.__call__(PyObject.java, Compiled Code) > at org.python.core.__builtin__.__import__(__builtin__.java, Compiled Code) > at org.python.core.imp.importFromAs(imp.java, Compiled Code) > at pbj.jpy.pbjgraph$_PyInner.main$35(pbjgraph.java, Compiled Code) > [...] > Traceback (innermost last): > File "/home/brinkman/prog/java/train/pbjp/pbjgraph.py", line 0, in main > File "/home/brinkman/prog/java/gumbie/MenuMaker.py", line 0, in main > java.lang.ExceptionInInitializerError: java.lang.NullPointerException > I've narrowed it down to trouble with the 'os' package. It appears that I can import it without trouble, but any attempt to use it (e.g., use 'os.curdir' or 'os.path.join') causes an exception like the one above. Any ideas? Thanks, Peter |