atom feed error when sync between openmrs and openelis

after setting several test am getting this and I did exactly like other… Test ‘HBsAg’ was not setup properly. No external reference for Test with uuid ‘7d8bc350-3414-495a-b7f8-73b96a37de7b’ found in external_reference table java.lang.RuntimeException: java.lang.RuntimeException: Test ‘HBsAg’ was not setup properly. No external reference for Test with uuid ‘7d8bc350-3414-495a-b7f8-73b96a37de7b’ found in external_reference table

Still get ting errors I have no Idea where am doing it wrong!

  • I follow same procedure with no success

2020-02-19 07:14:30,048 ERROR [ELIS][AtomFeedClient] Failed to process failed event. FailedEvent{failedAt=1582096320074, event=Event{id=‘tag:atomfeed.ict4h.org:c65a4a4a-ce42-4a65-a6a4-a255ceaf6053’, content=’/openmrs/ws/rest/v1/reference-data/department/4345e76b-bc6f-4b9c-ad5a-1fe23ca2752a’}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/lab/5] us.mn.state.health.lims.common.exception.LIMSRuntimeException: Error while saving Department - Haematology Departmentjava.lang.RuntimeException: us.mn.state.health.lims.common.exception.LIMSRuntimeException: Error while saving Department - Haematology Department at org.bahmni.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:51) at org.ict4h.atomfeed.client.service.AtomFeedClient.processEvents(AtomFeedClient.java:68) at org.bahmni.feed.openelis.feed.job.OpenELISFeedReaderJob.processEvents(OpenELISFeedReaderJob.java:73) at org.bahmni.feed.openelis.feed.job.OpenELISFeedReaderJob.execute(OpenELISFeedReaderJob.java:57) at org.quartz.core.JobRunShell.run(JobRunShell.java:207) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560) Caused by: us.mn.state.health.lims.common.exception.LIMSRuntimeException: Error while saving Department - Haematology Department at org.bahmni.feed.openelis.feed.event.LabFeedEventWorker.process(LabFeedEventWorker.java:95) 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.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:42) … 5 more Caused by: us.mn.state.health.lims.common.exception.LIMSException: Error while saving Department - Haematology Department at org.bahmni.feed.openelis.feed.service.impl.TestSectionService.createOrUpdate(TestSectionService.java:87) at org.bahmni.feed.openelis.feed.event.LabFeedEventWorker.process(LabFeedEventWorker.java:76) … 8 more Caused by: java.lang.NullPointerException at org.bahmni.feed.openelis.feed.service.impl.TestService.updateTestSection(TestService.java:195) at org.bahmni.feed.openelis.feed.service.impl.TestSectionService.updateTests(TestSectionService.java:93) at org.bahmni.feed.openelis.feed.service.impl.TestSectionService.createOrUpdate(TestSectionService.java:85) … 9 more ', feedUri=‘http://localhost:8050/openmrs/ws/atomfeed/lab/recent’}

  • I guess the error appears when populating this Tab or when adding

  • When collecting Sample

Lets catch up during standup 2:30 pm IST. Please check our WIKI for standup details.

1 Like

alright then

sorry, but I got caught up with some urgent work today, and wouldn’t have much time during today’s standup? Can we instead meet tomorrow at 2:00 pm IST, on the same standup zoom meeting?

sure no worries… am holding into that

Hey, I would love to have Meeding ID or link

We can meet at 2:00 pm IST (830 am UTC). Which is about 5 mins from now.

I think you connected to the wrong zoom. and when you connected back to the right zoom meeting, I dont think your microphone was connected. anyway, I wanted to get this done before the standup. Lets try to do this over the same zoom id on Monday 2:00 pm IST.

if you dont have zoom, then send me a hangout link or so for Monday at that time.

I had connection issue will join you in 5 mins

Still no Success:

{ “categories”: [ { “scheme”: null, “label”: null, “schemeResolved”: null, “term”: “lab” } ], “id”: “tag:atomfeed.ict4h.org:09ea234c-2050-4970-bd32-cfd16eeecf43”, “content”: “/openmrs/ws/rest/v1/reference-data/department/e72f16a7-ced4-4fce-bfd1-dd23da936333”, “feedUri”: null, “updatedDate”: null, “title”: “department”, “dateCreated”: null }

Please put the entire log. this is just the event. you need to see the log, errors in the following places

  • corresponding entries in database table “openmrs.failed_events”, and “openmrs.failed_event_rety_log”
  • in log file /var/log/openmrs/openmrs.log
1 Like

https://pastebin.com/0pt1sB4n

event message:

