Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1253

Fix failing DeleteAllergyTest, AddNewAllergyTest and EditAllergyTest

    XMLWordPrintable

Details

    • Bug
    • Status: Approved
    • TBD
    • Resolution: Fixed
    • Reference Application 2.6.0
    • None
    • None
    • Undetermined

    Description

      These tests are failing with the same reason which can be seen here https://saucelabs.com/beta/tests/f22ccc907dd94fd3ab749f4b124bfdbf/commands#50
      Failing Travis build https://travis-ci.org/openmrs/openmrs-distro-referenceapplication/builds/180405978

      Full stacktrace from tomcat logs:

      ERROR - PageController.handlePath(155) |2016-12-01 14:26:34,392| Error rendering page view for allergies. Model properties:
      sessionContext 
      featureToggles 
      patient 
      allergies 
      returnUrl 
      hasModifyAllergiesPrivilege 
      ui 
      context 
      contextPath 
      session 
      param 
      out
      org.openmrs.ui.framework.ViewException: Error rendering page view for allergies. Model properties:
      sessionContext 
      featureToggles 
      patient 
      allergies 
      returnUrl 
      hasModifyAllergiesPrivilege 
      ui 
      context 
      contextPath 
      session 
      param 
      out
      	at org.openmrs.ui.framework.page.GroovyPageView.render(GroovyPageView.java:55)
      	at org.openmrs.ui.framework.page.PageFactory.processThisFragment(PageFactory.java:187)
      	at org.openmrs.ui.framework.page.PageFactory.process(PageFactory.java:116)
      	at org.openmrs.ui.framework.page.PageFactory.handle(PageFactory.java:86)
      	at org.openmrs.module.uiframework.PageController.handlePath(PageController.java:116)
      	at org.openmrs.module.uiframework.PageController.handleUrlWithDotPage(PageController.java:83)
      	at sun.reflect.GeneratedMethodAccessor579.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
      	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
      	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
      	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.doGet(FrameworkServlet.java:857)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
      	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.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.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:122)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
      	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:958)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
      	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.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517)
      	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.openmrs.ui.framework.ViewException: (in 'patientHeader')
      *** In view 'patientheader/activeVisitStatus', could not find property 'activeVisit'.
      Passed from controller: 
        sessionContext -> org.openmrs.module.appui.UiSessionContext@1e06e421
        featureToggles -> org.openmrs.module.appframework.feature.FeatureToggleProperties@274f0b97
        activeVisitStartDatetime -> null
        patient -> Patient#26
        allergies -> org.openmrs.Allergies@28ed1899
        returnUrl -> /openmrs/coreapps/clinicianfacing/patient.page?patientId=26&
        hasModifyAllergiesPrivilege -> true
        ui -> org.openmrs.ui.framework.fragment.FragmentUiUtils@8eb2bb4
        context -> org.openmrs.api.context.Context@6f7b80f0
        contextPath -> openmrs
        session -> org.openmrs.ui.framework.session.Session@467546d2
        param -> {patientId=[Ljava.lang.String;@61cb755}
        out -> java.io.PrintWriter@57fb8aa9
        config -> {patient=org.openmrs.module.emrapi.patient.PatientDomainWrapper@6434fca6, id=fr2322}
      	at org.openmrs.ui.framework.fragment.GroovyFragmentView.render(GroovyFragmentView.java:67)
      	at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:195)
      	at org.openmrs.ui.framework.fragment.FragmentFactory.process(FragmentFactory.java:124)
      	at org.openmrs.ui.framework.page.PageContext.includeFragment(PageContext.java:75)
      	at org.openmrs.ui.framework.UiUtils.includeFragment(UiUtils.java:158)
      	at org.openmrs.ui.framework.UiUtils$includeFragment$32.call(Unknown Source)
      	at SimpleTemplateScript53.run(SimpleTemplateScript53.groovy:15)
      	at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:168)
      	at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:180)
      	at org.openmrs.ui.framework.page.GroovyPageView.render(GroovyPageView.java:43)
      	... 66 more
      Caused by: org.openmrs.ui.framework.ViewException: *** In view 'patientheader/activeVisitStatus', could not find property 'activeVisit'.
      Passed from controller: 
        sessionContext -> org.openmrs.module.appui.UiSessionContext@1e06e421
        featureToggles -> org.openmrs.module.appframework.feature.FeatureToggleProperties@274f0b97
        activeVisitStartDatetime -> null
        patient -> Patient#26
        allergies -> org.openmrs.Allergies@28ed1899
        returnUrl -> /openmrs/coreapps/clinicianfacing/patient.page?patientId=26&
        hasModifyAllergiesPrivilege -> true
        ui -> org.openmrs.ui.framework.fragment.FragmentUiUtils@8eb2bb4
        context -> org.openmrs.api.context.Context@6f7b80f0
        contextPath -> openmrs
        session -> org.openmrs.ui.framework.session.Session@467546d2
        param -> {patientId=[Ljava.lang.String;@61cb755}
        out -> java.io.PrintWriter@57fb8aa9
        config -> {patient=org.openmrs.module.emrapi.patient.PatientDomainWrapper@6434fca6, id=fr2322}
      	at org.openmrs.ui.framework.fragment.GroovyFragmentView.render(GroovyFragmentView.java:55)
      	at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:195)
      	at org.openmrs.ui.framework.fragment.FragmentFactory.process(FragmentFactory.java:124)
      	at org.openmrs.ui.framework.fragment.FragmentContext.includeFragment(FragmentContext.java:54)
      	at org.openmrs.ui.framework.UiUtils.includeFragment(UiUtils.java:158)
      	at org.openmrs.ui.framework.UiUtils$includeFragment$32.call(Unknown Source)
      	at SimpleTemplateScript43$_run_closure5.doCall(SimpleTemplateScript43.groovy:225)
      	at sun.reflect.GeneratedMethodAccessor1256.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021)
      	at groovy.lang.Closure.call(Closure.java:426)
      	at groovy.lang.Closure.call(Closure.java:442)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2056)
      	at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      	at SimpleTemplateScript43.run(SimpleTemplateScript43.groovy:223)
      	at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:168)
      	at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:180)
      	at org.openmrs.ui.framework.fragment.GroovyFragmentView.render(GroovyFragmentView.java:46)
      	... 75 more
      

      Gliffy Diagrams

        Attachments

          1. OpenMRS-active-visit-failure.pdf
            82 kB
            Domenico Di Leo
          2. openMRS-active-visti-failure-20122016-1330.png
            112 kB
            Domenico Di Leo
          3. ui_framwork_error.png
            1.01 MB
            Adam Grzybkowski

          Issue Links

            Activity

              People

                dkayiwa Daniel Kayiwa
                adamg Adam Grzybkowski
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: