|
执行脚本,脚本本身可以通过,调用也正常,但是会提示提示错误 (-17998): 获取 [param not passed in call] 线程 TLS 项失败。度娘后提示我说没有新建事物,但是我已经确认新增了事务,依然报错,求问什么原因?
谢谢
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import com.suning.ssf.endpoint.service.GenericService;
import lrapi.lr;
public class Actions
{
private static volatile GenericService genericService;
private static String path="C:/TestCase/jar/20160721/beans-bill-ssf-client.xml";
static{
FileSystemXmlApplicationContext ctx=new FileSystemXmlApplicationContext(path);
genericService = (GenericService)ctx.getBean("eppFSPGenericServer");
}
public int init() throws Throwable {
return 0;
}//end of init
public int action() throws Throwable {
Map reqMap = new HashMap();
Map resMap;
reqMap.put("rate", "<rate>");//参数化 <rate>
reqMap.put("productType", "<productType>"); //参数化<productType>
reqMap.put("sortWay", "default"); //参数化 default
reqMap.put("currentPageNo", "1");
reqMap.put("pageSize","1"); //参数化 <pageSize>
reqMap.put("loanPeriod","<loanPeriod>"); //参数化 <loanPeriod>
resMap = genericService.synCall("queryProductList", reqMap);
lr.start_transaction("queryProductList");
lr.log_message("resmap;" + resMap);
//判断retMsg返回值,返回成功值,及返回有效参数,记录为成功
if ("成功".equals(resMap.get("retMsg").toString())) {
lr.log_message("++++++++++++++++++++++++++++++++++++++++++++成功+++++++++++++++++++++++++++++++=+++++++++++");
lr.end_transaction("queryProductList", lr.PASS);
}else{
lr.log_message("++++++++++++++++++++++++++++++++++++++++++++失败+++++++++++++++++++++++++++++++++++++++++++");
lr.end_transaction("queryProductList", lr.FAIL);
}
return 0;
}
public int end() throws Throwable {
return 0;
}
}
|
|