Starting in STAX V3.5.0, STAX now uses Jython 2.5.2 instead of Jython 2.1.
There were significant changes from Jython 2.1 to Jython 2.5.2.
There is no zxJDBC distributed with the Jython 2.1 that was packaged with
STAX 3.4.3 (as we do not distribute zxJDBC for some internal legal
reasons). We also did not provide zxJDBC with the Jython 2.5.2 that is
packaged with STAX V3.5.1. We removed zxJDBC from the jython.jar file by
removing directory com/ziclix from the jython.jar file.
You must have have installed zxJDBC for Jython 2.1 previously and were
using that (since it is not provided by STAX). So, you'll need to do the
same thing to use the zxJDBC provided with Jython 2.5.2..
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: "Assaf Grunfeld" <ass...@broadcom.com>
To: "staf-users@lists.sourceforge.net"
<staf-users@lists.sourceforge.net>,
Date: 11/10/2011 09:07 AM
Subject: [staf-users] zxJDBC issue with latest STAF/STAX version.
Hi,
I’ve recently upgraded STAF from version 3.4.2 to 3.4.7 and STAX 3.4.3
from version to 3.5.1
In my code I’m using zxJDBC to access DB.
On the old version everything is working fine.
On the upgraded version I’m getting the exception below on the following
line :
from com.ziclix.python.sql import zxJDBC
com.ibm.staf.service.stax.STAXPythonEvaluationException:
Traceback (most recent call last):
File "<pyExec string>", line 1, in <module>
java.lang.NoSuchMethodError:
org.python.core.PyBuiltinFunctionSet.<init>(Ljava/lang/String;IIIZLjava/lang/String;)V
at
com.ziclix.python.sql.zxJDBCFunc.<init>(zxJDBC.java:425)
at
com.ziclix.python.sql.zxJDBC.classDictInit(zxJDBC.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyJavaType.init(PyJavaType.java:534)
at org.python.core.PyType.createType(PyType.java:1264)
at org.python.core.PyType.addFromClass(PyType.java:1201)
at org.python.core.PyType.fromClass(PyType.java:1291)
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:1549)
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:863)
at org.python.core.imp.import_name(imp.java:849)
at org.python.core.imp.importName(imp.java:884)
at
org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at
org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importFromAs(imp.java:978)
at org.python.core.imp.importFrom(imp.java:954)
at org.python.pycode._pyx8972.f$0(<pyExec string>:4)
at org.python.pycode._pyx8972.call_function(<pyExec
string>)
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:1261)
at org.python.core.Py.exec(Py.java:1305)
at
org.python.util.PythonInterpreter.exec(PythonInterpreter.java:215)
at
com.ibm.staf.service.stax.STAXThread.pyExec(STAXThread.java:795)
at
com.ibm.staf.service.stax.STAXScriptAction.execute(STAXScriptAction.java:45)
at
com.ibm.staf.service.stax.STAXThread.execute(STAXThread.java:1769)
at
com.ibm.staf.service.stax.STAXThreadQueue$QueueThread.run(STAXThreadQueue.java:54)
java.lang.NoSuchMethodError: java.lang.NoSuchMethodError:
org.python.core.PyBuiltinFunctionSet.<init>(Ljava/lang/String;IIIZLjava/lang/String;)V
Can anyone help?!
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users