Details
-
Type:
Bug
-
Status: Closed
-
Priority:
TBD
-
Resolution: Cannot Reproduce
-
Affects Version/s: OpenMRS 1.9.0
-
Fix Version/s: OpenMRS 1.9.0
-
Component/s: None
-
Labels:None
-
Complexity:Undetermined
-
Development:
Description
This error can be recreated by these steps:
- Go into the patient edit short form for a patient with a single OpenMRS Identification Number
- Add a new OpenMRS Identification Number (e.g., 9-1) and mark it as preferred
- Remove the original identifier
- Try to save the changes
I see this exception consistently using the OpenMRS standalone, every time I try it.
Version: 1.9.0 alpha Build 24245
Implementation ID:
User ID: admin
Started Modules: atlas v1.0, serialization.xstream v0.2.5, logic v0.5, reporting v0.6.2, htmlformentry v1.7.3, xforms v4.0.8, groovy v2.0.4, reportingcompatibility v1.5.4.1, htmlwidgets v1.5.7.1
Summary:
org.springframework.dao.DataIntegrityViolationException: not-null property references a null or transient value: org.openmrs.PatientIdentifier.dateCreated; nested exception is org.hibernate.PropertyValueException: not-null property references a n
Description:
Stack trace:
at [ignored] ...
$Proxy104.getMaximumPropertyLength(Unknown Source)
org.openmrs.validator.ValidateUtil.validateFieldLengths(ValidateUtil.java:125)
org.openmrs.validator.PersonValidator.validate(PersonValidator.java:106)
org.openmrs.validator.PatientValidator.validate(PatientValidator.java:72)
org.openmrs.web.controller.patient.ShortPatientFormController.saveShortPatient(ShortPatientFormController.java:220)
at [ignored] ...
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
<snip>