Re: [HAPI-devel] Timeout on sendAndreceive

2008-01-28 Thread [EMAIL PROTECTED]
x.printStackTrace(); } return null; } } -Ryan > Date: Mon, 28 Jan 2008 01:37:15 -0800 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: [HAPI-devel] Timeout on sendAndreceive > >

Re: [HAPI-devel] Timeout on sendAndreceive

2008-01-28 Thread Lucas Gonz
Hello and thanks for beeing so quick! I think my problem might be related to what you say at the end, "connectionHub shared??" I am gonna post a little bit of the code that I have for the client: . ConnectionHub connectionHub = ConnectionHub.ge

Re: [HAPI-devel] Timeout on sendAndreceive

2008-01-28 Thread VIOT Yves
Hi Lucas, As i said this doesn't seem to be a real timeout. This is a timeout for waiting an ACK with a corresponding message ID. The ACK field MSA-2 must match this ID you sent in your message into the MSH-10. First of all, put a sniffer like "Wireshark". Take a look at messages between client

Re: [HAPI-devel] Timeout on sendAndreceive

2008-01-28 Thread Lucas Gonz
Hello! Thanks for the help, but it doesn't work yet. The default timeout is 10 seconds no? I think it should be time enough in order to receive an answer, anyway I changed it to 30 as you suggested and it doesn't work neither, I have tried both scenario, running client and server in different PC's

Re: [HAPI-devel] Timeout on sendAndreceive

2008-01-26 Thread Torben Greiser
Hi Lucas, just set the initiator timeout value to as high as needed: int timeout = 3; System.setProperty("ca.uhn.hl7v2.app.initiator.timeout", Integer.toString(timeout)); Greets Torben Lucas Gonz schrieb: > Hello you all!! > > I am starting in this HL7 world and after a couples of day

Re: [HAPI-devel] Timeout on sendAndreceive

2008-01-26 Thread Lucas Gonz
Hello you all!! I am starting in this HL7 world and after a couples of days I almost give up, hopefully I found this forum... I am having problems with "sendAndReceive", If I run the example class SendAndReceiveAMessage in my PC everything works fine, but if I split the code from the example

Re: [HAPI-devel] Timeout on sendAndreceive

2008-01-11 Thread VIOT Yves
Hi aj, I had a problem like that one. My problem was not really a time out. I had a timeout for the expected ack. It is because i received an ack with the MSA-2 (Message control ID) empty, so it receive an ack with no corresponding original message. I've noticed that it also return an ack /e

[HAPI-devel] Timeout on sendAndreceive

2007-10-10 Thread Ajay Arora
Greetings All, My application was successfully able to connect to the server but it times out and give following error. Any help is appreciated. ca.uhn.hl7v2.HL7Exception: Timeout waiting for response to message with control ID '1339497 at ca.uhn.hl7v2.app.Initiator.sendAndReceive(Initi