Message8151
Please help me in this issue.
FYI.
Problem:
After we move from Jython 2.2.1 to 2.5.2 we are facing the issue were our scripts are not fully running.
Description:
We have Jython scripts in our product and we will run this script through python interrupter via Jython.jar
Previously everything was fine.
But after we install the latest 2.5.2 jython version we are facing this issue.
Jython Code snippet:
Import statements
Declaration
os.system(<some command>);
Followed by our code
till the os.system command everything works fine.After that if we give any print statement its working.But our main code is not working.
If we remove os.system then everything is working fine.
Not sure how os.sytem is impacting our code.
If we execute our code with os.system jythonIntrepter thread ends soon without executing the full code.
No exception has been thrown from Jython.ie) python Intrupter in Jython.jar
Java Code snippet:
org.python.util.PythonInterpreter.exec(taskScript); This PythonInterpreter class belongs to jython.jar
This is not throwing any exception but our scripts are failing in the middle.
1. old Jython2.2.1 ---> No Issue
2. New Jython2.5.2 --> Issue
Could you please help me out in finding the issue ?
Code Snippet is has follows:
-----------------------------------------------------------------
class NULLpointer:
import os
import re
import string
import time
from com.ericsson.nms.umts.cnos.config.activitysupport.maaPlugin import MaaPlugin
from java.lang import *
maaPlugin = MaaPlugin(node)
maaPlugin.reportProgress(10)
maaPlugin.start() //Its running in a "Tread"
maaPlugin.putInLog("CACLP from shell /tmp/caclp.sh "+node)
res=os.system("/tmp/caclp.sh "+node)
maaPlugin.end()
maaPlugin = MaaPlugin(node)
maaPlugin.start() //After system call Tread is changing to main tread.
maaPlugin.reportProgress(90)
maaPlugin.end()
If you need any further information, please do let me know. |
|
Date |
User |
Action |
Args |
2013-10-15 11:17:51 | pradeepkumarhs | set | messageid: <1381835871.48.0.348882662989.issue2098@psf.upfronthosting.co.za> |
2013-10-15 11:17:51 | pradeepkumarhs | set | recipients:
+ pradeepkumarhs, pjenvey, zyasoft |
2013-10-15 11:17:51 | pradeepkumarhs | link | issue2098 messages |
2013-10-15 11:17:50 | pradeepkumarhs | create | |
|