这是登录Remedy的代码
public void connect() {
// System.out.println("Connecting to AR Server...");
userInfo = new ARServerUser();
userInfo.setServer(" 192.168.253.221");
userInfo.setUser(new AccessNameID("user"));
userInfo.setPassword(new AccessNameID("passwd"));
try {
userInfo.verifyUser(new VerifyUserCriteria());
} catch (ARException e) {
// This exception is triggered by a bad server, password or,
// if guest access is turned off, by an unknown username.
System.out.println("Error verifying user: " + e);
// Clear memory used by our user context object
userInfo.clear();
System.exit(1);
}
// System.out.println("Connected to AR Server.");
}
|
登录开发环境的remedy没有问题,可是换到生产环境就登录不了,报错:
Error verifying user: MessageType: 2 MessageNum: 90 MessageText: Cannot open catalog; Message number = 90 AppendedText: 192.168.253.221 : RPC: Rpcbind failure - RPC: Timed out |
不知道为何,只知道解决方法很简单,加上一个环境变量就好了,他表示remedy的端口是2020.
阅读(1025) | 评论(0) | 转发(0) |