Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrent Modification Error on Patient Search screen #47

Open
pmanko opened this issue Mar 22, 2022 · 7 comments
Open

Concurrent Modification Error on Patient Search screen #47

pmanko opened this issue Mar 22, 2022 · 7 comments
Assignees
Labels

Comments

@pmanko
Copy link
Member

pmanko commented Mar 22, 2022

ConcurrentModificationException:

Root Error
java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1445)
	at java.util.HashMap$EntryIterator.next(HashMap.java:1479)
	at java.util.HashMap$EntryIterator.next(HashMap.java:1477)
	at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.cleanup(JdbcCoordinatorImpl.java:507)
	at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.releaseResources(JdbcCoordinatorImpl.java:493)
	at org.hibernate.internal.SessionImpl.disconnect(SessionImpl.java:469)
	at org.springframework.orm.hibernate4.HibernateTransactionManager.disconnectOnCompletion(HibernateTransactionManager.java:697)
	at org.springframework.orm.hibernate4.HibernateTransactionManager.doCleanupAfterCompletion(HibernateTransactionManager.java:681)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:1012)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:807)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:515)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)
	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.$Proxy154.notifyPrivilegeListeners(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor667.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.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.$Proxy155.notifyPrivilegeListeners(Unknown Source)
	at org.openmrs.api.context.UserContext.hasPrivilege(UserContext.java:312)
	at org.openmrs.api.context.Context.hasPrivilege(Context.java:649)
	at org.openmrs.aop.AuthorizationAdvice.before(AuthorizationAdvice.java:78)
	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.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
	at com.sun.proxy.$Proxy171.getPatient(Unknown Source)
	at org.openmrs.module.emrapi.utils.GeneralUtils.getLastViewedPatients(GeneralUtils.java:264)
	at org.openmrs.module.coreapps.fragment.controller.patientsearch.PatientSearchWidgetFragmentController.controller(PatientSearchWidgetFragmentController.java:65)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.openmrs.ui.framework.UiFrameworkUtil.invokeMethodWithArguments(UiFrameworkUtil.java:112)
	at org.openmrs.ui.framework.UiFrameworkUtil.executeControllerMethod(UiFrameworkUtil.java:71)
	at org.openmrs.ui.framework.fragment.FragmentFactory.handleRequestWithController(FragmentFactory.java:241)
	at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:160)
	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$20.call(Unknown Source)
	at SimpleTemplateScript22.run(SimpleTemplateScript22.groovy:32)
	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)
	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.GeneratedMethodAccessor1206.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.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.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:219)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
	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:1137)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2512)
	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)
Full Error
org.openmrs.ui.framework.ViewException: Error rendering page view for findpatient/findPatient. Model properties:
sessionContext 
featureToggles 
patient 
afterSelectedUrl 
heading 
label 
showLastViewedPatients 
registrationAppLink 
breadcrumbs 
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.GeneratedMethodAccessor1206.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.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.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:219)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
	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:1137)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2512)
	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)
Caused by: java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1445)
	at java.util.HashMap$EntryIterator.next(HashMap.java:1479)
	at java.util.HashMap$EntryIterator.next(HashMap.java:1477)
	at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.cleanup(JdbcCoordinatorImpl.java:507)
	at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.releaseResources(JdbcCoordinatorImpl.java:493)
	at org.hibernate.internal.SessionImpl.disconnect(SessionImpl.java:469)
	at org.springframework.orm.hibernate4.HibernateTransactionManager.disconnectOnCompletion(HibernateTransactionManager.java:697)
	at org.springframework.orm.hibernate4.HibernateTransactionManager.doCleanupAfterCompletion(HibernateTransactionManager.java:681)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:1012)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:807)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:515)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)
	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.$Proxy154.notifyPrivilegeListeners(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor667.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.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.$Proxy155.notifyPrivilegeListeners(Unknown Source)
	at org.openmrs.api.context.UserContext.hasPrivilege(UserContext.java:312)
	at org.openmrs.api.context.Context.hasPrivilege(Context.java:649)
	at org.openmrs.aop.AuthorizationAdvice.before(AuthorizationAdvice.java:78)
	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.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
	at com.sun.proxy.$Proxy171.getPatient(Unknown Source)
	at org.openmrs.module.emrapi.utils.GeneralUtils.getLastViewedPatients(GeneralUtils.java:264)
	at org.openmrs.module.coreapps.fragment.controller.patientsearch.PatientSearchWidgetFragmentController.controller(PatientSearchWidgetFragmentController.java:65)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.openmrs.ui.framework.UiFrameworkUtil.invokeMethodWithArguments(UiFrameworkUtil.java:112)
	at org.openmrs.ui.framework.UiFrameworkUtil.executeControllerMethod(UiFrameworkUtil.java:71)
	at org.openmrs.ui.framework.fragment.FragmentFactory.handleRequestWithController(FragmentFactory.java:241)
	at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:160)
	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$20.call(Unknown Source)
	at SimpleTemplateScript22.run(SimpleTemplateScript22.groovy:32)
	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)
	... 68 more
@pmanko
Copy link
Member Author

pmanko commented Mar 23, 2022

Steps to reproduce:
Option 1:

  1. Log into an iSantePlus instance.
  2. Click on the "find patient record" button
  3. You should sometimes see the error here.
  4. Otherwise, click back then find patient record and keep doing that until the error shows up.

Option 2: Refresh the find patient record page continuously. Seems to show up more rarely.

@pmanko
Copy link
Member Author

pmanko commented Mar 29, 2022

Debug-level log trace of error:

DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,571| In method AdministrationService.getGlobalProperty. Arguments: String=owa.appBaseUrl, String=/owa, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,572| In method AdministrationService.getGlobalProperty. Arguments: String=owa.appBaseUrl, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,572| Exiting method getGlobalProperty. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,573| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,575| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Locations, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,577| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,577| In method LocationService.getLocation. Arguments: Integer=377, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,580| Exiting method getLocation. execution time: 3 ms
DEBUG - UserContext.addProxyPrivilege(215) |2022-03-29 21:22:46,581| Adding proxy privilege: Get Providers
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,581| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Providers, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,583| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,583| In method ProviderService.getProvidersByPerson. Arguments: Person=Person(personId=1), boolean=false, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,585| Exiting method getProvidersByPerson. execution time: 2 ms
DEBUG - UserContext.removeProxyPrivilege(228) |2022-03-29 21:22:46,586| Removing proxy privilege: Get Providers
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,586| In method AppFrameworkService.getApp. Arguments: String=coreapps.findPatient, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,586| Exiting method getApp. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,587| In method AdministrationService.getGlobalProperty. Arguments: String=ui2.extensionConfig.org.openmrs.ui.framework.mapResource, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,589| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,590| In method AdministrationService.getGlobalProperty. Arguments: String=ui2.extensionConfig.org.openmrs.ui.framework.mapResource, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,591| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,592| In method AdministrationService.getGlobalProperty. Arguments: String=minSearchCharacters, String=1, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,593| In method AdministrationService.getGlobalProperty. Arguments: String=minSearchCharacters, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,593| Exiting method getGlobalProperty. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,594| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,595| In method AdministrationService.getGlobalProperty. Arguments: String=coreapps.searchDelayShort, String=300, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,595| In method AdministrationService.getGlobalProperty. Arguments: String=coreapps.searchDelayShort, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,596| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,597| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,597| In method AdministrationService.getGlobalProperty. Arguments: String=coreapps.searchDelayLong, String=1000, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,598| In method AdministrationService.getGlobalProperty. Arguments: String=coreapps.searchDelayLong, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,599| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,600| Exiting method getGlobalProperty. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,600| In method AdministrationService.getGlobalProperty. Arguments: String=default_locale, String=en, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,601| In method AdministrationService.getGlobalProperty. Arguments: String=default_locale, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,602| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,603| Exiting method getGlobalProperty. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,604| In method AdministrationService.getGlobalProperty. Arguments: String=uiframework.formatter.dateFormat, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,605| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,605| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Users, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,607| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,607| In method UserService.getUser. Arguments: Integer=1, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,610| Exiting method getUser. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,612| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,613| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,614| In method PatientService.getPatient. Arguments: Integer=7, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,620| Exiting method getPatient. execution time: 6 ms
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:46,621| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:46,621| Registering session with synchronization manager (112287739)
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,621| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,621| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,622| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,622| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,624| Exiting method notifyPrivilegeListeners. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,624| In method PatientService.getPatient. Arguments: Integer=8, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,624| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,625| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,627| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:46,628| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:46,628| Registering session with synchronization manager (112287739)
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,628| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,628| Exiting method getPatient. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,628| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,629| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,631| Exiting method getGlobalProperty. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,631| Exiting method getGlobalProperty. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,631| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,632| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,633| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,633| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,633| Exiting method notifyPrivilegeListeners. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,634| In method PatientService.getPatient. Arguments: Integer=12, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,635| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,635| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,636| Exiting method notifyPrivilegeListeners. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,636| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Patient ID, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,636| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,637| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:46,637| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:46,637| Registering session with synchronization manager (112287739)
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,637| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,637| Exiting method getPatient. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,638| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,638| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,639| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Patient ID, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,639| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,639| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,640| In method PatientService.getPatient. Arguments: Integer=11, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,640| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,641| Exiting method getPatientIdentifierTypeByName. execution time: 5 ms
WARN - PatientSyncWorker.run(98) |2022-03-29 21:22:46,641| iSantePlus ID is supposed to map to Patient ID but getIdentifierTypeByName returned null
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,642| Identity domain iSantePlus ID has no local equivalent
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,642| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,641| Exiting method getPatientIdentifierTypeByName. execution time: 2 ms
WARN - PatientSyncWorker.run(98) |2022-03-29 21:22:46,642| iSantePlus ID is supposed to map to Patient ID but getIdentifierTypeByName returned null
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,642| Identity domain iSantePlus ID has no local equivalent
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,642| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,642| Exiting method getPatient. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,643| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,642| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:46,642| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:46,645| Registering session with synchronization manager (112287739)
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,645| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,645| In method PatientService.getPatient. Arguments: Integer=13, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,645| Exiting method notifyPrivilegeListeners. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,646| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code ST, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,644| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,645| Exiting method notifyPrivilegeListeners. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,646| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code ST, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,645| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,647| Exiting method getGlobalProperty. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,648| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,648| Exiting method getGlobalProperty. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,649| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,648| Exiting method getPatient. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,649| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,650| Exiting method getPatientIdentifierTypeByName. execution time: 4 ms
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:46,649| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:46,651| Registering session with synchronization manager (112287739)
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,649| Exiting method getPatientIdentifierTypeByName. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,652| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,650| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,652| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,649| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,653| Exiting method notifyPrivilegeListeners. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,654| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,654| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
ERROR - SqlExceptionHelper.logExceptions(146) |2022-03-29 21:22:46,653| You can't operate on a closed Connection!!!
ERROR - SqlExceptionHelper.logExceptions(146) |2022-03-29 21:22:46,653| You can't operate on a closed Statement!!!
ERROR - PatientSyncWorker.run(128) |2022-03-29 21:22:46,655| org.hibernate.exception.GenericJDBCException: could not extract ResultSet
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:46,656| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:46,656| Participating in existing session, so not releasing session through synchronization manager
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,653| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
ERROR - PatientSyncWorker.run(128) |2022-03-29 21:22:46,655| org.hibernate.exception.GenericJDBCException: could not prepare statement
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:46,657| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:46,657| Participating in existing session, so not releasing session through synchronization manager
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,654| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,657| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,654| In method PatientService.getPatient. Arguments: Integer=14, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,658| Exiting method notifyPrivilegeListeners. execution time: 5 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,659| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Patient ID, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,657| Exiting method getGlobalProperty. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,659| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,660| Exiting method getGlobalProperty. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,660| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,661| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,662| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,662| Exiting method getPatient. execution time: 8 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,662| Exiting method getPatientIdentifierTypeByName. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,662| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,662| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,664| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Patient ID, 
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:46,662| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:46,665| Registering session with synchronization manager (112287739)
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,665| Exiting method notifyPrivilegeListeners. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,666| In method PatientService.getPatient. Arguments: Integer=15, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,664| Exiting method getGlobalProperty. execution time: 2 ms
WARN - PatientSyncWorker.run(98) |2022-03-29 21:22:46,663| iSantePlus ID is supposed to map to Patient ID but getIdentifierTypeByName returned null
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,667| Identity domain iSantePlus ID has no local equivalent
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,667| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,666| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,665| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,668| Exiting method getPatient. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,669| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,669| Exiting method getGlobalProperty. execution time: 4 ms
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:46,669| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:46,670| Registering session with synchronization manager (112287739)
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,670| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,670| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,669| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,671| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code ST, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,669| Exiting method notifyPrivilegeListeners. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,672| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Patient ID, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,671| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,670| Exiting method getPatientIdentifierTypeByName. execution time: 6 ms
WARN - PatientSyncWorker.run(98) |2022-03-29 21:22:46,674| iSantePlus ID is supposed to map to Patient ID but getIdentifierTypeByName returned null
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,674| Identity domain iSantePlus ID has no local equivalent
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,674| Exiting method getPatientIdentifierTypeByName. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,674| In method PatientService.getPatient. Arguments: Integer=16, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,673| Exiting method getGlobalProperty. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,676| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,672| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,677| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,675| Exiting method getPatientIdentifierTypeByName. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,674| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
WARN - PatientSyncWorker.run(98) |2022-03-29 21:22:46,679| iSantePlus ID is supposed to map to Patient ID but getIdentifierTypeByName returned null
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,679| Identity domain iSantePlus ID has no local equivalent
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,679| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
ERROR - SqlExceptionHelper.logExceptions(146) |2022-03-29 21:22:46,679| You can't operate on a closed ResultSet!!!
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,680| Exiting method getGlobalProperty. execution time: 4 ms
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:46,680| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:46,681| Registering session with synchronization manager (112287739)
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,680| Exiting method getPatient. execution time: 6 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,680| Exiting method notifyPrivilegeListeners. execution time: 6 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,681| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code ST, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,680| Exiting method getGlobalProperty. execution time: 3 ms
ERROR - PatientSyncWorker.run(128) |2022-03-29 21:22:46,680| org.hibernate.exception.GenericJDBCException: Could not read entity state from ResultSet : EntityKey[org.openmrs.PatientIdentifier#16]
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:46,682| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:46,682| Participating in existing session, so not releasing session through synchronization manager
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,682| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,681| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,681| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,681| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,685| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code ST, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,681| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,685| Exiting method getGlobalProperty. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,686| Exiting method getGlobalProperty. execution time: 5 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,686| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,683| Exiting method getPatientIdentifierTypeByName. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,686| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
ERROR - SqlExceptionHelper.logExceptions(146) |2022-03-29 21:22:46,692| You can't operate on a closed Connection!!!
ERROR - PatientSyncWorker.run(128) |2022-03-29 21:22:46,692| org.hibernate.exception.GenericJDBCException: could not prepare statement
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:46,693| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:46,693| Participating in existing session, so not releasing session through synchronization manager
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,687| Exiting method notifyPrivilegeListeners. execution time: 6 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,692| Exiting method getGlobalProperty. execution time: 11 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,694| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,694| In method PatientService.getPatient. Arguments: Integer=17, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,693| Exiting method notifyPrivilegeListeners. execution time: 7 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,695| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Patient ID, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,693| Exiting method getGlobalProperty. execution time: 7 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,695| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,693| Exiting method getPatientIdentifierTypeByName. execution time: 8 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,698| Exiting method getGlobalProperty. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,698| Exiting method getGlobalProperty. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,698| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,698| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:46,698| HibernateContext: Opening Hibernate Session
ERROR - SqlExceptionHelper.logExceptions(146) |2022-03-29 21:22:46,698| You can't operate on a closed Connection!!!
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,700| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,698| Exiting method getPatientIdentifierTypeByName. execution time: 3 ms
WARN - PatientSyncWorker.run(98) |2022-03-29 21:22:46,700| iSantePlus ID is supposed to map to Patient ID but getIdentifierTypeByName returned null
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,700| Identity domain iSantePlus ID has no local equivalent
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,698| Exiting method getPatient. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,701| Exiting method notifyPrivilegeListeners. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,701| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Patient ID, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,701| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,700| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
ERROR - PatientSyncWorker.run(128) |2022-03-29 21:22:46,700| org.hibernate.exception.GenericJDBCException: could not prepare statement
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:46,703| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:46,703| Participating in existing session, so not releasing session through synchronization manager
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:46,699| Registering session with synchronization manager (112287739)
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,703| Exiting method notifyPrivilegeListeners. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,704| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Patient ID, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,703| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,705| Exiting method getPatientIdentifierTypeByName. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,701| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,706| Exiting method getPatientIdentifierTypeByName. execution time: 2 ms
WARN - PatientSyncWorker.run(98) |2022-03-29 21:22:46,707| iSantePlus ID is supposed to map to Patient ID but getIdentifierTypeByName returned null
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,707| Identity domain iSantePlus ID has no local equivalent
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,707| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
WARN - PatientSyncWorker.run(98) |2022-03-29 21:22:46,706| iSantePlus ID is supposed to map to Patient ID but getIdentifierTypeByName returned null
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,708| Identity domain iSantePlus ID has no local equivalent
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,708| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,705| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code ST, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,704| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,709| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,710| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code ST, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,709| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,710| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code ST, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,708| Exiting method notifyPrivilegeListeners. execution time: 7 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,711| In method PatientService.getPatient. Arguments: Integer=18, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,712| Exiting method getGlobalProperty. execution time: 8 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,713| Exiting method getPatientIdentifierTypeByName. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,713| Exiting method getPatientIdentifierTypeByName. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,713| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,714| Exiting method getPatientIdentifierTypeByName. execution time: 9 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,719| Exiting method getGlobalProperty. execution time: 6 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,720| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.nhid, 
DEBUG - LoggingAdvice.invoke(135) |2022-03-29 21:22:46,721| An error occurred while executing this method.
Current user: admin
Error message: null
java.util.ConcurrentModificationException
        at java.util.HashMap$HashIterator.nextNode(HashMap.java:1445)
        at java.util.HashMap$EntryIterator.next(HashMap.java:1479)
        at java.util.HashMap$EntryIterator.next(HashMap.java:1477)
        at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.cleanup(JdbcCoordinatorImpl.java:507)
        at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.releaseResources(JdbcCoordinatorImpl.java:493)
        at org.hibernate.internal.SessionImpl.disconnect(SessionImpl.java:469)
        at org.springframework.orm.hibernate4.HibernateTransactionManager.disconnectOnCompletion(HibernateTransactionManager.java:697)
        at org.springframework.orm.hibernate4.HibernateTransactionManager.doCleanupAfterCompletion(HibernateTransactionManager.java:681)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:1012)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:807)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:515)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)
        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.$Proxy170.getPatient(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor699.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.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52)
        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.$Proxy171.getPatient(Unknown Source)
        at org.openmrs.module.emrapi.utils.GeneralUtils.getLastViewedPatients(GeneralUtils.java:264)
        at org.openmrs.module.coreapps.fragment.controller.patientsearch.PatientSearchWidgetFragmentController.controller(PatientSearchWidgetFragmentController.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.openmrs.ui.framework.UiFrameworkUtil.invokeMethodWithArguments(UiFrameworkUtil.java:112)
        at org.openmrs.ui.framework.UiFrameworkUtil.executeControllerMethod(UiFrameworkUtil.java:71)
        at org.openmrs.ui.framework.fragment.FragmentFactory.handleRequestWithController(FragmentFactory.java:241)
        at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:160)
        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$14.call(Unknown Source)
        at SimpleTemplateScript10.run(SimpleTemplateScript10.groovy:32)
        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)
        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.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        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.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.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:219)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
        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:1137)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2512)
        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)
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,722| Exiting method getPatient. execution time: 11 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,721| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,722| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.autoXref, 
ERROR - PageController.handlePath(155) |2022-03-29 21:22:46,722| Error rendering page view for findpatient/findPatient. Model properties:
sessionContext 
featureToggles 
patient 
afterSelectedUrl 
heading 
label 
showLastViewedPatients 
registrationAppLink 
breadcrumbs 
ui 
context 
contextPath 
session 
param 
out
org.openmrs.ui.framework.ViewException: Error rendering page view for findpatient/findPatient. Model properties:
sessionContext 
featureToggles 
patient 
afterSelectedUrl 
heading 
label 
showLastViewedPatients 
registrationAppLink 
breadcrumbs 
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.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        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.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.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:219)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
        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:1137)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2512)
        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)
