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

Error when viewing patient form for deleted patients

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      Going to the following URL, for a patient that was deleted yields an error.

      http://uat01.openmrs.org:8080/openmrs/admin/patients/patient.form?patientId=9357

      The error is...

      HTTP Status 500 -
      
      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: There is no patient or person with id: '9357'
      	org.openmrs.web.controller.patient.PatientFormController.formBackingObject(PatientFormController.java:465)
      	org.springframework.web.servlet.mvc.AbstractFormController.getErrorsForNewForm(AbstractFormController.java:361)
      	org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:341)
      	org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:281)
      	org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
      	org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
      	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
      	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
      	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      	org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:65)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:76)
      	org.openmrs.module.xforms.web.XformsFilter.doFilter(XformsFilter.java:60)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:74)
      	org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:58)
      	org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:113)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:230)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)
      	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      note The full stack trace of the root cause is available in the Apache Tomcat/7.0.26 logs.
      
      Apache Tomcat/7.0.26
      

      Make a pretty error rather than the stack trace.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sharonvarghese Sharon Varghese
              Reporter:
              arbaughj James Arbaugh [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: