Hi Tom,

Is your client application holding onto the same connection?

That error suggests that the client at least has a connection (since you'd
get an IOException if it was trying but failing to connect to the server),
which suggests that it's trying to use a connection it already has but
failing for some reason. One possibility would be that something on your
network (e.g. a firewall) is closing the connection but not notifying your
client. I've seen that particular issue before..

When this happens, are you able to send a message to the server using a
different application? (i.e. HAPI TestPanel, or 7Edit)

Cheers,
James



On Mon, Jan 13, 2014 at 11:39 AM, Tom Wilson <twil...@sujansky.com> wrote:

>  It looks like the server is simply not accepting new connections, like
> it is no longer listening on the port.
>
>
>
> Like I said, it works fine for most of the day, the problem is when I
> leave it overnight and try to establish a new connection in the morning.
> Nothing is written to the server logs, the client connection times out.
>
>
>
> I bumped up the log level to DEBUG, but there isn’t anything in the logs
> about failed connections or any error related to message processing.
>
>
>
> I can’t deliver this software if it won’t run more than a few hours, and
> I’m baffled as to where to look next.
>
>
>
> -tom
>
>
>
> *From:* Sreenath Gadipally [mailto:sreenath.gadipa...@mastek.com]
> *Sent:* Thursday, January 09, 2014 8:42 AM
> *To:* Christian Ohr; Tom Wilson
> *Cc:* hl7api-devel@lists.sourceforge.net
> *Subject:* RE: [HAPI-devel] My HAPI server stops accepting connections
>
>
>
> Why we get timeout issues in hapi everytime when we access the appl
>
>
>
> Thanks & Regards
>
> Sreenath
>
>
>
> *From:* Christian Ohr 
> [mailto:christian....@gmail.com<christian....@gmail.com>]
>
> *Sent:* 09 January 2014 22:07
> *To:* Tom Wilson
> *Cc:* hl7api-devel@lists.sourceforge.net
> *Subject:* Re: [HAPI-devel] My HAPI server stops accepting connections
>
>
>
> The error your client is producing simply says that it did not get a
> response that matches the control ID of the message sent away.
>
> I can only guess about the reasons... Was the physical connection still
> present? Did the server side (i.e. ORU_R01_ReceivingApplication) respond
> within the timeout time frame (like 30s)? And if not, why? Did it receive
> the request at all? Maybe setting the log level to DEBUG can help, too....
>
> regards
> Christian
>
>
>
> 2014/1/7 Tom Wilson <twil...@sujansky.com>
>
> Help!
>
>
>
> I implemented a HAPI server according to the example:
>
>
>
>               server =
> DirectHapiContext.getHapiContext().newServer(LISTENER_PORT,
>
>                            USE_TLS);
>
>               ORU_R01_ReceivingApplication handler = 
> *new*ORU_R01_ReceivingApplication();
>
>               handler.setHl7Queue(hl7Queue );
>
>               server.registerApplication("ORU", "R01", handler);
>
>               
> server.registerConnectionListener(*new*ORU_R01_ConnectionListener());
>
>               server.setExceptionHandler(*new*ORU_R01_ExceptionHandler());
>
>
>
>               *try* {
>
>                      server.startAndWait();
>
>               } *catch* (InterruptedException e) {
>
>                      LOG.error("Startup interrupted!", e);
>
>               }
>
>
>
>
>
> It works great, but after leaving it running overnight, when I come back
> in the morning it will not accept connections. The client produces this
> error:
>
>
>
> *ca.uhn.hl7v2.HL7Exception*: Timeout waiting for response to message with
> control ID 20131216123844000002
>
>
>
> I don’t see anything in the logs that would indicate where the problem is.
> How do I troubleshoot this?
>
>
>
> -tom
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
>
>
>
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to