技术文章 - CS24105

Windchill 中 Java 客户端远程方法调用的基本示例

已修改: 26-Nov-2025   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • Windchill PDMLink 11.0 to 13.1

说明

  • 如何编写 Java 程序连接到服务器并调用 Windchill 代码
  • 如何使用RemoteMethodServer API 编写代码来连接服务器并调用 Windchill 代码
  • 从 Windchill shell 执行类时出现以下异常
 wt.util.WTRemoteException: Unable to invoke remote method; nested exception is: wt.method.AuthenticationException at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:927) at ext.CustomCode.start(CustomCode.java:155)
  • 从 Windchill shell 执行类时出现以下异常
    Exception in thread "main" java.lang.SecurityException: ext.test.Sample does not implement wt.method.RemoteAccess.
  • 调用wt.method.RemoteMethodServer的“invoke”方法失败,出现以下错误 - 如何调用 API
     Exception is >>>>>wt.util.WTRemoteException: Unable to call remote method,nested exception is:
    java.lang.ClassNotFoundException:xxx.xxx
这是文章 24105 的 PDF 版本,可能已过期。最新版本 CS24105