【问题标题】:jess How can i fix this error?jess 我该如何解决这个错误?
【发布时间】:2016-05-26 00:37:57
【问题描述】:

Jess在例程调用中报错

 while executing (call ?fopc charAt ?index)
 while executing (bind ?c (call ?fopc charAt ?index))

 Message: Called method threw an exception.

程序是:

【问题讨论】:

    标签: jess


    【解决方案1】:

    如果您正在调用 Java 方法 charAt,则可能有两个原因导致异常。

    1. ?fopc 未绑定到对象 java.lang.String(或定义了 charAt 的其他类之一)。
    2. 第三个参数?index 不小于字符串的长度或负数。

    提供完整的 Jess 示例 - 请不要链接 - 以重现错误。

    【讨论】:

      猜你喜欢
      • 2016-07-21
      • 2016-09-09
      • 2015-02-28
      • 2013-08-16
      • 2020-04-17
      • 1970-01-01
      相关资源
      最近更新 更多