zoukankan      html  css  js  c++  java
  • WebSphere的jython编码的一个坑

    was5.1版本,用"name=" in line这类判断字符串包含的方式时,系统会提示报错

    TypeError: string member test needs char left operand

    原来python早期代码,in左边必须是单个的字符,而was5.1的jython是用了python的早期版本,所以不支持更高级的语法,was8.5中也存在这问题

    • Yeah, its fairly old I believe. Its the implementation of jython that comes with WebSphere 8.5.5. Even though its the very latest release of WebSphere, it still comes with a ten year old python! – Seer Oct 3 '13 at 9:15
    •  
      I looked into this some more. WebSphere comes with Jython 2.1 (just type sys.version to verify). Look at SourceForge and behold, it was released in September 2002, thus why we have to deal with stupid issues from over a decade ago: sourceforge.net/projects/jython/files/jython – ArtOfWarfare Jun 3 '14 at 15:05

    被这傻逼问题闹的怀疑自己到底会不会写python了……

    参考页面:https://stackoverflow.com/questions/19140003/python-jython-if-substring-in-string-always-results-in-typeerror-string-member

    2、关于WAS的JVM日志设置方式,官网有说https://www.ibm.com/support/knowledgecenter/zh/SS7JFU_8.0.0/com.ibm.websphere.express.doc/info/exp/ae/utrb_jvmlogs.html

    从 WebSphere Application Server V8.0 开始,可配置服务器以使用高性能可扩展记录 (HPEL) 日志和跟踪基础结构,而不使用 SystemOut.log、SystemErr.log、trace.log 和 activity.log 文件或本机 z/OS 记录设施

  • 相关阅读:
    xxl-job如何保证调度的一致性
    mac安装homebrew
    JDBC自动加载驱动的SPI机制
    JDBC使用
    mysql的limit分页,越往后为什么越慢,怎么解决
    解决idea报错 "cannot access class
    BeanUtils.copyProperties复制失败探究
    xxl-job任务定时触发流程
    xxl-job一致性
    xxl-job高可用部署
  • 原文地址:https://www.cnblogs.com/slqt/p/9056149.html
Copyright © 2011-2022 走看看