Message8148

Author eeiddne
Recipients eeiddne
Date 2013-10-08.15:16:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381245385.12.0.0457738487644.issue2097@psf.upfronthosting.co.za>
In-reply-to
Content
Further addition:

This issue seems to revolve around the way os.system handles return codes in Jython 2.5.2 vs older versions (somewhere between 2.2.0 & 2.5.2 - we have nto tried the intermediary versions)

os.system("/tmp/caclp.sh "+node)

1st when we run our Java application, it creates a main() thread which internally creates JobManager() thread and which internally creates a ActivityThread() and in that activityThread, we execute the caclp.sh script.


- It seems os.system is not happy with the return code from the sample scrit (which contains some unix commands) so when os.system() call has been executed, activityThread() name has been changed to mainThread()

and if we call maaPlugin(node) command, it is not getting the activityID, because it is out of that thread and it has gone to mainThread()
hence we get a NullPointerException...
History
Date User Action Args
2013-10-08 15:16:25eeiddnesetmessageid: <1381245385.12.0.0457738487644.issue2097@psf.upfronthosting.co.za>
2013-10-08 15:16:25eeiddnesetrecipients: + eeiddne
2013-10-08 15:16:25eeiddnelinkissue2097 messages
2013-10-08 15:16:24eeiddnecreate