Guest User

Untitled

a guest
Apr 9th, 2015
193
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UI Framework Error
  2. Root Error
  3. java.lang.IllegalArgumentException: The date must not be null
  4.     at org.apache.commons.lang.time.DateUtils.add(DateUtils.java:414)
  5.     at org.apache.commons.lang.time.DateUtils.addDays(DateUtils.java:341)
  6.     at org.apache.commons.lang.time.DateUtils$addDays.call(Unknown Source)
  7.     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
  8.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  9.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
  10.     at SimpleTemplateScript51$_run_closure4.doCall(SimpleTemplateScript51.groovy:103)
  11.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  12.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  13.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  14.     at java.lang.reflect.Method.invoke(Method.java:606)
  15.     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
  16.     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
  17.     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
  18.     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
  19.     at groovy.lang.Closure.call(Closure.java:282)
  20.     at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachWithIndex(DefaultGroovyMethods.java:1213)
  21.     at org.codehaus.groovy.runtime.dgm$150.invoke(Unknown Source)
  22.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
  23.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
  24.     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
  25.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  26.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
  27.     at SimpleTemplateScript51.run(SimpleTemplateScript51.groovy:70)
  28.     at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:165)
  29.     at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:177)
  30.     at org.openmrs.ui.framework.fragment.GroovyFragmentView.render(GroovyFragmentView.java:46)
  31.     at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:187)
  32.     at org.openmrs.ui.framework.fragment.FragmentFactory.process(FragmentFactory.java:116)
  33.     at org.openmrs.ui.framework.page.PageContext.includeFragment(PageContext.java:75)
  34.     at org.openmrs.ui.framework.UiUtils.includeFragment(UiUtils.java:155)
  35.     at sun.reflect.GeneratedMethodAccessor1655.invoke(Unknown Source)
  36.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  37.     at java.lang.reflect.Method.invoke(Method.java:606)
  38.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
  39.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
  40.     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
  41.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  42.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:132)
  43.     at SimpleTemplateScript50$_run_closure5.doCall(SimpleTemplateScript50.groovy:86)
  44.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  45.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  46.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  47.     at java.lang.reflect.Method.invoke(Method.java:606)
  48.     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
  49.     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
  50.     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
  51.     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
  52.     at groovy.lang.Closure.call(Closure.java:282)
  53.     at groovy.lang.Closure.call(Closure.java:295)
  54.     at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1220)
  55.     at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1196)
  56.     at org.codehaus.groovy.runtime.dgm$110.invoke(Unknown Source)
  57.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
  58.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
  59.     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
  60.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  61.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
  62.     at SimpleTemplateScript50.run(SimpleTemplateScript50.groovy:83)
  63.     at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:165)
  64.     at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:177)
  65.     at org.openmrs.ui.framework.page.GroovyPageView.render(GroovyPageView.java:43)
  66.     at org.openmrs.ui.framework.page.PageFactory.processThisFragment(PageFactory.java:185)
  67.     at org.openmrs.ui.framework.page.PageFactory.process(PageFactory.java:114)
  68.     at org.openmrs.ui.framework.page.PageFactory.handle(PageFactory.java:84)
  69.     at org.openmrs.module.uiframework.PageController.handlePath(PageController.java:110)
  70.     at org.openmrs.module.uiframework.PageController.handleUrlWithDotPage(PageController.java:77)
  71.     at sun.reflect.GeneratedMethodAccessor579.invoke(Unknown Source)
  72.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  73.     at java.lang.reflect.Method.invoke(Method.java:606)
  74.     at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
  75.     at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
  76.     at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
  77.     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
  78.     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
  79.     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
  80.     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
  81.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
  82.     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
  83.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  84.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  85.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  86.     at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:61)
  87.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  88.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  89.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  90.     at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  91.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  92.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  93.     at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:109)
  94.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  95.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  96.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  97.     at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:230)
  98.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  99.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  100.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  101.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  102.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  103.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  104.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  105.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  106.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  107.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  108.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  109.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  110.     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  111.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  112.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  113.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  114.     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  115.     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  116.     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
  117.     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
  118.     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
  119.     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
  120.     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  121.     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
  122.     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
  123.     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
  124.     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
  125.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  126.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  127.     at java.lang.Thread.run(Thread.java:745)
  128.  
  129.  
  130. Full Error
  131. org.openmrs.ui.framework.ViewException: Error rendering page view for patientdashboard/patientDashboard. Model properties:
  132. sessionContext
  133. featureToggles
  134. patient
  135. returnUrl
  136. selectedTab
  137. activeVisit
  138. encounterTemplateExtensions
  139. appContextModel
  140. overallActions
  141. includeFragments
  142. visitActions
  143. patientTabs
  144. ui
  145. context
  146. contextPath
  147. session
  148. param
  149. out
  150.     at org.openmrs.ui.framework.page.GroovyPageView.render(GroovyPageView.java:55)
  151.     at org.openmrs.ui.framework.page.PageFactory.processThisFragment(PageFactory.java:185)
  152.     at org.openmrs.ui.framework.page.PageFactory.process(PageFactory.java:114)
  153.     at org.openmrs.ui.framework.page.PageFactory.handle(PageFactory.java:84)
  154.     at org.openmrs.module.uiframework.PageController.handlePath(PageController.java:110)
  155.     at org.openmrs.module.uiframework.PageController.handleUrlWithDotPage(PageController.java:77)
  156.     at sun.reflect.GeneratedMethodAccessor579.invoke(Unknown Source)
  157.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  158.     at java.lang.reflect.Method.invoke(Method.java:606)
  159.     at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
  160.     at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
  161.     at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
  162.     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
  163.     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
  164.     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
  165.     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
  166.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
  167.     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
  168.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  169.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  170.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  171.     at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:61)
  172.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  173.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  174.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
  175.     at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
  176.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  177.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  178.     at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:109)
  179.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  180.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  181.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  182.     at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:230)
  183.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  184.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  185.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  186.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  187.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  188.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  189.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  190.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  191.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  192.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
  193.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  194.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  195.     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  196.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  197.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  198.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  199.     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  200.     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  201.     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
  202.     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
  203.     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
  204.     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
  205.     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  206.     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
  207.     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
  208.     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
  209.     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
  210.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  211.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  212.     at java.lang.Thread.run(Thread.java:745)
  213. Caused by: org.openmrs.ui.framework.FragmentException: Error evaluating view: patientdashboard/visits
  214.     at org.openmrs.ui.framework.fragment.GroovyFragmentView.render(GroovyFragmentView.java:78)
  215.     at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:187)
  216.     at org.openmrs.ui.framework.fragment.FragmentFactory.process(FragmentFactory.java:116)
  217.     at org.openmrs.ui.framework.page.PageContext.includeFragment(PageContext.java:75)
  218.     at org.openmrs.ui.framework.UiUtils.includeFragment(UiUtils.java:155)
  219.     at sun.reflect.GeneratedMethodAccessor1655.invoke(Unknown Source)
  220.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  221.     at java.lang.reflect.Method.invoke(Method.java:606)
  222.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
  223.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
  224.     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
  225.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  226.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:132)
  227.     at SimpleTemplateScript50$_run_closure5.doCall(SimpleTemplateScript50.groovy:86)
  228.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  229.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  230.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  231.     at java.lang.reflect.Method.invoke(Method.java:606)
  232.     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
  233.     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
  234.     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
  235.     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
  236.     at groovy.lang.Closure.call(Closure.java:282)
  237.     at groovy.lang.Closure.call(Closure.java:295)
  238.     at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1220)
  239.     at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1196)
  240.     at org.codehaus.groovy.runtime.dgm$110.invoke(Unknown Source)
  241.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
  242.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
  243.     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
  244.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  245.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
  246.     at SimpleTemplateScript50.run(SimpleTemplateScript50.groovy:83)
  247.     at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:165)
  248.     at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:177)
  249.     at org.openmrs.ui.framework.page.GroovyPageView.render(GroovyPageView.java:43)
  250.     ... 62 more
  251. Caused by: java.lang.IllegalArgumentException: The date must not be null
  252.     at org.apache.commons.lang.time.DateUtils.add(DateUtils.java:414)
  253.     at org.apache.commons.lang.time.DateUtils.addDays(DateUtils.java:341)
  254.     at org.apache.commons.lang.time.DateUtils$addDays.call(Unknown Source)
  255.     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
  256.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  257.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
  258.     at SimpleTemplateScript51$_run_closure4.doCall(SimpleTemplateScript51.groovy:103)
  259.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  260.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  261.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  262.     at java.lang.reflect.Method.invoke(Method.java:606)
  263.     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
  264.     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
  265.     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
  266.     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
  267.     at groovy.lang.Closure.call(Closure.java:282)
  268.     at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachWithIndex(DefaultGroovyMethods.java:1213)
  269.     at org.codehaus.groovy.runtime.dgm$150.invoke(Unknown Source)
  270.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
  271.     at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
  272.     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
  273.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  274.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
  275.     at SimpleTemplateScript51.run(SimpleTemplateScript51.groovy:70)
  276.     at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:165)
  277.     at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:177)
  278.     at org.openmrs.ui.framework.fragment.GroovyFragmentView.render(GroovyFragmentView.java:46)
  279.     ... 97 more
RAW Paste Data