ERROR: Cannot read property 'uuid' of undefined and annot read property 'setMembers' of undefined when enter consultation

Hi folks Recently I have an issue when enter Consultation panel.

There will be an error like this come up (not all at once it’s start from null if I clicked other tabs another type error will come up. and no observation from was display.

I went into Concept Dict in Admin UI. It appeared that search box in concept dict was gone and I don’t know why. (But I still can download csv from here)

Thanks Pi

Hi @zacrify, Its may be because of the concepts haven’t loaded properly in the OpenMRS. Can you go to Administration -> Maintenance -> Search Index and click on rebuild search index. Please login in again to openmrs to see the concepts in the dictionary. Let us know if you still face the issue.

3 Likes

@binduak When I enter to search index, I found this.

This is log from openmrs

22-06-2017 11:06:46 [ERROR] OpenElisPatientFailedEventsFeedClientImpl - openelisatomfeedclient:failed feed execution while running failed eventsjava.lang.NullPointerException
java.lang.NullPointerException
22-06-2017 11:06:46 [ERROR] TimerSchedulerTask - FATAL ERROR: Task [class org.openmrs.scheduler.tasks.TaskThreadedInitializationWrapper] failed due to exception [java.lang.RuntimeException]
java.lang.RuntimeException: java.lang.NullPointerException
	at org.bahmni.module.elisatomfeedclient.api.client.impl.OpenElisPatientFailedEventsFeedClientImpl.processFailedEvents(OpenElisPatientFailedEventsFeedClientImpl.java:75)
	at sun.reflect.GeneratedMethodAccessor402.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)
	at com.sun.proxy.$Proxy280.processFailedEvents(Unknown Source)
	at org.bahmni.module.elisatomfeedclient.api.task.OpenElisPatientFeedFailedEventsTask.execute(OpenElisPatientFeedFailedEventsTask.java:13)
	at org.openmrs.scheduler.tasks.TaskThreadedInitializationWrapper.execute(TaskThreadedInitializationWrapper.java:67)
	at org.openmrs.scheduler.timer.TimerSchedulerTask.execute(TimerSchedulerTask.java:94)
	at org.openmrs.api.context.Daemon$2.run(Daemon.java:135)
Caused by: java.lang.NullPointerException

not sure what to do next

26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'Vitals'
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'History and Examination'
26-06-2017 11:00:12 [ERROR] BahmniExtensions - File not found /opt/openmrs/bahmni_config/openmrs/observationsAdder/CurrentMonthOfTreatment.groovy
26-06-2017 11:00:12 [ERROR] BahmniExtensions - File not found /opt/openmrs/bahmni_config/openmrs/observationsAdder/CurrentMonthOfTreatment.groovy
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'Order Attributes'
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'Obstetrics'
26-06-2017 11:00:12 [ERROR] BahmniExtensions - File not found /opt/openmrs/bahmni_config/openmrs/observationsAdder/CurrentMonthOfTreatment.groovy
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'HEIGHT'
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'Weight'
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'BMI Data'
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'Second Vitals'
26-06-2017 11:00:12 [ERROR] BahmniExtensions - File not found /opt/openmrs/bahmni_config/openmrs/observationsAdder/CurrentMonthOfTreatment.groovy
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'Tuberculosis Followup Template'
26-06-2017 11:00:12 [ERROR] BahmniExtensions - File not found /opt/openmrs/bahmni_config/openmrs/observationsAdder/CurrentMonthOfTreatment.groovy
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'Gynaecology'
26-06-2017 11:00:12 [ERROR] BahmniExtensions - File not found /opt/openmrs/bahmni_config/openmrs/observationsAdder/CurrentMonthOfTreatment.groovy
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'BMI Status Data'
26-06-2017 11:00:12 [ERROR] BahmniExtensions - File not found /opt/openmrs/bahmni_config/openmrs/observationsAdder/CurrentMonthOfTreatment.groovy
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'Systolic'
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'Summary'
26-06-2017 11:00:12 [WARN ] HibernateConceptDAO - No concept found for 'Diastolic'
26-06-2017 11:00:13 [WARN ] HibernateConceptDAO - No concept found for 'Posture'
26-06-2017 11:00:13 [WARN ] HibernateConceptDAO - No concept found for 'Temperature'
26-06-2017 11:00:13 [WARN ] HibernateConceptDAO - No concept found for 'Bahmni Diagnosis Status'
26-06-2017 11:00:13 [WARN ] HibernateConceptDAO - No concept found for 'BACTERIOLOGY CONCEPT SET'
26-06-2017 11:03:52 [ERROR] AbstractAddressHierarchyTask - An error occurred while running scheduled address hierarchy task
java.lang.NullPointerException
	at org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.initializeFullAddressCacheHelper(AddressHierarchyServiceImpl.java:711)
	at org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.initializeFullAddressCacheHelper(AddressHierarchyServiceImpl.java:719)
	at org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.initializeFullAddressCacheHelper(AddressHierarchyServiceImpl.java:719)
	at org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.initializeFullAddressCacheHelper(AddressHierarchyServiceImpl.java:719)
	at org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.initializeFullAddressCacheHelper(AddressHierarchyServiceImpl.java:719)
	at org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.initializeFullAddressCacheHelper(AddressHierarchyServiceImpl.java:719)
	at org.openmrs.module.addresshierarchy.service.AddressHierarchyServiceImpl.initializeFullAddressCache(AddressHierarchyServiceImpl.java:678)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
	at com.sun.proxy.$Proxy229.initializeFullAddressCache(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
	at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
	at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
	at com.sun.proxy.$Proxy230.initializeFullAddressCache(Unknown Source)
	at org.openmrs.module.addresshierarchy.scheduler.InitializeFullAddressCacheTask.execute(InitializeFullAddressCacheTask.java:14)
	at org.openmrs.module.addresshierarchy.scheduler.AbstractAddressHierarchyTask.run(AbstractAddressHierarchyTask.java:31)
	at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(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)

Hi @binduak Thanks when I started the openmrs and I was searching for the concepts In Openmrs was not displaying the concepts, but after following the steps u mentioned “*Administration -> Maintenance -> Search Index and click on rebuild search index *”, It solved my problem.

Hi @binduak, I am facing to the same problem while installing Bahmni on CentOS 6.9. I have Nutritional Values concept not found and Fee Information concept not found on the visit details form. I have tried all that @sunil99k had explained but still having missing concepts and this type of error on the clinical module TypeError: Cannot read property ‘setMembers’ of undefined TypeError: Cannot read property ‘uuid’ of undefined

I have also checked the config files everything seems correct. Can somebody help please?

Hi @sbarry,

Are you able to search the above mentioned concepts from OpenMRS UI Dictionary. You can check this demo link to verify. https://demo.mybahmni.org/openmrs/dictionary/index.htm

Thanks for the feedback. we have been able to solved the problem, what we did is to clone the default config and it’s all perfect now. In the dictionary we are able to find them. Thanks

@sbarry I’m facing the same issue.How did you resolve the issue? I’ve tried a lot but still showing Nutritional Values concept not found and Fee Information concept not found on the visit details form.

binduaks solution solved the error “TypeError: Cannot read property ‘setMembers’ of undefined” for me. thanks !