Caused by: java.util.ConcurrentModificationException
        at java.util.HashMap$HashIterator.nextNode(HashMap.java:1445)
        at java.util.HashMap$EntryIterator.next(HashMap.java:1479)
        at java.util.HashMap$EntryIterator.next(HashMap.java:1477)
        at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.cleanup(JdbcCoordinatorImpl.java:507)
        at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.releaseResources(JdbcCoordinatorImpl.java:493)
        at org.hibernate.internal.SessionImpl.disconnect(SessionImpl.java:469)
        at org.springframework.orm.hibernate4.HibernateTransactionManager.disconnectOnCompletion(HibernateTransactionManager.java:697)
        at org.springframework.orm.hibernate4.HibernateTransactionManager.doCleanupAfterCompletion(HibernateTransactionManager.java:681)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:1012)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:807)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:515)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)
        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.$Proxy170.getPatient(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor699.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.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52)
        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.$Proxy171.getPatient(Unknown Source)
        at org.openmrs.module.emrapi.utils.GeneralUtils.getLastViewedPatients(GeneralUtils.java:264)
        at org.openmrs.module.coreapps.fragment.controller.patientsearch.PatientSearchWidgetFragmentController.controller(PatientSearchWidgetFragmentController.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.openmrs.ui.framework.UiFrameworkUtil.invokeMethodWithArguments(UiFrameworkUtil.java:112)
        at org.openmrs.ui.framework.UiFrameworkUtil.executeControllerMethod(UiFrameworkUtil.java:71)
        at org.openmrs.ui.framework.fragment.FragmentFactory.handleRequestWithController(FragmentFactory.java:241)
        at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:160)
        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$14.call(Unknown Source)
        at SimpleTemplateScript10.run(SimpleTemplateScript10.groovy:32)
        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)
        ... 69 more