Error while saving Department - Urine Department at org.bahmni.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:51) at org.ict4h.atomfeed.client.service.AtomFeedClient.processEvents(AtomFeedClient.java:68) at org.bahmni.feed.openelis.feed.job.OpenELISFeedReaderJob.processEvents(OpenELISFeedReaderJob.java:73) at org.bahmni.feed.openelis.feed.job.OpenELISFeedReaderJob.execute(OpenELISFeedReaderJob.java:57) at org.quartz.core.JobRunShell.run(JobRunShell.java:207) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560) Caused by: us.mn.state.health.lims.common.exception.LIMSRuntimeException: Error while saving Department - Urine Department at org.bahmni.feed.openelis.feed.event.LabFeedEventWorker.process(LabFeedEventWorker.java:95) 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.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:42) … 5 more Caused by: us.mn.state.health.lims.common.exception.LIMSException: Error while saving Department - Urine Department at org.bahmni.feed.openelis.feed.service.impl.TestSectionService.createOrUpdate(TestSectionService.java:87) at org.bahmni.feed.openelis.feed.event.LabFeedEventWorker.process(LabFeedEventWorker.java:76) … 8 more Caused by: us.mn.state.health.lims.common.exception.LIMSException: Colour (Urine) test does not exist at org.bahmni.feed.openelis.feed.service.impl.TestService.updateTestSection(TestService.java:191) at org.bahmni.feed.openelis.feed.service.impl.TestSectionService.updateTests(TestSectionService.java:93) at org.bahmni.feed.openelis.feed.service.impl.TestSectionService.createOrUpdate(TestSectionService.java:85) … 9 more

Hi - Were you able to solve this? If so - can you please share the solution? Thanks

Dears,

I have a problem, sync between OpenMRS and OpenELIS is not working,

this is what I read in Bahmni-Lab Log file : Aug 24, 2024 1:56:00 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [action] in context with path [/openelis] threw exception [java.lang.RuntimeException: org.ict4h.atomfeed.server.exceptions.AtomFeedRuntimeException: feed does not exist] with root cause org.ict4h.atomfeed.server.exceptions.AtomFeedRuntimeException: feed does not exist at org.ict4h.atomfeed.server.service.feedgenerator.NumberFeedGenerator.validateFeedId(NumberFeedGenerator.java:92) at org.ict4h.atomfeed.server.service.feedgenerator.NumberFeedGenerator.getFeedForId(NumberFeedGenerator.java:34) at org.ict4h.atomfeed.server.service.EventFeedServiceImpl.getEventFeed(EventFeedServiceImpl.java:54) at org.ict4h.atomfeed.server.service.helper.EventFeedServiceHelper$2.execute(EventFeedServiceHelper.java:49) at org.ict4h.atomfeed.server.service.helper.EventFeedServiceHelper$2.execute(EventFeedServiceHelper.java:46) at org.bahmni.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:42) at org.ict4h.atomfeed.server.service.helper.EventFeedServiceHelper.getEventFeed(EventFeedServiceHelper.java:46) at us.mn.state.health.lims.feed.AtomFeedAction.getEventFeed(AtomFeedAction.java:73) at us.mn.state.health.lims.feed.AtomFeedAction.performAction(AtomFeedAction.java:59) at us.mn.state.health.lims.ws.WebServiceAction.execute(WebServiceAction.java:29) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) at us.mn.state.health.lims.common.servlet.LimsActionServlet.doGet(LimsActionServlet.java:127) at javax.servlet.http.HttpServlet.service(HttpServlet.java:618) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at us.mn.state.health.lims.common.util.RequestParameterCheckFilter.doFilter(RequestParameterCheckFilter.java:29) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at us.mn.state.health.lims.common.util.OpenElisRequestFilter.doFilter(OpenElisRequestFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:534) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source)

