英文:
Error assigning variable in ODI 12.2.1.4: java code works in 12.2.1.3
问题
有一个使用Java BeanShell技术的过程,执行以下操作:
**<@
String res="<?=p_valuexx?>";
@>**
该过程返回许多变量p_xxx(以及上面包括的一个变量)。
ODI中的下一步是变量赋值:
**<@=res@>**
这会失败,并显示以下错误消息:
oracle.odi.runtime.agent.exception.ExecutionEngineException: com.sunopsis.tools.core.exception.SnpsSimpleMessageException:
ODI-17517: 任务解释期间发生错误。
任务:5
com.sunopsis.tools.core.exception.SnpsSimpleNLSMessageException: ODI-17810: BeanShell评估期间发生错误:BeanShell脚本错误:
来源文件:内联评估内容:out.print(res) ; ;'' : 未定义的参数:res :在行:1中 :在文件:内联评估中 of:
out.print(res) ; ;'' :( res )
BSF信息:null,位于行:0,列:columnNo,预执行代码:
相同的代码在12.2.1.3中正常工作。
英文:
There is a procedure with Java BeanShell technology that does the following:
**<@
String res="<?=p_valuexx?>";
@>**
Procedure returns lots of variables p_xxx (and one above including).
The next step in ODI does the variable assignment:
**<@=res@>**
this fails with the following error message:
oracle.odi.runtime.agent.exception.ExecutionEngineException: com.sunopsis.tools.core.exception.SnpsSimpleMessageException:
ODI-17517: Error during task interpretation.
Task: 5
com.sunopsis.tools.core.exception.SnpsSimpleNLSMessageException: ODI-17810: Error during BeanShell evaluation: BeanShell script
error: Sourced file: inline evaluation of: out.print(res) ; ;'' :
out.print(res) ; ;'' : ( res )
Undefined argument: res : at Line: 1 : in file: inline evaluation
of:
BSF info: null at line: 0 column: columnNo, Pre-execution code:
The same code is working just fine in 12.2.1.3
专注分享java语言的经验与见解,让所有开发者获益!
评论