WARN - PatientSyncWorker.run(122) |2022-03-29 21:22:46,725| Patient already has local identifier in domain Code ST
WARN - PatientSyncWorker.run(122) |2022-03-29 21:22:46,724| Patient already has local identifier in domain Code ST
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,726| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,724| In method MpiClientService.resolvePatientIdentifier. Arguments: Patient=Patient#14, String=Code ST, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,727| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.endpoint.format, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,724| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,732| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,731| Exiting method getGlobalProperty. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,726| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,732| Exiting method notifyPrivilegeListeners. execution time: 6 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,733| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code National, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,732| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.correlation, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,734| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,734| Exiting method notifyPrivilegeListeners. execution time: 8 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,738| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code National, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,734| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,738| Exiting method getPatientIdentifierTypeByName. execution time: 5 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,738| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Patient ID, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,738| In method AdministrationService.getGlobalProperty. Arguments: String=default_theme, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,740| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,738| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.correlation, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,742| Exiting method getGlobalProperty. execution time: 4 ms
WARN - PatientSyncWorker.run(122) |2022-03-29 21:22:46,739| Patient already has local identifier in domain Code National
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,742| Identity domain ECID has no local equivalent
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,742| Identity domain iSante ID has no local equivalent
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,742| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.correlation, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,742| Exiting method getPatientIdentifierTypeByName. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,743| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,747| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.correlation, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,742| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,742| Exiting method getPatientIdentifierTypeByName. execution time: 4 ms
WARN - PatientSyncWorker.run(98) |2022-03-29 21:22:46,748| iSantePlus ID is supposed to map to Patient ID but getIdentifierTypeByName returned null
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,747| Exiting method getGlobalProperty. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,748| In method AdministrationService.getGlobalProperty. Arguments: String=mpi-client.pid.correlation, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,748| Exiting method getGlobalProperty. execution time: 0 ms
WARN - FhirMpiClientServiceImpl.resolvePatientIdentifier(400) |2022-03-29 21:22:46,749| Patient 14 has no good cross reference identities to use
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,749| Exiting method resolvePatientIdentifier. execution time: 25 ms
WARN - PatientSyncWorker.run(122) |2022-03-29 21:22:46,746| Patient already has local identifier in domain Code National
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,749| Identity domain ECID has no local equivalent
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,749| Identity domain iSante ID has no local equivalent
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,750| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,750| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,749| Exiting method notifyPrivilegeListeners. execution time: 7 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,751| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code PC, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,751| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,751| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code PC, 
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,748| Identity domain iSantePlus ID has no local equivalent
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,752| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,753| Exiting method notifyPrivilegeListeners. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,754| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code National, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,753| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,754| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code ST, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,754| Exiting method getPatientIdentifierTypeByName. execution time: 3 ms
WARN - PatientSyncWorker.run(122) |2022-03-29 21:22:46,755| Patient already has local identifier in domain Code PC
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:46,755| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:46,756| Participating in existing session, so not releasing session through synchronization manager
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,754| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=View Navigation Menu, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,757| Exiting method getPatientIdentifierTypeByName. execution time: 4 ms
WARN - PatientSyncWorker.run(122) |2022-03-29 21:22:46,758| Patient already has local identifier in domain Code National
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,758| Identity domain ECID has no local equivalent
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,755| Exiting method getPatientIdentifierTypeByName. execution time: 4 ms
WARN - PatientSyncWorker.run(122) |2022-03-29 21:22:46,759| Patient already has local identifier in domain Code PC
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:46,759| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:46,759| Participating in existing session, so not releasing session through synchronization manager
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,759| Identity domain iSante ID has no local equivalent
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,758| Exiting method getPatientIdentifierTypeByName. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,758| Exiting method notifyPrivilegeListeners. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,760| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,761| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=View Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,761| Exiting method notifyPrivilegeListeners. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,761| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Add Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,762| Exiting method notifyPrivilegeListeners. execution time: 1 ms
WARN - PatientSyncWorker.run(122) |2022-03-29 21:22:46,761| Patient already has local identifier in domain Code ST
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,762| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,762| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Add Patients, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,762| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,763| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code PC, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,763| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,764| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=View Concepts, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,765| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,765| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=View Patient Cohorts, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,766| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,766| Exiting method notifyPrivilegeListeners. execution time: 4 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,767| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code National, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,767| Exiting method getPatientIdentifierTypeByName. execution time: 4 ms
WARN - PatientSyncWorker.run(122) |2022-03-29 21:22:46,768| Patient already has local identifier in domain Code PC
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:46,768| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:46,768| Participating in existing session, so not releasing session through synchronization manager
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,769| Exiting method getPatientIdentifierTypeByName. execution time: 2 ms
WARN - PatientSyncWorker.run(122) |2022-03-29 21:22:46,769| Patient already has local identifier in domain Code National
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,769| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=View Reports, boolean=true, 
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,770| Identity domain ECID has no local equivalent
WARN - PatientSyncWorker.run(120) |2022-03-29 21:22:46,770| Identity domain iSante ID has no local equivalent
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,770| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,770| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Get Identifier Types, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,772| Exiting method notifyPrivilegeListeners. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,773| In method PatientService.getPatientIdentifierTypeByName. Arguments: String=Code PC, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,777| Exiting method getPatientIdentifierTypeByName. execution time: 4 ms
WARN - PatientSyncWorker.run(122) |2022-03-29 21:22:46,777| Patient already has local identifier in domain Code PC
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:46,777| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:46,777| Participating in existing session, so not releasing session through synchronization manager
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,777| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=View Appointments, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,778| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,779| In method MessageSourceService.getMessage. Arguments: String=appointmentscheduling.header.link, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,779| In method MessageSource.getMessage. Arguments: String=appointmentscheduling.header.link, Object[]=null, Locale=en_GB, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,780| Exiting method getMessage. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,780| Exiting method getMessage. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,786| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=View Administration Functions, boolean=true, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,787| Exiting method notifyPrivilegeListeners. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,787| In method AlertService.getAlertsByUser. Arguments: User=null, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,788| In method AlertService.getAlerts. Arguments: User=admin, boolean=false, boolean=false, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,790| Exiting method getAlerts. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,790| Exiting method getAlertsByUser. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,791| In method AlertService.getAlertsByUser. Arguments: User=null, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,791| In method AlertService.getAlerts. Arguments: User=admin, boolean=false, boolean=false, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,793| Exiting method getAlerts. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,793| Exiting method getAlertsByUser. execution time: 2 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:46,795| In method AdministrationService.getPresentationLocales. Arguments: 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:46,795| Exiting method getPresentationLocales. execution time: 0 ms
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:47,000| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:47,000| Registering session with synchronization manager (112287739)
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:47,000| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:47,001| Registering session with synchronization manager (112287739)
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:47,000| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(263) |2022-03-29 21:22:47,001| Participating in existing session (112287739)
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,001| In method HL7Service.getNextHL7InQueue. Arguments: 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,003| Exiting method getNextHL7InQueue. execution time: 2 ms
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:47,003| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:47,004| Participating in existing session, so not releasing session through synchronization manager
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,004| In method AdministrationService.validate. Arguments: Object=[TaskDefinition  id=4 name=Process HL7 Task class=org.openmrs.scheduler.tasks.ProcessHL7InQueueTask startTime=2016-08-24 09:38:07.0 repeatInterval=5 secondsUntilNext=4], Errors=org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 0 errors, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,004| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=name, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,005| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,005| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=taskClass, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,005| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,005| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=name, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,005| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,005| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=taskClass, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,006| Exiting method getMaximumPropertyLength. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,007| Exiting method validate. execution time: 3 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,008| In method AdministrationService.validate. Arguments: Object=[TaskDefinition  id=5 name=OpenMRS event publisher task class=org.openmrs.module.atomfeed.scheduler.tasks.EventPublisherTask startTime=2021-09-23 09:59:19.0 repeatInterval=2 secondsUntilNext=1], Errors=org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 0 errors, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,009| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=name, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,009| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,009| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=taskClass, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,010| Exiting method getMaximumPropertyLength. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,010| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=startTimePattern, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,010| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,010| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=name, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,010| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,010| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=taskClass, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,010| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,011| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=startTimePattern, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,011| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - AuditableInterceptor.setCreatorAndDateCreatedIfNull(108) |2022-03-29 21:22:47,011| Setting creator and dateCreated on [TaskDefinition  id=4 name=Process HL7 Task class=org.openmrs.scheduler.tasks.ProcessHL7InQueueTask startTime=2016-08-24 09:38:07.0 repeatInterval=5 secondsUntilNext=4]
DEBUG - AuditableInterceptor.onFlushDirty(82) |2022-03-29 21:22:47,012| Setting changed by fields on class org.openmrs.scheduler.TaskDefinition
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,012| Exiting method validate. execution time: 4 ms
DEBUG - AuditableInterceptor.setCreatorAndDateCreatedIfNull(108) |2022-03-29 21:22:47,015| Setting creator and dateCreated on [TaskDefinition  id=5 name=OpenMRS event publisher task class=org.openmrs.module.atomfeed.scheduler.tasks.EventPublisherTask startTime=2021-09-23 09:59:19.0 repeatInterval=2 secondsUntilNext=1]
DEBUG - AuditableInterceptor.onFlushDirty(82) |2022-03-29 21:22:47,016| Setting changed by fields on class org.openmrs.scheduler.TaskDefinition
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:47,018| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:47,019| Participating in existing session, so not releasing session through synchronization manager
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:47,022| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:47,023| Participating in existing session, so not releasing session through synchronization manager
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,112| In method AdministrationService.getGlobalProperty. Arguments: String=owa.appBaseUrl, String=/owa, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:47,112| In method AdministrationService.getGlobalProperty. Arguments: String=owa.appBaseUrl, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,113| Exiting method getGlobalProperty. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:47,114| Exiting method getGlobalProperty. execution time: 2 ms
DEBUG - HibernateContextDAO.openSession(260) |2022-03-29 21:22:49,000| HibernateContext: Opening Hibernate Session
DEBUG - HibernateContextDAO.openSession(268) |2022-03-29 21:22:49,001| Registering session with synchronization manager (112287739)
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:49,010| In method AdministrationService.validate. Arguments: Object=[TaskDefinition  id=5 name=OpenMRS event publisher task class=org.openmrs.module.atomfeed.scheduler.tasks.EventPublisherTask startTime=2021-09-23 09:59:19.0 repeatInterval=2 secondsUntilNext=1], Errors=org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 0 errors, 
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:49,010| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=name, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:49,010| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:49,010| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=taskClass, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:49,011| Exiting method getMaximumPropertyLength. execution time: 1 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:49,011| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=startTimePattern, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:49,011| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:49,011| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=name, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:49,011| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:49,011| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=taskClass, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:49,011| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(113) |2022-03-29 21:22:49,012| In method AdministrationService.getMaximumPropertyLength. Arguments: Class=class org.openmrs.scheduler.TaskDefinition, String=startTimePattern, 
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:49,012| Exiting method getMaximumPropertyLength. execution time: 0 ms
DEBUG - LoggingAdvice.invoke(153) |2022-03-29 21:22:49,013| Exiting method validate. execution time: 4 ms
DEBUG - AuditableInterceptor.setCreatorAndDateCreatedIfNull(108) |2022-03-29 21:22:49,015| Setting creator and dateCreated on [TaskDefinition  id=5 name=OpenMRS event publisher task class=org.openmrs.module.atomfeed.scheduler.tasks.EventPublisherTask startTime=2021-09-23 09:59:19.0 repeatInterval=2 secondsUntilNext=1]
DEBUG - AuditableInterceptor.onFlushDirty(82) |2022-03-29 21:22:49,016| Setting changed by fields on class org.openmrs.scheduler.TaskDefinition
DEBUG - HibernateContextDAO.closeSession(280) |2022-03-29 21:22:49,022| HibernateContext: closing Hibernate Session
DEBUG - HibernateContextDAO.closeSession(297) |2022-03-29 21:22:49,022| Participating in existing session, so not releasing session through synchronization manager

