zoukankan      html  css  js  c++  java
  • 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.properties
    Not found in SystemResource Directory/resourceDirectory: .esapi/ESAPI.properties
    Not found in 'user.home' (/root) directory: /root/esapi/ESAPI.properties
    Loading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundException
    Attempting 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.properties
    Attempting 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.properties
    Not found in SystemResource Directory/resourceDirectory: .esapi/validation.properties
    Not found in 'user.home' (/root) directory: /root/esapi/validation.properties
    Loading 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.properties
    Not found in SystemResource Directory/resourceDirectory: .esapi/validation.properties
    Not 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>&1
    else
        "$_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

  • 相关阅读:
    Tableau(数据抽取)
    Oracle
    Visual Studio 2015与C#6.0新特性
    .net/c# memcached 安装和基本使用
    .net/c# memcached 获取指定前缀缓存键(keys)
    【笔记】Head First 设计模式
    C# WinForm 导出导入Excel/Doc [使用Aspose.Cells.dll]
    【转】《WCF服务编程 第一章 WCF基础》第一回
    WCF 部署到IIS(最基本的配置)
    串口通信(基础)
  • 原文地址:https://www.cnblogs.com/zeppelin/p/5819039.html
Copyright © 2011-2022 走看看