不能编译 javascript: org.mozilla.javascript.EvaluatorException: Too deep recursion while parsing

请问一下,哪位大神用kettle5.4做JOB用到循环时,放在web jar包跑的时候,有没有遇到过这种错误?ERROR (version 5.4.1.8-209, build 1 from 2016-10-22 07.42.42 by buildguy) : 不能编译 javascript: org.mozilla.javascript.EvaluatorException: Too deep recursion while parsing (<cmd>#7)

javascript的脚本如下:
var list_Tables =parent_job.getVariable("tables").replace("[","").replace("]","").split(",");
var size = new Number(parent_job.getVariable("size"));
var i = new Number(parent_job.getVariable("i"))+1;
if(i<size){
var tmp = list_Tables[i];
var arr=tmp.split("~");
parent_job.setVariable("PATIENT_ID", arr[0]);
parent_job.setVariable("HOSPTAL_ID", arr[1]);
}
parent_job.setVariable("i",i);
true;

评论 (0)链接2018-08-29 
德问是一个专业的编程问答社区,请 登录注册 后再提交答案