From: Tom W. <tw...@su...> - 2014-01-13 16:39:26
|
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:Sre...@ma...] Sent: Thursday, January 09, 2014 8:42 AM To: Christian Ohr; Tom Wilson Cc: hl7...@li... 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:chr...@gm...] Sent: 09 January 2014 22:07 To: Tom Wilson Cc: hl7...@li...<mailto:hl7...@li...> 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 <tw...@su...<mailto:tw...@su...>> 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 Hl7...@li...<mailto:Hl7...@li...> 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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |