Uploaded image for project: 'XForms Module'
  1. XForms Module
  2. XFRM-213

obs ID is Null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Openmrs version = Version: 2.1.2 Build 617354

      xforms version = 4.3.11

      Since upgrading to openmrs version 2.1.2 from 1.9 , i noticed this error when i try and edit an xform with existing data - It doesn't recur when saving the form as a new form

      Also noticed with some of the forms , some of the data that were saved in the database are not prepopulated when i click EDIT encounter

      // code placeholder
      
      org.openmrs.api.ValidationException: 'obs id is null' failed to validate with reason: error.noValue
      at org.openmrs.validator.ValidateUtil.validate(ValidateUtil.java:79)
      at org.openmrs.aop.RequiredDataAdvice.before(RequiredDataAdvice.java:124)
      at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      at com.sun.proxy.$Proxy147.saveObs(Unknown Source)
      at org.openmrs.api.impl.EncounterServiceImpl.saveEncounter(EncounterServiceImpl.java:208)
      at sun.reflect.GeneratedMethodAccessor788.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      at com.sun.proxy.$Proxy148.saveEncounter(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor788.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
      at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
      at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      at com.sun.proxy.$Proxy149.saveEncounter(Unknown Source)
      at org.openmrs.module.xforms.web.controller.XformDataUploadController.processXformEdit(XformDataUploadController.java:146)
      at org.openmrs.module.xforms.web.controller.XformDataUploadController.onSubmit(XformDataUploadController.java:106)
      at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:274)
      at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:275)
      at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:146)
      at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
      at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
      at org.openmrs.module.xforms.web.XformsFilter.doFilter(XformsFilter.java:62)
      at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
      at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:108)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:748)
      

       

        Gliffy Diagrams

          Attachments

          1. image-2018-04-07-19-40-15-257.png
            image-2018-04-07-19-40-15-257.png
            139 kB
          2. image-2018-04-12-21-42-03-158.png
            image-2018-04-12-21-42-03-158.png
            175 kB
          3. image-2018-04-12-21-49-55-109.png
            image-2018-04-12-21-49-55-109.png
            153 kB
          4. image-2018-05-19-11-48-23-598.png
            image-2018-05-19-11-48-23-598.png
            231 kB
          5. image-2018-06-22-10-13-56-121.png
            image-2018-06-22-10-13-56-121.png
            226 kB
          6. image-2018-06-22-10-18-11-717.png
            image-2018-06-22-10-18-11-717.png
            57 kB
          7. image-2018-06-22-10-18-17-165.png
            image-2018-06-22-10-18-17-165.png
            57 kB
          8. image-2018-06-22-10-18-33-308.png
            image-2018-06-22-10-18-33-308.png
            43 kB
          9. image-2018-06-22-10-19-24-543.png
            image-2018-06-22-10-19-24-543.png
            194 kB
          10. image-2018-06-22-10-19-55-379.png
            image-2018-06-22-10-19-55-379.png
            180 kB
          11. image-2018-06-22-10-20-15-558.png
            image-2018-06-22-10-20-15-558.png
            185 kB
          12. image-2018-06-25-10-12-03-801.png
            image-2018-06-25-10-12-03-801.png
            58 kB
          13. image-2018-06-25-10-15-24-470.png
            image-2018-06-25-10-15-24-470.png
            41 kB
          14. image-2018-06-25-10-21-09-895.png
            image-2018-06-25-10-21-09-895.png
            122 kB
          15. image-2018-06-25-10-30-24-395.png
            image-2018-06-25-10-30-24-395.png
            191 kB
          16. image-2018-06-25-11-11-17-770.png
            image-2018-06-25-11-11-17-770.png
            53 kB
          17. image-2018-06-25-11-37-04-704.png
            image-2018-06-25-11-37-04-704.png
            91 kB
          18. image-2018-06-25-18-06-09-270.png
            image-2018-06-25-18-06-09-270.png
            45 kB
          19. image-2018-06-25-18-07-30-647.png
            image-2018-06-25-18-07-30-647.png
            22 kB
          20. image-2018-06-25-18-08-13-729.png
            image-2018-06-25-18-08-13-729.png
            39 kB
          21. image-2018-06-25-18-09-12-627.png
            image-2018-06-25-18-09-12-627.png
            96 kB
          22. image-2018-06-25-18-11-46-634.png
            image-2018-06-25-18-11-46-634.png
            133 kB
          23. image-2018-06-29-12-16-39-289.png
            image-2018-06-29-12-16-39-289.png
            97 kB
          24. Screen Shot 2018-06-22 at 10.07.35 AM.png
            Screen Shot 2018-06-22 at 10.07.35 AM.png
            226 kB

            Activity

              People

              Assignee:
              dkayiwa Daniel Kayiwa
              Reporter:
              judy Judy Gichoya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: