Hi, it seems like some kind of connectivity problem. Try a
telnet <arserver> <arport> It should accept the connection but you won't see any output. If that doesn't work then you'll have to investigate on the network connection (Firewall, etc.) HTH Kind Regards Conny -----Ursprüngliche Nachricht----- Von: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] Im Auftrag von Guillermo Alfredo Torres Barron Gesendet: Donnerstag, 18. März 2010 20:25 An: arslist@ARSLIST.ORG Betreff: 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"