From: Sahoo,
Shiva P. \(T. Analyst-US\) <Shi...@ml...> - 2006-10-03 16:39:48
|
Hi, I'm passing python script to the STAX service which is not getting executed and giving me error. For example : location : local service : stax serviceArg : EXECUTE FILE {STAF/Config/STAFRoot}/datalink5.0/DataLinkDriver.xml MACHINE local FUNCTION main ARGS "[['30.6.20.152','/apps/datalink/QA_AREA/data'],'{STAF/Config/STAFRoot}/ datalink5.0/log',None,None,'5','5','0'] SCRIPT "from com.ml.datalink.test.python.util import * Service.release() Action.release() Service.instance('VMaster.LDN.TradeFeed.Service','/apps/datalink/QA_AREA /dl5_ldn','30.6.20.152','5100','['VMaster.LDN.TradeFeed.Source.fpml3.0', 'PTC.NY.TradeFeed.Sender'],['VMaster.LDN.TradeFeed.Source.fpml3.0.IQ.rou ter','test.IQ.router'] Action('StopServiceMain')" I'm getting following exeception. Exception in thread "main" com.ibm.staf.STAFException: You may have no more than 0 argument(s). You specified 8 argument(s). The first excess argument is, from. at com.ibm.staf.STAFHandle.STAFSubmit(Native Method) at com.ibm.staf.STAFHandle.submit(STAFHandle.java:47) at com.ml.webcortex.xe5.Executor.execute(Executor.java:42) at com.ml.webcortex.xe5.Executor.main(Executor.java:169) I tried to pass the script as multiline. But, that also not working. serviceArg :EXECUTE FILE {STAF/Config/STAFRoot}/datalink5.0/DataLinkDriver.xml MACHINE local FUNCTION main ARGS "[['30.6.20.152','/apps/datalink/QA_AREA/data'],'{STAF/Config/STAFRoot}/ datalink5.0/log',None,None,'5','5','0'] SCRIPT "from com.ml.datalink.test.python.util import * Service.release() Action.release() Service.instance('VMaster.LDN.TradeFeed.Service','/apps/datalink/QA_AREA /dl5_ldn','30.6.20.152','5100','['VMaster.LDN.TradeFeed.Source.fpml3.0', 'PTC.NY.TradeFeed.Sender'],['VMaster.LDN.TradeFeed.Source.fpml3.0.IQ.rou ter','test.IQ.router'] Action('StopServiceMain') " Plz, look in to and let me know. Regards, Shiva Prasad Sahoo Merrill Lynch. Ph No : +1 201 671 2518 |