0

正しい接続情報を使用していると確信しています。

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 システム API の経験がある方は、この問題を以前に見たことはありますか? https://communities.bmc.com/docs/DOC-17514

4

1 に答える 1