01:56:00.654 [OpenELIS-Scheduler_Worker-2] ERROR org.ict4h.atomfeed.client.service.AtomFeedClient - Failed to process failed event. FailedEvent{failedAt=1724453715686, event=Event{id=‘tag:atomfeed.ict4h.org:4c76be83-5118-464f-8913-38c523d27a18’, content=‘/openmrs/ws/rest/v1/bahmnicore/bahmniencounter/07829245-fc2a-4573-b700-959fdf12f850?includeAll=true’}, errorMessage='Failed processing event in feed [http://localhost:8050/openmrs/ws/atomfeed/encounter/1] us.mn.state.health.lims.common.exception.LIMSRuntimeExceptionjava.lang.RuntimeException: us.mn.state.health.lims.common.exception.LIMSRuntimeException at org.bahmni.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:51) at org.ict4h.atomfeed.client.service.AtomFeedClient.processEvents(AtomFeedClient.java:69) at org.bahmni.feed.openelis.feed.job.OpenELISFeedReaderJob.processEvents(OpenELISFeedReaderJob.java:74) at org.bahmni.feed.openelis.feed.job.OpenELISFeedReaderJob.execute(OpenELISFeedReaderJob.java:58) at org.quartz.core.JobRunShell.run(JobRunShell.java:207) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560) Caused by: us.mn.state.health.lims.common.exception.LIMSRuntimeException at org.bahmni.feed.openelis.feed.event.EncounterFeedWorker.process(EncounterFeedWorker.java:134) at org.ict4h.atomfeed.client.service.AtomFeedClient$EventProcessor.doInTransaction(AtomFeedClient.java:169) at org.ict4h.atomfeed.transaction.AFTransactionWorkWithoutResult.execute(AFTransactionWorkWithoutResult.java:6) at org.bahmni.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:42) … 5 more Caused by: java.lang.NullPointerException at org.bahmni.feed.openelis.feed.event.EncounterFeedProcessor$SampleItemTestCache.findOrCreateSampleItemFromCache(EncounterFeedProcessor.java:447) at org.bahmni.feed.openelis.feed.event.EncounterFeedProcessor$SampleItemTestCache.add(EncounterFeedProcessor.java:428) at org.bahmni.feed.openelis.feed.event.EncounterFeedProcessor.getSampleTestCollections(EncounterFeedProcessor.java:142) at org.bahmni.feed.openelis.feed.event.EncounterFeedProcessor.createSample(EncounterFeedProcessor.java:118) at org.bahmni.feed.openelis.feed.event.GroupByEncounterFeedProcessor.process(GroupByEncounterFeedProcessor.java:72) at org.bahmni.feed.openelis.feed.event.EncounterFeedWorker.process(EncounterFeedWorker.java:158) at org.bahmni.feed.openelis.feed.event.EncounterFeedWorker.process(EncounterFeedWorker.java:131) … 8 more ', feedUri=‘http://localhost:8050/openmrs/ws/atomfeed/encounter/recent’} java.lang.RuntimeException: us.mn.state.health.lims.common.exception.LIMSRuntimeException at org.bahmni.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:51) ~[AtomFeedHibernateTransactionManager.class:?] at org.ict4h.atomfeed.client.service.AtomFeedClient.processFailedEvents(AtomFeedClient.java:99) [AtomFeedClient.class:?] at org.bahmni.feed.openelis.feed.job.OpenELISFeedFailedEventsJob.processFailedEvents(OpenELISFeedFailedEventsJob.java:37) [OpenELISFeedFailedEventsJob.class:?] at org.bahmni.feed.openelis.feed.job.OpenELISFeedFailedEventsJob.execute(OpenELISFeedFailedEventsJob.java:30) [OpenELISFeedFailedEventsJob.class:?] at org.quartz.core.JobRunShell.run(JobRunShell.java:207) [JobRunShell.class:?] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560) [SimpleThreadPool$WorkerThread.class:?] Caused by: us.mn.state.health.lims.common.exception.LIMSRuntimeException at org.bahmni.feed.openelis.feed.event.EncounterFeedWorker.process(EncounterFeedWorker.java:134) ~[EncounterFeedWorker.class:?] at org.ict4h.atomfeed.client.service.AtomFeedClient$FailedEventProcessor.doInTransaction(AtomFeedClient.java:252) ~[AtomFeedClient$FailedEventProcessor.class:?] at org.ict4h.atomfeed.transaction.AFTransactionWorkWithoutResult.execute(AFTransactionWorkWithoutResult.java:6) ~[AFTransactionWorkWithoutResult.class:?] at org.bahmni.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:42) ~[AtomFeedHibernateTransactionManager.class:?] … 5 more Caused by: java.lang.NullPointerException at org.bahmni.feed.openelis.feed.event.EncounterFeedProcessor$SampleItemTestCache.findOrCreateSampleItemFromCache(EncounterFeedProcessor.java:447) ~[EncounterFeedProcessor$SampleItemTestCache.class:?] at org.bahmni.feed.openelis.feed.event.EncounterFeedProcessor$SampleItemTestCache.add(EncounterFeedProcessor.java:428) ~[EncounterFeedProcessor$SampleItemTestCache.class:?] at org.bahmni.feed.openelis.feed.event.EncounterFeedProcessor.getSampleTestCollections(EncounterFeedProcessor.java:142) ~[EncounterFeedProcessor.class:?] at org.bahmni.feed.openelis.feed.event.EncounterFeedProcessor.createSample(EncounterFeedProcessor.java:118) ~[EncounterFeedProcessor.class:?] at org.bahmni.feed.openelis.feed.event.GroupByEncounterFeedProcessor.process(GroupByEncounterFeedProcessor.java:72) ~[GroupByEncounterFeedProcessor.class:?] at org.bahmni.feed.openelis.feed.event.EncounterFeedWorker.process(EncounterFeedWorker.java:158) ~[EncounterFeedWorker.class:?] at org.bahmni.feed.openelis.feed.event.EncounterFeedWorker.process(EncounterFeedWorker.java:131) ~[EncounterFeedWorker.class:?] at org.ict4h.atomfeed.client.service.AtomFeedClient$FailedEventProcessor.doInTransaction(AtomFeedClient.java:252) ~[AtomFeedClient$FailedEventProcessor.class:?] at org.ict4h.atomfeed.transaction.AFTransactionWorkWithoutResult.execute(AFTransactionWorkWithoutResult.java:6) ~[AFTransactionWorkWithoutResult.class:?] at org.bahmni.feed.openelis.feed.transaction.support.AtomFeedHibernateTransactionManager.executeWithTransaction(AtomFeedHibernateTransactionManager.java:42) ~[AtomFeedHibernateTransactionManager.class:?] … 5 more

can you help ?

not yet, please help.