首页 > 代码库 > Kettle中spoon.sh在使用时报错
Kettle中spoon.sh在使用时报错
报错信息:
Attempting to load ESAPI.properties via file I/O.Attempting to load ESAPI.properties as resource file via file I/O.Not found in ‘org.owasp.esapi.resources‘ directory or file not readable: /mnt/data-integration/ESAPI.propertiesNot found in SystemResource Directory/resourceDirectory: .esapi/ESAPI.propertiesNot found in ‘user.home‘ (/root) directory: /root/esapi/ESAPI.propertiesLoading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundExceptionAttempting to load ESAPI.properties via the classpath.SUCCESSFULLY LOADED ESAPI.properties via the CLASSPATH from ‘/ (root)‘ using current thread context class loader!SecurityConfiguration for Validator.ConfigurationFile not found in ESAPI.properties. Using default: validation.propertiesAttempting to load validation.properties via file I/O.Attempting to load validation.properties as resource file via file I/O.Not found in ‘org.owasp.esapi.resources‘ directory or file not readable: /mnt/data-integration/validation.propertiesNot found in SystemResource Directory/resourceDirectory: .esapi/validation.propertiesNot found in ‘user.home‘ (/root) directory: /root/esapi/validation.propertiesLoading validation.properties via file I/O failed.Attempting to load validation.properties via the classpath.validation.properties could not be loaded by any means. fail. Exception was: java.lang.IllegalArgumentException: Failed to load ESAPI.properties as a classloader resource.java: cairo-misc.c:380: _cairo_operator_bounded_by_source: Assertion `NOT_REACHED‘ failed../spoon.sh: line 222: 8593 Aborted "$_PENTAHO_JAVA" $OPT -jar "$STARTUP" -lib $LIBPATH "${1+$@}" 2>&1
前面的这个报错
Not found in ‘org.owasp.esapi.resources‘ directory or file not readable: /mnt/data-integration/validation.propertiesNot found in SystemResource Directory/resourceDirectory: .esapi/validation.propertiesNot found in ‘user.home‘ (/root) directory: /root/esapi/validation.properties
找了半天资料,网上说下载时缺包或是pdi的一个bug。也没解决。
参考网址:http://stackoverflow.com/questions/22540683/pentaho-pdi-failed-to-load-esapi-properties-as-a-classloader-resource
不过对导数据没影响。
后面的报错
java: cairo-misc.c:380: _cairo_operator_bounded_by_source: Assertion `NOT_REACHED‘ failed../spoon.sh: line 222: 8593 Aborted "$_PENTAHO_JAVA" $OPT -jar "$STARTUP" -lib $LIBPATH "${1+$@}" 2>&1
解决方法:
将spoon.sh脚本修改如下,将cairo禁用掉:
OS=`uname -s | tr ‘[:upper:]‘ ‘[:lower:]‘`if [ $OS = "linux" ]; then (((("$_PENTAHO_JAVA" $OPT -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false -jar "$STARTUP" -lib $LIBPATH "${1+$@}" 2>&1; echo $? >&3 ) | grep -viE "Gtk-WARNING|GLib-GObject|GLib-CRITICAL|^$" >&4 ) 3>&1)| inputtoexitstatus ) 4>&1else "$_PENTAHO_JAVA" $OPT -jar "$STARTUP" -lib $LIBPATH "${1+$@}"fi
加了一句:
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
注:eclipse中也会出现这种情况。
参考网址:http://blog.csdn.net/wolfares/article/details/42454973
Kettle中spoon.sh在使用时报错
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。