Application Name: pacs-integration Version Number: current version
Question: I am getting error connection timeout for atomfeed my openmrs is on the server and i am using the correct feed uri still i am getting connection timeout error
openmrs.auth.uri=http://my-domain-name/openmrs/ws/atomfeed/encounter/recent
2023-12-15 01:12:44.503 INFO 11832 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 9081 (http)
2023-12-15 01:12:44.506 INFO 11832 --- [ main] org.bahmni.module.PacsIntegration : Started PacsIntegration in 6.96 seconds (JVM running for 7.449)
2023-12-15 01:12:47.305 INFO 11832 --- [pool-2-thread-1] o.b.m.p.atomfeed.jobs.EncounterFeedJob : Processing feed...
2023-12-15 01:13:10.372 ERROR 11832 --- [pool-2-thread-1] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task.
org.ict4h.atomfeed.client.exceptions.AtomFeedClientException: org.ict4h.atomfeed.client.exceptions.AtomFeedClientException: java.net.ConnectException: Connection timed out: connect
at org.ict4h.atomfeed.client.service.AtomFeedClient.processEvents(AtomFeedClient.java:84)
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.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.ict4h.atomfeed.client.exceptions.AtomFeedClientException: java.net.ConnectException: Connection timed out: connect
at org.ict4h.atomfeed.client.repository.datasource.DefaultHttpClient.fetch(DefaultHttpClient.java:39)
at org.ict4h.atomfeed.client.repository.AllFeeds.getFor(AllFeeds.java:47)
at org.ict4h.atomfeed.client.service.FeedEnumerator.seekFirstFeed(FeedEnumerator.java:42)
at org.ict4h.atomfeed.client.service.FeedEnumerator.initializeEnumeration(FeedEnumerator.java:30)
at org.ict4h.atomfeed.client.service.FeedEnumerator.<init>(FeedEnumerator.java:24)
at org.ict4h.atomfeed.client.service.AtomFeedClient.processEvents(AtomFeedClient.java:58)
... 10 common frames omitted
Caused by: java.net.ConnectException: Connection timed out: connect
at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
i tried to get the data from uri on postman i got the xml data on postman but on this pacs-integration i am getting connection timeout error please help me to resolve this error .
**