Before doing a login, debug and verify that the various userInfo properties
are set to the expected values to verify your getProperties is working
properly.

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:arsl...@arslist.org] On Behalf Of Guillermo Alfredo Torres Barron
Sent: Thursday, March 18, 2010 1:25 PM
To: arslist@ARSLIST.ORG
Subject: Re: Problem with JAVA API

Hi
I add the instruction userInfo.login(); in the java program, but appear the
same error

ERROR (91): RPC call failed; ONC/RPC call timed out

Thanks
Regards

-----Mensaje original-----
De: Action Request System discussion list(ARSList)
[mailto:arsl...@arslist.org] En nombre de Jarl Grøneng Enviado el:
Miércoles, 17 de Marzo de 2010 11:59 p.m.
Para: arslist@ARSLIST.ORG
Asunto: Re: Problem with JAVA API

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.ar
> po
> 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"


............................................................................
...............
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