本文介绍了从BI服务器执行ETL JAR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从ETL执行jar文件-效果很好.当我尝试从xaction调用相同的ETL时-这显示为错误,

I am trying to Execute a jar file from ETL - This works fine .When i am trying to call same ETL from xaction - This is showing errors as ,

     ERROR 05-02 09:58:28,491 - Call Data Importer - org.pentaho.di.core.exception.KettleValueException:

 Javascript error:TypeError: Cannot call property runImageImpoter in object [JavaPackage com.MyTest.Data.Importer]. It is not a function, it is "object".

在 org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:458) 在 org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:689) 在org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)处 java.lang.Thread.run(未知源)由: org.mozilla.javascript.EcmaError:TypeError:无法调用属性 对象[JavaPackage com.MyTest.Data.Importer]中的runImageImpoter.它 不是功能,而是对象". (脚本5)在 org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3557) 在 org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3535) 在 org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3563) 在 org.mozilla.javascript.ScriptRuntime.typeError3(ScriptRuntime.java:3589) 在 org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3649) 在 org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2186) 在org.mozilla.javascript.gen.c21._c0(script:5)处 org.mozilla.javascript.gen.c21.call(script)位于 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401) 在 org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003) 在org.mozilla.javascript.gen.c21.call(script) org.mozilla.javascript.gen.c21.exec(script)在 org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:377) ...还有3个

at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:458) at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:689) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50) at java.lang.Thread.run(Unknown Source) Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call property runImageImpoter in object [JavaPackage com.MyTest.Data.Importer]. It is not a function, it is "object". (script#5) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3557) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3535) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3563) at org.mozilla.javascript.ScriptRuntime.typeError3(ScriptRuntime.java:3589) at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3649) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2186) at org.mozilla.javascript.gen.c21._c0(script:5) at org.mozilla.javascript.gen.c21.call(script) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003) at org.mozilla.javascript.gen.c21.call(script) at org.mozilla.javascript.gen.c21.exec(script) at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:377) ... 3 more

推荐答案

我们需要在BI和DI服务器的tomcat lib文件夹中包含各自的jar文件

We need to include respective jar files , in tomcat lib folder of both BI and DI servers

BI服务器

/home/alliance/surya/pentaho4.5/server/data-integration-server/tomcat/webapps/pentaho-di/WEB-INF/lib

`

DI服务器

/home/alliance/surya/pentaho4.5/server/biserver-ee/tomcat/webapps/pentaho/WEB-INF/lib

这篇关于从BI服务器执行ETL JAR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 22:31