On a fresh installation of Bahmni in Vagrant box (following this article), I am not able to create a new patient. I get the following error message when clicking on Save:
SEVERE: Servlet.service() for servlet [openmrs] in context with path [openmrs] threw exception [Request processing failed; nested exception is org.openmrs.module.webservices.rest.web.response.ConversionException: identifiers on class org.openmrs.Patient] with root cause
java.lang.NullPointerException
at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.setProperty(BaseDelegatingResource.java:750)
at org.openmrs.module.webservices.rest.web.ConversionUtil.convertMap(ConversionUtil.java:305)
at org.openmrs.module.webservices.rest.web.ConversionUtil.convert(ConversionUtil.java:267)
at org.openmrs.module.webservices.rest.web.ConversionUtil.convert(ConversionUtil.java:207)
at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.setProperty(BaseDelegatingResource.java:744)
at org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.setConvertedProperties(BaseDelegatingResource.java:612)
at org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_8.PatientResource1_8.getPatient(PatientResource1_8.java:192)
at org.bahmni.module.bahmnicore.web.v1_0.controller.BahmniPatientProfileResource.mapForCreatePatient(BahmniPatientProfileResource.java:138)
at org.bahmni.module.bahmnicore.web.v1_0.controller.BahmniPatientProfileResource.create(BahmniPatientProfileResource.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
Any idea?
(If it is not something obvious, I can give some debugging info)
Firefox 46.0.0 (Ubuntu 0.0.0) patient context initialization should set preffered identifier to patient identifier if the configure attribute does not exists FAILED
TypeError: can’t assign to properties of (new String(“1234”)): not an object in /home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/clinical/displaycontrols/patientContext/directives/patientContext.js (line 9)
convertBooleanValuesToEnglish/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/clinical/displaycontrols/patientContext/directives/patientContext.js:9:3108
er/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/lodash/dist/lodash.min.js:31:385
at@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/lodash/dist/lodash.min.js:18:190
rr/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/lodash/dist/lodash.min.js:31:172
ne@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/lodash/dist/lodash.min.js:49:464
convertBooleanValuesToEnglish@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/clinical/displaycontrols/patientContext/directives/patientContext.js:9:2849
controller/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/clinical/displaycontrols/patientContext/directives/patientContext.js:9:1282
.then@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/test/unit/clinical/displaycontrols/patientContext/directives/patientContext.spec.js:195:32
controller@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/clinical/displaycontrols/patientContext/directives/patientContext.js:9:648
invoke@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:4535:14
$ControllerProvider/this.$get</</instantiate<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:9380:24
nodeLinkFn@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:8497:34
compileTemplateUrl/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:8770:13
processQueue@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:14991:28
scheduleProcessQueue/<@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:15007:27
$RootScopeProvider/this.$get</Scope.prototype.$eval@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:16251:16
$RootScopeProvider/this.$get</Scope.prototype.$digest@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:16069:15
$RootScopeProvider/this.$get</Scope.prototype.$apply@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:16359:13
done@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular/angular.js:10791:36
handleResponse@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular-mocks/angular-mocks.js:1272:9
createHttpBackendMock/$httpBackend.flush@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/app/components/angular-mocks/angular-mocks.js:1631:9
@/home/romain/repos/bahmni/openmrs-module-bahmniapps/ui/test/unit/clinical/displaycontrols/patientContext/directives/patientContext.spec.js:203:13
Firefox 46.0.0 (Ubuntu 0.0.0) programService test updatePatientProgram FAILED
@mksrom / @sravanthi17 - as a point of reference, we (PIH) have a fork of release-0.81 of bahmniapps in which we have either backported from master, or applied new fixes, in order to successfully build without forcing tests, and without having to use IST. You can find that code here: