Article - CS24105

Basic example of Remote Method Invocation from a Java Client in Windchill

Modified: 26-Nov-2025   


Applies To

  • Windchill PDMLink 11.0 to 13.1

Description

  • How to write a Java program to connect to server and invoke Windchill code
  • How to write a code using to RemoteMethodServer API to connect to server and invoke Windchill code
  • Following exception when executing class from 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)
  • Following exception when executing class from Windchill shell
    Exception in thread "main" java.lang.SecurityException: ext.test.Sample does not implement wt.method.RemoteAccess.
  • Failed to call the "invoke" method of wt.method.RemoteMethodServer with below error - how to call the API
    Exception is >>>>>wt.util.WTRemoteException: Unable to call remote method,nested exception is:
    java.lang.ClassNotFoundException:xxx.xxx
This is a printer-friendly version of Article 24105 and may be out of date. For the latest version click CS24105