@mozzy11
Copy link

mozzy11 commented Mar 30, 2022

Locally i get

UI Framework Error Root Error java.lang.NullPointerException at org.hibernate.event.internal.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:155) at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:91) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:55) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258) at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425) at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101) at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177) at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:584) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:757) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726) at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:515) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291) 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.$Proxy253.getBiometricEngine(Unknown Source) at sun.reflect.GeneratedMethodAccessor709.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.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.$Proxy254.getBiometricEngine(Unknown Source) at org.openmrs.module.registrationapp.fragment.controller.search.M2SysSearchFragmentController.(M2SysSearchFragmentController.java:60) at sun.reflect.GeneratedConstructorAccessor350.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at org.openmrs.ui.framework.fragment.ConventionBasedClasspathFragmentControllerProvider.getClassIfExistsInProductionMode(ConventionBasedClasspathFragmentControllerProvider.java:31) at org.openmrs.ui.framework.fragment.ConventionBasedClasspathFragmentControllerProvider.getController(ConventionBasedClasspathFragmentControllerProvider.java:21) at org.openmrs.ui.framework.fragment.FragmentFactory.getController(FragmentFactory.java:327) at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:154) 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$14.call(Unknown Source) at SimpleTemplateScript10$_run_closure3.doCall(SimpleTemplateScript10.groovy:114) at sun.reflect.GeneratedMethodAccessor720.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 SimpleTemplateScript10.run(SimpleTemplateScript10.groovy:106) 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) 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$14.call(Unknown Source) at SimpleTemplateScript9.run(SimpleTemplateScript9.groovy:32) 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) 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.GeneratedMethodAccessor694.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:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025) 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:1137) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2575) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2564) 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) Full Error org.openmrs.ui.framework.ViewException: Error rendering page view for findpatient/findPatient. Model properties: sessionContext featureToggles patient afterSelectedUrl heading label showLastViewedPatients registrationAppLink breadcrumbs 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.GeneratedMethodAccessor694.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:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025) 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:1137) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2575) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2564) 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) Caused by: org.openmrs.ui.framework.FragmentException: Error evaluating view: patientsearch/patientSearchWidget at org.openmrs.ui.framework.fragment.GroovyFragmentView.render(GroovyFragmentView.java:78) 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$14.call(Unknown Source) at SimpleTemplateScript9.run(SimpleTemplateScript9.groovy:32) 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: java.lang.RuntimeException: java.lang.NullPointerException at org.openmrs.ui.framework.fragment.ConventionBasedClasspathFragmentControllerProvider.getClassIfExistsInProductionMode(ConventionBasedClasspathFragmentControllerProvider.java:37) at org.openmrs.ui.framework.fragment.ConventionBasedClasspathFragmentControllerProvider.getController(ConventionBasedClasspathFragmentControllerProvider.java:21) at org.openmrs.ui.framework.fragment.FragmentFactory.getController(FragmentFactory.java:327) at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:154) 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$14.call(Unknown Source) at SimpleTemplateScript10$_run_closure3.doCall(SimpleTemplateScript10.groovy:114) at sun.reflect.GeneratedMethodAccessor720.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 SimpleTemplateScript10.run(SimpleTemplateScript10.groovy:106) 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 Caused by: java.lang.NullPointerException at org.hibernate.event.internal.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:155) at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:91) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:55) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258) at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425) at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101) at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177) at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:584) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:757) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726) at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:515) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291) 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.$Proxy253.getBiometricEngine(Unknown Source) at sun.reflect.GeneratedMethodAccessor709.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.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.$Proxy254.getBiometricEngine(Unknown Source) at org.openmrs.module.registrationapp.fragment.controller.search.M2SysSearchFragmentController.(M2SysSearchFragmentController.java:60) at sun.reflect.GeneratedConstructorAccessor350.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at org.openmrs.ui.framework.fragment.ConventionBasedClasspathFragmentControllerProvider.getClassIfExistsInProductionMode(ConventionBasedClasspathFragmentControllerProvider.java:31) ... 103 more

