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

java.lang.ClassCastException: org.openmrs.Person cannot be cast to org.openmrs.Patient

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      Version: 1.8.0 SNAPSHOT Build 18155
      Implementation ID:
      User ID: felipo
      Started Modules: patientimage v0.3.3, logic v0.5, accesslogging v1.1.5, conceptsearch v0.2, xforms v3.9.9, medicalHistory v0.1, requestaccount v1.2, growthchart v1.0

      When i create a new patient, get a error after selected a similar people.

      If i use "Administratio/Manage Patients/Create a New Patient" Get the error, but i use "Find/Create Patient" not have error.

      org.openmrs.api.db.hibernate.HibernatePatientDAO.getPatient(HibernatePatientDAO.java:71)
      org.openmrs.api.impl.PatientServiceImpl.getPatient(PatientServiceImpl.java:138)
      sun.reflect.GeneratedMethodAccessor509.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
      org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      $Proxy614.getPatient(Unknown Source)
      sun.reflect.GeneratedMethodAccessor509.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
      org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
      org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

        Attachments

        1. trunk-2033.patch
          2 kB
        2. trunk-2033.patch
          2 kB
        3. TRUNK_2033-2.patch
          9 kB

          Activity

            People

            Assignee:
            grwarren Greg Warren [X] (Inactive)
            Reporter:
            felipo Felipe Arboleda
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: