PACS - Unable to send orders to DCM4chee Worklist

PACS

Hi All , I did all the settings mentioned for pacs setup including the mapping.

i get below error when i create an order and it is supposed to be sent to dcm4chee worklist, but it doesnt.

your help is appreciated.

13-09-2019 12:12:16 [ERROR] AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1568365907948, event=Event{id=‘tag:atomfeed.ict4h.org:5957d7c1-a475-4462-a675-3e0aa8d561d5’, content=’/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/9569cd34-aa82-47d8-a5cf-6c2106e0fb4c?includeAll=true’}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/4] Failed send order to modalityjava.lang.RuntimeException: Failed send order to modality at org.bahmni.module.pacsintegration.atomfeed.worker.EncounterFeedWorker.process(EncounterFeedWorker.java:42) at org.ict4h.atomfeed.client.service.AtomFeedClient$EventProcessor.doInTransaction(AtomFeedClient.java:168) at org.ict4h.atomfeed.transaction.AFTransactionWorkWithoutResult.execute(AFTransactionWorkWithoutResult.java:6) at org.bahmni.module.pacsintegration.atomfeed.client.AtomFeedHibernateTransactionManager$1.doInTransaction(AtomFeedHibernateTransactionManager.java:54) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) at org.bahmni.module.pacsintegration.atomfeed.client.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:51) at org.ict4h.atomfeed.client.service.AtomFeedClient.processEvents(AtomFeedClient.java:68) at org.bahmni.module.pacsintegration.atomfeed.jobs.EncounterFeedJob.process(EncounterFeedJob.java:38) at org.bahmni.module.pacsintegration.atomfeed.ScheduledTasks$1.run(ScheduledTasks.java:79) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: ca.uhn.hl7v2.HL7Exception: Cannot open connection to 13.250.23.250:2575/0 at ca.uhn.hl7v2.app.ConnectionHub.attach(ConnectionHub.java:121) at ca.uhn.hl7v2.app.ConnectionHub.attach(ConnectionHub.java:255) at ca.uhn.hl7v2.DefaultHapiContext.newClient(DefaultHapiContext.java:350) at org.bahmni.module.pacsintegration.services.ModalityService.post(ModalityService.java:52) at org.bahmni.module.pacsintegration.services.ModalityService.sendMessage(ModalityService.java:30) at org.bahmni.module.pacsintegration.services.PacsIntegrationService.processEncounter(PacsIntegrationService.java:57) at org.bahmni.module.pacsintegration.atomfeed.worker.EncounterFeedWorker.process(EncounterFeedWorker.java:37) … 17 more Caused by: java.net.NoRouteToHostException: No route to host (Host unreachable) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at ca.uhn.hl7v2.app.ConnectionFactory.createSocket(ConnectionFactory.java:77) at ca.uhn.hl7v2.app.ConnectionFactory.openEagerly(ConnectionFactory.java:52) at ca.uhn.hl7v2.app.ConnectionFactory.open(ConnectionFactory.java:42) at ca.uhn.hl7v2.app.ConnectionHub$1.open(ConnectionHub.java:93) at ca.uhn.hl7v2.app.ConnectionHub$1.open(ConnectionHub.java:84) at ca.uhn.hl7v2.app.ConnectionHub$CountingMap.put(ConnectionHub.java:485) at ca.uhn.hl7v2.app.ConnectionHub.attach(ConnectionHub.java:116) … 23 more ', feedUri=‘http://localhost:8050/openmrs/ws/atomfeed/encounter/recent’} java.lang.RuntimeException: Failed send order to modality at org.bahmni.module.pacsintegration.atomfeed.worker.EncounterFeedWorker.process(EncounterFeedWorker.java:42) ~[EncounterFeedWorker.class:?] at org.ict4h.atomfeed.client.service.AtomFeedClient$FailedEventProcessor.doInTransaction(AtomFeedClient.java:251) ~[AtomFeedClient$FailedEventProcessor.class:?] at org.ict4h.atomfeed.transaction.AFTransactionWorkWithoutResult.execute(AFTransactionWorkWithoutResult.java:6) ~[AFTransactionWorkWithoutResult.class:?] at org.bahmni.module.pacsintegration.atomfeed.client.AtomFeedHibernateTransactionManager$1.doInTransaction(AtomFeedHibernateTransactionManager.java:54) ~[AtomFeedHibernateTransactionManager$1.class:?] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) ~[TransactionTemplate.class:4.1.6.RELEASE] at org.bahmni.module.pacsintegration.atomfeed.client.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:51) ~[AtomFeedHibernateTransactionManager.class:?] at org.ict4h.atomfeed.client.service.AtomFeedClient.processFailedEvents(AtomFeedClient.java:98) [AtomFeedClient.class:?] at org.bahmni.module.pacsintegration.atomfeed.jobs.EncounterFailedFeedJob.process(EncounterFailedFeedJob.java:39) [EncounterFailedFeedJob.class:?] at org.bahmni.module.pacsintegration.atomfeed.ScheduledTasks$1.run(ScheduledTasks.java:79) [ScheduledTasks$1.class:?] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) [DelegatingErrorHandlingRunnable.class:4.1.6.RELEASE] at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) [ReschedulingRunnable.class:4.1.6.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_131] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_131] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [?:1.8.0_131] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_131] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_131] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_131] at java.lang.Thread.run(Unknown Source) [?:1.8.0_131] Caused by: ca.uhn.hl7v2.HL7Exception: Cannot open connection to 13.250.23.250:2575/0 at ca.uhn.hl7v2.app.ConnectionHub.attach(ConnectionHub.java:121) ~[ConnectionHub.class:?] at ca.uhn.hl7v2.app.ConnectionHub.attach(ConnectionHub.java:255) ~[ConnectionHub.class:?] at ca.uhn.hl7v2.DefaultHapiContext.newClient(DefaultHapiContext.java:350) ~[DefaultHapiContext.class:?] at org.bahmni.module.pacsintegration.services.ModalityService.post(ModalityService.java:52) ~[ModalityService.class:?] at org.bahmni.module.pacsintegration.services.ModalityService.sendMessage(ModalityService.java:30) ~[ModalityService.class:?] at org.bahmni.module.pacsintegration.services.PacsIntegrationService.processEncounter(PacsIntegrationService.java:57) ~[PacsIntegrationService.class:?] at org.bahmni.module.pacsintegration.atomfeed.worker.EncounterFeedWorker.process(EncounterFeedWorker.java:37) ~[EncounterFeedWorker.class:?] … 17 more Caused by: java.net.NoRouteToHostException: No route to host (Host unreachable) at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:1.8.0_131] at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[?:1.8.0_131] at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[?:1.8.0_131] at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[?:1.8.0_131] at java.net.SocksSocketImpl.connect(Unknown Source) ~[?:1.8.0_131] at java.net.Socket.connect(Unknown Source) ~[?:1.8.0_131] at java.net.Socket.connect(Unknown Source) ~[?:1.8.0_131] at ca.uhn.hl7v2.app.ConnectionFactory.createSocket(ConnectionFactory.java:77) ~[ConnectionFactory.class:?] at ca.uhn.hl7v2.app.ConnectionFactory.openEagerly(ConnectionFactory.java:52) ~[ConnectionFactory.class:?] at ca.uhn.hl7v2.app.ConnectionFactory.open(ConnectionFactory.java:42) ~[ConnectionFactory.class:?] at ca.uhn.hl7v2.app.ConnectionHub$1.open(ConnectionHub.java:93) ~[ConnectionHub$1.class:?] at ca.uhn.hl7v2.app.ConnectionHub$1.open(ConnectionHub.java:84) ~[ConnectionHub$1.class:?] at ca.uhn.hl7v2.app.ConnectionHub$CountingMap.put(ConnectionHub.java:485) ~[ConnectionHub$CountingMap.class:?] at ca.uhn.hl7v2.app.ConnectionHub.attach(ConnectionHub.java:116) ~[ConnectionHub.class:?] at ca.uhn.hl7v2.app.ConnectionHub.attach(ConnectionHub.java:255) ~[ConnectionHub.class:?] at ca.uhn.hl7v2.DefaultHapiContext.newClient(DefaultHapiContext.java:350) ~[DefaultHapiContext.class:?] at org.bahmni.module.pacsintegration.services.ModalityService.post(ModalityService.java:52) ~[ModalityService.class:?] at org.bahmni.module.pacsintegration.services.ModalityService.sendMessage(ModalityService.java:30) ~[ModalityService.class:?] at org.bahmni.module.pacsintegration.services.PacsIntegrationService.processEncounter(PacsIntegrationService.java:57) ~[PacsIntegrationService.class:?] at org.bahmni.module.pacsintegration.atomfeed.worker.EncounterFeedWorker.process(EncounterFeedWorker.java:37) ~[EncounterFeedWorker.class:?] … 17 more

Moved to the bahmni category.

@ramashish @arjun

This shows that the IP or the port set in the modality table is incorrect. Here modality table is actually a misleading name. It refers to DCM4CHEE server IP and Port and not the actual modality!

By any chance did you modify anything in modality table in bahmni_pacs database?

1 Like