Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3728

NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [org.openmrs.Patient#]

    XMLWordPrintable

    Details

      Description

      This was submitted anonymously through the ERR reporting system

      The first task of this ticket is to reproduce this error. We have no supporting documentation on this, but it has been submitted multiple times.

      Version: 1.9.1 Build 28992
      Implementation ID:
      User ID: admin
      Started Modules: serialization.xstream v0.2.7, logic v0.5.2, reporting v0.7.2, patientflags v1.3.4, htmlformentry19ext v0.9, htmlformentry v1.10.0, xforms v4.0.9.5, reportingcompatibility v1.5.8, htmlwidgets v1.6.2

      Summary:
      org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: org.openmrs.Patient#9348

      Description:
      Stack trace:
      org.hibernate.engine.StatefulPersistenceContext.checkUniqueness(StatefulPersistenceContext.java:638)
      org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:305)
      org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:246)
      org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:112)
      org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
      org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:685)
      org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:677)
      org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:673)
      org.openmrs.api.db.hibernate.HibernatePatientDAO.savePatient(HibernatePatientDAO.java:103)
      org.openmrs.api.impl.PatientServiceImpl.savePatient(PatientServiceImpl.java:142)
      at [ignored] ...
      $Proxy97.savePatient(Unknown Source)
      at [ignored] ...
      org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:122)
      at [ignored] ...
      $Proxy98.savePatient(Unknown Source)
      at [ignored] ...
      $Proxy98.savePatient(Unknown Source)
      org.openmrs.web.controller.patient.ShortPatientFormController.saveShortPatient(ShortPatientFormController.java:238)
      <snip>

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              dkayiwa Daniel Kayiwa
              Reporter:
              bwolfe Ben Wolfe
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified