We hit this kind of problem when we upgraded STAF/STAX a couple of years
ago too, and it turned out to be due to the new STAF/STAX version including
a newer version of Python (technically Jython), which had subtly different
requirements. I don't remember the details right now because this was a
long time ago, but I do remember this specific error ("...an  integer is
required").

Suggestion: Look at the release notes for the specific version of STAF you
upgraded to (as well as for any versions that you skipped in-between your
"old" and "new" versions) and see if one of them mentions an upgrade to the
version of Python/Jython. If there was a change, then you probably need to
change your Python code in your <script> element, probably in some very
small ways, to get it to work. Whatever change you find, you'll need to
apply it globally throughout your STAX code base.

Off the top of my head, I remember that one specific thing we found was
that from the old to the new version of Python/Jython, the behavior of the
"from" and "include" directives changed, such that the following no longer
works:

  from com.ibm.staf import *

We found that we had to change it to a series of directives like:

  from com.ibm.staf import STAFHandle

...for each specific package that we wanted to import.

That *might* be the specific answer to your specific issue... if not then,
it's probably a different instance of the general problem 'something
changed in Python, and your code needs to adjust accordingly'.

If this doesn't lead to a solution, please provide a little more context; a
snippet of the STAX/Python code around the point of error would be very
useful. Your error occurred in the <script> element which begins at line
333 of framework.xml, more specifically at line 10 of that <script>
element.

---------------------------------------------------------------------------------------

Joe Veilleux
IBM/Lotus Domino Server Quality Engineering
550 King Street
Littleton MA 01460
Email: joeveill...@us.ibm.com




From:   deepak bhatt <engdeepak_bh...@yahoo.co.in>
To:     "staf-users@lists.sourceforge.net"
            <staf-users@lists.sourceforge.net>
Date:   06/19/2014 09:41 AM
Subject:        [staf-users] Python issue with new STAF



Hi ,

I recently updated my STAF version . I am getting below error while
execution which I never got with old version.
Did anybody have any idea what could be the issue.

---------------------------------------------------------------------------\
===== XML Information =====

File: /home/hydragui/ATF/lib/framework.xml, Machine: local
Line 333: Error in element type "script".

===== Python Error Information =====

com.ibm.staf.service.stax.STAXPythonEvaluationException:
Traceback (most recent call last):
  File "<pyExec string>", line 10, in <module>
OverflowError: an integer is required

===== Call Stack for STAX Thread 1 =====

[
  function: testSequence (Line: 12, File: /hom
--------------------------------------

Thanks in advance.

Regards,
Deepak
------------------------------------------------------------------------------

HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to