@mozzy11
Copy link

mozzy11 commented Mar 30, 2022

And now the demo server Throws
UI Framework Error Root Error java.lang.InternalError: Marking a ResultSet inactive that we did not know was opened! at com.mchange.v2.c3p0.impl.NewPooledConnection.markInactiveResultSetForStatement(NewPooledConnection.java:340) at com.mchange.v2.c3p0.impl.NewProxyResultSet.close(NewProxyResultSet.java:2845) at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.close(JdbcCoordinatorImpl.java:583) at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.closeAll(JdbcCoordinatorImpl.java:518) at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.cleanup(JdbcCoordinatorImpl.java:508) at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.releaseResources(JdbcCoordinatorImpl.java:493) at org.hibernate.internal.SessionImpl.disconnect(SessionImpl.java:469) at org.springframework.orm.hibernate4.HibernateTransactionManager.disconnectOnCompletion(HibernateTransactionManager.java:697) at org.springframework.orm.hibernate4.HibernateTransactionManager.doCleanupAfterCompletion(HibernateTransactionManager.java:681) at org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:1012) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:807) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726) at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:515) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291) 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.$Proxy158.notifyPrivilegeListeners(Unknown Source) at sun.reflect.GeneratedMethodAccessor584.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.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.$Proxy159.notifyPrivilegeListeners(Unknown Source) at org.openmrs.api.context.UserContext.hasPrivilege(UserContext.java:312) at org.openmrs.api.context.Context.hasPrivilege(Context.java:649) at org.openmrs.aop.AuthorizationAdvice.before(AuthorizationAdvice.java:78) 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.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy175.getPatient(Unknown Source) at org.openmrs.module.emrapi.utils.GeneralUtils.getLastViewedPatients(GeneralUtils.java:264) at org.openmrs.module.coreapps.fragment.controller.patientsearch.PatientSearchWidgetFragmentController.controller(PatientSearchWidgetFragmentController.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.openmrs.ui.framework.UiFrameworkUtil.invokeMethodWithArguments(UiFrameworkUtil.java:112) at org.openmrs.ui.framework.UiFrameworkUtil.executeControllerMethod(UiFrameworkUtil.java:71) at org.openmrs.ui.framework.fragment.FragmentFactory.handleRequestWithController(FragmentFactory.java:241) at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:160) 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$14.call(Unknown Source) at SimpleTemplateScript10.run(SimpleTemplateScript10.groovy:32) 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) 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.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 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:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025) 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:1137) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2575) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2564) 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) Full Error org.openmrs.ui.framework.ViewException: Error rendering page view for findpatient/findPatient. Model properties: sessionContext featureToggles patient afterSelectedUrl heading label showLastViewedPatients registrationAppLink breadcrumbs 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.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 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:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025) 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:1137) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2575) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2564) 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) Caused by: org.openmrs.ui.framework.UiFrameworkException: Exception in controller method at org.openmrs.ui.framework.UiFrameworkUtil.invokeMethodWithArguments(UiFrameworkUtil.java:126) at org.openmrs.ui.framework.UiFrameworkUtil.executeControllerMethod(UiFrameworkUtil.java:71) at org.openmrs.ui.framework.fragment.FragmentFactory.handleRequestWithController(FragmentFactory.java:241) at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:160) 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$14.call(Unknown Source) at SimpleTemplateScript10.run(SimpleTemplateScript10.groovy:32) 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) ... 67 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.openmrs.ui.framework.UiFrameworkUtil.invokeMethodWithArguments(UiFrameworkUtil.java:112) ... 78 more Caused by: java.lang.InternalError: Marking a ResultSet inactive that we did not know was opened! at com.mchange.v2.c3p0.impl.NewPooledConnection.markInactiveResultSetForStatement(NewPooledConnection.java:340) at com.mchange.v2.c3p0.impl.NewProxyResultSet.close(NewProxyResultSet.java:2845) at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.close(JdbcCoordinatorImpl.java:583) at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.closeAll(JdbcCoordinatorImpl.java:518) at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.cleanup(JdbcCoordinatorImpl.java:508) at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.releaseResources(JdbcCoordinatorImpl.java:493) at org.hibernate.internal.SessionImpl.disconnect(SessionImpl.java:469) at org.springframework.orm.hibernate4.HibernateTransactionManager.disconnectOnCompletion(HibernateTransactionManager.java:697) at org.springframework.orm.hibernate4.HibernateTransactionManager.doCleanupAfterCompletion(HibernateTransactionManager.java:681) at org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:1012) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:807) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726) at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:515) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291) 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.$Proxy158.notifyPrivilegeListeners(Unknown Source) at sun.reflect.GeneratedMethodAccessor584.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.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.$Proxy159.notifyPrivilegeListeners(Unknown Source) at org.openmrs.api.context.UserContext.hasPrivilege(UserContext.java:312) at org.openmrs.api.context.Context.hasPrivilege(Context.java:649) at org.openmrs.aop.AuthorizationAdvice.before(AuthorizationAdvice.java:78) 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.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy175.getPatient(Unknown Source) at org.openmrs.module.emrapi.utils.GeneralUtils.getLastViewedPatients(GeneralUtils.java:264) at org.openmrs.module.coreapps.fragment.controller.patientsearch.PatientSearchWidgetFragmentController.controller(PatientSearchWidgetFragmentController.java:65) ... 83 more

@mozzy11
Copy link

mozzy11 commented Apr 1, 2022

Pr for the Fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants