Robert Oschler
2002-11-03 22:10:55 UTC
Hello,
I'm running NetBeans 3.34 with the Sun JDK/SDK version 1.4.1_01b, on a Win
2k box. I'm trying to integrate Jython 2.1 into my test app. I created a
Frame where originally I tried starting the Jython interpreter when a button
was hit. I got the error dump shown below. I did some Google searching and
checked the Jython users mailing list archives, and saw some posts regarding
Jython and multi-threading problems. So I moved the code that tries to
instantiate the jython interpreter into the static main() function that
creates and shows the Frame. Same error dump. Does anyone know what to do
here?
thx
-------------------------------------------------
Error Dump caused by line> PythonInterpreter interp = new
PythonInterpreter():
java.lang.NullPointerException
at
org.python.core.PyJavaClass.lookup(PyJavaClass.java:39)
at
org.python.core.PyObject.<init>(PyObject.java:46)
at
org.python.core.PySingleton.<init>(PySingleton.java:8)
at
org.python.core.PyNone.<init>(PyNone.java:7)
at
org.python.core.PySystemState.initStaticFields(PySystemState.java:34)
at
org.python.core.PySystemState.initialize(PySystemState.java:320)
at
org.python.core.PySystemState.initialize(PySystemState.java:294)
at
org.python.core.PySystemState.initialize(PySystemState.java:287)
at
org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:61)
at
org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:45)
I'm running NetBeans 3.34 with the Sun JDK/SDK version 1.4.1_01b, on a Win
2k box. I'm trying to integrate Jython 2.1 into my test app. I created a
Frame where originally I tried starting the Jython interpreter when a button
was hit. I got the error dump shown below. I did some Google searching and
checked the Jython users mailing list archives, and saw some posts regarding
Jython and multi-threading problems. So I moved the code that tries to
instantiate the jython interpreter into the static main() function that
creates and shows the Frame. Same error dump. Does anyone know what to do
here?
thx
-------------------------------------------------
Error Dump caused by line> PythonInterpreter interp = new
PythonInterpreter():
java.lang.NullPointerException
at
org.python.core.PyJavaClass.lookup(PyJavaClass.java:39)
at
org.python.core.PyObject.<init>(PyObject.java:46)
at
org.python.core.PySingleton.<init>(PySingleton.java:8)
at
org.python.core.PyNone.<init>(PyNone.java:7)
at
org.python.core.PySystemState.initStaticFields(PySystemState.java:34)
at
org.python.core.PySystemState.initialize(PySystemState.java:320)
at
org.python.core.PySystemState.initialize(PySystemState.java:294)
at
org.python.core.PySystemState.initialize(PySystemState.java:287)
at
org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:61)
at
org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:45)