Seems like you mising the the login part.

userInfo = new ARServerUser();
userInfo.setServer(misPropiedades.getProperty("datos.arserver"));
userInfo.setUser(misPropiedades.getProperty("datos.aruser"));
userInfo.setPassword(misPropiedades.getProperty("datos.arpass"));
userInfo.setPort(Integer.parseInt(misPropiedades.getProperty("datos.arport")));
       try
       {
                userInfo.login();
                userInfo.verifyUser();
                ...
                ...

--
Jarl



2010/3/18 Guillermo Alfredo Torres Barron <guillermo.torres.bar...@banorte.com>:
> Hi dear listers
> I try to do a java program with java api 7.1, the program compile
> without errors but run it appear the next
>
> ERROR (91): RPC call failed; ONC/RPC call timed out
>
> I send you a extract of the program
>
> import com.bmc.arsys.api.*;
> import java.io.*;
> import java.lang.*;
> import java.util.*;
> import java.text.SimpleDateFormat;
> import java.lang.Integer;
>
> public class carga_indicadores
> {
> ........
> static void connect()
> {
>        String ruta = "conn.conf";
>        Properties misPropiedades = new Properties();
>        try
>        {
>                misPropiedades.load(new FileInputStream(ruta));
>        }
>        catch (Exception e)
>        {
>                System.out.println("Error configuration file: "+e);
>                System.exit(1);
>        }
>        userInfo = new ARServerUser();
>
> userInfo.setServer(misPropiedades.getProperty("datos.arserver"));
>        userInfo.setUser(misPropiedades.getProperty("datos.aruser"));
>
> userInfo.setPassword(misPropiedades.getProperty("datos.arpass"));
>
> userInfo.setPort(Integer.parseInt(misPropiedades.getProperty("datos.arpo
> rt")));
>        try
>        {
>                userInfo.verifyUser();
>        }
>        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 usuario: "+e);
>                //Clear memory used by our user context object
>                userInfo.clear();
>                System.exit(1);
>        }
>        System.out.print("Conectado.");
> .....
> }
>
> Any idea is good for us
> Thanks in advance
> Regards
>
>
> ...........................................................................................
> Este correo electronico es confidencial y/o puede contener informacion 
> privilegiada.
> Si usted no es su destinatario o no es alguna persona autorizada por este 
> para recibir sus correos electronicos, NO debera usted utilizar, copiar, 
> revelar, o tomar ninguna accion basada en este correo electronico o cualquier 
> otra informacion incluida en el, favor de notificar al remitente de inmediato 
> mediante el reenvio de este correo electronico y borrar a continuacion 
> totalmente este correo electronico y sus anexos.
> Nota: Los acentos y caracteres especiales fueron omitidos para su correcta 
> lectura en cualquier medio electronico.
>
> This e-mail is confidential and/or may contain privileged information.
> If you are not the addressee or authorized to receive this for the addressee, 
> you must not use, copy, disclose, or take any action based on this message or 
> any
> other information herein, please advise the sender immediately by reply this 
> e-mail and delete this e-mail and  its attachments.
> ...........................................................................................
>
> _______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are"
>

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are"

Reply via email to