【问题标题】:Unable to connect to Remedy AR System server无法连接到 Remedy AR System 服务器
【发布时间】:2016-10-12 11:30:58
【问题描述】:

我确定我使用了正确的连接信息:

import com.bmc.arsys.api.ARException;  
import com.bmc.arsys.api.ARServerUser;

/**
 * 
 * A class to automate deletion of BMC Remedy incidents after deploying or decommissioning servers
 *
 */
@SuppressWarnings("unused")
public class BMCIncidentDelete {
    public static void main(String[] args) {  

        /*
         * Authentication information
         */
        String host = "";
        String server = "";
        String user = "";
        String pass = "";

        ARServerUser ctx = new ARServerUser();
        ctx.setServer(host);
        // ctx.setServer(server);
        ctx.setUser(user);
        ctx.setPassword(pass);
        ctx.setPort(8080);

        /*
         * Verify user or print stack trace if not possible
         */
        try {  
            ctx.verifyUser();
            System.out.println("Connection verified!");
        } catch (ARException e) {  
            System.out.println(e.getMessage().toString());
        }

    }
}

很遗憾,我收到以下错误:

ERROR (90): Cannot establish a network connection to the AR System server; Connection refused: connect

有使用 AR System API 经验的人以前见过这个问题吗? https://communities.bmc.com/docs/DOC-17514

【问题讨论】:

    标签: java web-services remedy


    【解决方案1】:

    此错误(连接被拒绝)表示无法从您提供的主机和端口上的服务器访问 Remedy 服务器。您可以使用telnet 进行验证,将主机名替换为$host

    $ telnet $host 8080
    

    成功的连接应该显示“已连接到主机。”,但根据您的问题,您可能会看到“连接被拒绝”。仔细检查 Remedy 服务器的主机名和端口号,必要时检查您和服务器之间是否存在防火墙等。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-08
      • 2020-01-24
      • 1970-01-01
      • 2011-12-29
      • 2018-12-09
      • 2020-05-05
      相关资源
      最近更新 更多