Issue1377
Created on 2009-06-16.15:41:42 by frozenPhantom, last changed 2009-06-23.06:51:37 by cgroves.
Messages | |||
---|---|---|---|
msg4814 (view) | Author: frozenPhantom (frozenPhantom) | Date: 2009-06-16.15:41:41 | |
Hi, i´m testing jython 2.5rc4 on a windows machine and found a case that used to work fine with jython 2.2.1 but it does not work now. I´m using an external jar to connect to my company's AS400 (http://jt400.sourceforge.net/). This simple program works fine with jython 2.2.1: import sys sys.path.append("C:/temp/jt400Native.jar") from com.ibm.as400.access import AS400 if __name__ == "__main__": my400 = AS400() print "Done" But with jython 2.5rc4 i get a NullPointerException: Traceback (most recent call last): File "C:\Documents and Settings\userX\Mis documentos\Programming\python\PyDevTest\src\test\__init__.py", line 4, in <module> from com.ibm.as400.access import AS400 java.lang.NullPointerException at org.python.core.PyJavaType.init(PyJavaType.java:403) at org.python.core.PyType.createType(PyType.java:1152) at org.python.core.PyType.addFromClass(PyType.java:1126) at org.python.core.PyType.fromClass(PyType.java:1169) at org.python.core.adapter.ClassicPyObjectAdapter$6.adapt(ClassicPyObjectAdapter.java:76) at org.python.core.adapter.ExtensiblePyObjectAdapter.adapt(ExtensiblePyObjectAdapter.java:44) at org.python.core.adapter.ClassicPyObjectAdapter.adapt(ClassicPyObjectAdapter.java:120) at org.python.core.Py.java2py(Py.java:1485) at org.python.core.PyJavaPackage.addClass(PyJavaPackage.java:89) at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:138) at org.python.core.PyObject.__findattr__(PyObject.java:869) at org.python.core.imp.import_name(imp.java:756) at org.python.core.imp.importName(imp.java:791) at org.python.core.ImportFunction.__call__(__builtin__.java:1236) at org.python.core.PyObject.__call__(PyObject.java:367) at org.python.core.__builtin__.__import__(__builtin__.java:1207) at org.python.core.imp.importFromAs(imp.java:869) at org.python.core.imp.importFrom(imp.java:845) at org.python.pycode._pyx0.f$0(C:\Documents and Settings\userX\Mis documentos\Programming\python\PyDevTest\src\test\__init__.py:8) at org.python.pycode._pyx0.call_function(C:\Documents and Settings\userX\Mis documentos\Programming\python\PyDevTest\src\test\__init__.py) at org.python.core.PyTableCode.call(PyTableCode.java:165) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1197) at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:166) at org.python.util.jython.run(jython.java:229) at org.python.util.jython.main(jython.java:117) java.lang.NullPointerException: java.lang.NullPointerException Thanks |
|||
msg4854 (view) | Author: Charlie Groves (cgroves) | Date: 2009-06-23.06:51:37 | |
Fixed in r6498. Thanks for the report! |
History | |||
---|---|---|---|
Date | User | Action | Args |
2009-06-23 06:51:37 | cgroves | set | status: open -> closed resolution: fixed messages: + msg4854 nosy: + cgroves |
2009-06-16 15:41:42 | frozenPhantom | create |
Supported by Python Software Foundation,
Powered by Roundup