技术文章 - CS79047
在 Windchill PDMLink 中,远程方法 RemoteMethodServer.getDefault() 调用问题
已修改: 19-Apr-2016
适用于
- Windchill PDMLink 8.0 to 11.1
说明
- 如何调用远程方法
- RemoteMethodServer.getDefault() 调用失败问题
- 调用 RemoteMethodServer.getDefault().invoke( "<method_name>", "<class_name>", null, argType, argValue),出现下面错误
wt.util.WTRemoteException: Unable to invoke remote method; nested exception is:
wt.util.WTRemoteException: Unable to locate method server; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 0
at wt.method.RemoteMethodServer.getCurrentMethodServer(RemoteMethodServer.java:1066)
at wt.method.RemoteMethodServer.getMethodServer(RemoteMethodServer.java:1009)
at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:621)
wt.util.WTRemoteException: Unable to locate method server; nested exception is:
wt.util.WTRemoteException: Unable to get server; nested exception is:
wt.util.WTRemoteException: Unable to locate server manager; nested exception is:
java.rmi.ConnectException: Connection refused to host: xxxx.xxxx.xxxx; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
wt.util.WTRemoteException: Unable to locate method server; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 0
at wt.method.RemoteMethodServer.getCurrentMethodServer(RemoteMethodServer.java:1066)
at wt.method.RemoteMethodServer.getMethodServer(RemoteMethodServer.java:1009)
at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:621)
wt.util.WTRemoteException: Unable to locate method server; nested exception is:
wt.util.WTRemoteException: Unable to get server; nested exception is:
wt.util.WTRemoteException: Unable to locate server manager; nested exception is:
java.rmi.ConnectException: Connection refused to host: xxxx.xxxx.xxxx; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
这是文章 79047 的 PDF 版本,可能已过期。最新版本 CS79047