Created
June 24, 2021 15:24
-
-
Save angshu/01ed2bb2edca1feaab4377e933c2da68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24-06-2021 20:51:10 [ERROR] VelocityMessagePreparator - Failed to create velocity engine Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration. | |
org.apache.velocity.exception.VelocityException: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration. | |
at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:206) | |
at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:255) | |
at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:795) | |
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:250) | |
at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:107) | |
at org.openmrs.notification.mail.velocity.VelocityMessagePreparator.<init>(VelocityMessagePreparator.java:43) | |
at org.openmrs.api.context.Context.getMessagePreparator(Context.java:576) | |
at org.openmrs.api.context.Context.getMessageService(Context.java:513) | |
at org.openmrs.module.appointments.notification.impl.DefaultMessageSender.send(DefaultMessageSender.java:22) | |
at org.openmrs.module.appointments.notification.impl.DefaultTCAppointmentPatientEmailNotifier.sendNotification(DefaultTCAppointmentPatientEmailNotifier.java:62) | |
at org.openmrs.module.appointments.service.impl.TeleconsultationAppointmentSavedEventListener.onApplicationEvent(TeleconsultationAppointmentSavedEventListener.java:33) | |
at org.openmrs.module.appointments.service.impl.TeleconsultationAppointmentSavedEventListener.onApplicationEvent(TeleconsultationAppointmentSavedEventListener.java:14) | |
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151) | |
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128) | |
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331) | |
at org.openmrs.module.appointments.service.impl.AppointmentsServiceImpl.notifyListeners(AppointmentsServiceImpl.java:144) | |
at org.openmrs.module.appointments.service.impl.AppointmentsServiceImpl.validateAndSave(AppointmentsServiceImpl.java:131) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) | |
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) | |
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) | |
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) | |
at com.sun.proxy.$Proxy214.validateAndSave(Unknown Source) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) | |
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) | |
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) | |
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52) | |
at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303) | |
at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) | |
at com.sun.proxy.$Proxy215.validateAndSave(Unknown Source) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
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.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) | |
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) | |
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) | |
at com.sun.proxy.$Proxy215.validateAndSave(Unknown Source) | |
at org.openmrs.module.appointments.web.controller.AppointmentController.saveAppointment(AppointmentController.java:73) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
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.doPost(FrameworkServlet.java:868) | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) | |
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842) | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72) | |
at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:64) | |
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70) | |
at org.openmrs.module.webservices.rest.web.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:105) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70) | |
at org.openmrs.module.webservices.rest.web.filter.ContentTypeFilter.doFilter(ContentTypeFilter.java:64) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70) | |
at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:82) | |
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70) | |
at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70) | |
at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
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:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
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:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
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:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) | |
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) | |
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) | |
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) | |
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) | |
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) | |
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) | |
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104) | |
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) | |
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1519) | |
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1475) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) | |
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) | |
at java.lang.Thread.run(Unknown Source) | |
Caused by: java.lang.RuntimeException: Error configuring Log4JLogChute : | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) | |
at java.lang.reflect.Constructor.newInstance(Unknown Source) | |
at org.apache.velocity.util.ExceptionUtils.createWithCause(ExceptionUtils.java:67) | |
at org.apache.velocity.util.ExceptionUtils.createRuntimeException(ExceptionUtils.java:45) | |
at org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:133) | |
at org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85) | |
at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157) | |
... 139 more | |
Caused by: java.io.FileNotFoundException: velocity.log (Permission denied) | |
at java.io.FileOutputStream.open0(Native Method) | |
at java.io.FileOutputStream.open(Unknown Source) | |
at java.io.FileOutputStream.<init>(Unknown Source) | |
at java.io.FileOutputStream.<init>(Unknown Source) | |
at org.apache.log4j.FileAppender.setFile(FileAppender.java:290) | |
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194) | |
at org.apache.log4j.FileAppender.<init>(FileAppender.java:109) | |
at org.apache.log4j.RollingFileAppender.<init>(RollingFileAppender.java:72) | |
at org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:118) | |
... 141 more | |
24-06-2021 20:51:10 [ERROR] Context - Unable to create message service due | |
org.openmrs.notification.MessageException: org.apache.velocity.exception.VelocityException: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration. | |
at org.openmrs.notification.mail.velocity.VelocityMessagePreparator.<init>(VelocityMessagePreparator.java:47) | |
at org.openmrs.api.context.Context.getMessagePreparator(Context.java:576) | |
at org.openmrs.api.context.Context.getMessageService(Context.java:513) | |
at org.openmrs.module.appointments.notification.impl.DefaultMessageSender.send(DefaultMessageSender.java:22) | |
at org.openmrs.module.appointments.notification.impl.DefaultTCAppointmentPatientEmailNotifier.sendNotification(DefaultTCAppointmentPatientEmailNotifier.java:62) | |
at org.openmrs.module.appointments.service.impl.TeleconsultationAppointmentSavedEventListener.onApplicationEvent(TeleconsultationAppointmentSavedEventListener.java:33) | |
at org.openmrs.module.appointments.service.impl.TeleconsultationAppointmentSavedEventListener.onApplicationEvent(TeleconsultationAppointmentSavedEventListener.java:14) | |
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151) | |
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128) | |
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331) | |
at org.openmrs.module.appointments.service.impl.AppointmentsServiceImpl.notifyListeners(AppointmentsServiceImpl.java:144) | |
at org.openmrs.module.appointments.service.impl.AppointmentsServiceImpl.validateAndSave(AppointmentsServiceImpl.java:131) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) | |
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) | |
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) | |
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) | |
at com.sun.proxy.$Proxy214.validateAndSave(Unknown Source) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) | |
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) | |
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) | |
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52) | |
at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303) | |
at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) | |
at com.sun.proxy.$Proxy215.validateAndSave(Unknown Source) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
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.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) | |
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) | |
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) | |
at com.sun.proxy.$Proxy215.validateAndSave(Unknown Source) | |
at org.openmrs.module.appointments.web.controller.AppointmentController.saveAppointment(AppointmentController.java:73) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
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.doPost(FrameworkServlet.java:868) | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) | |
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842) | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72) | |
at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:64) | |
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70) | |
at org.openmrs.module.webservices.rest.web.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:105) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70) | |
at org.openmrs.module.webservices.rest.web.filter.ContentTypeFilter.doFilter(ContentTypeFilter.java:64) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70) | |
at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:82) | |
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70) | |
at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57) | |
at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70) | |
at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
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:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
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:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
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:240) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) | |
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) | |
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) | |
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) | |
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) | |
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) | |
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) | |
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) | |
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104) | |
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) | |
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1519) | |
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1475) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) | |
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) | |
at java.lang.Thread.run(Unknown Source) | |
Caused by: org.apache.velocity.exception.VelocityException: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration. | |
at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:206) | |
at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:255) | |
at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:795) | |
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:250) | |
at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:107) | |
at org.openmrs.notification.mail.velocity.VelocityMessagePreparator.<init>(VelocityMessagePreparator.java:43) | |
... 134 more | |
Caused by: java.lang.RuntimeException: Error configuring Log4JLogChute : | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) | |
at java.lang.reflect.Constructor.newInstance(Unknown Source) | |
at org.apache.velocity.util.ExceptionUtils.createWithCause(ExceptionUtils.java:67) | |
at org.apache.velocity.util.ExceptionUtils.createRuntimeException(ExceptionUtils.java:45) | |
at org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:133) | |
at org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85) | |
at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157) | |
... 139 more | |
Caused by: java.io.FileNotFoundException: velocity.log (Permission denied) | |
at java.io.FileOutputStream.open0(Native Method) | |
at java.io.FileOutputStream.open(Unknown Source) | |
at java.io.FileOutputStream.<init>(Unknown Source) | |
at java.io.FileOutputStream.<init>(Unknown Source) | |
at org.apache.log4j.FileAppender.setFile(FileAppender.java:290) | |
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194) | |
at org.apache.log4j.FileAppender.<init>(FileAppender.java:109) | |
at org.apache.log4j.RollingFileAppender.<init>(RollingFileAppender.java:72) | |
at org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:118) | |
... 141 more | |
24-06-2021 20:51:10 [ERROR] MessageServiceImpl - Message could not be sent due to null | |
java.lang.NullPointerException | |
at org.openmrs.notification.impl.MessageServiceImpl.sendMessage(MessageServiceImpl.java:88) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) | |
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) | |
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) | |
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) | |
at com.sun.proxy.$Proxy233.sendMessage(Unknown Source) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) | |
at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52) | |
at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303) | |
at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52) | |
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) | |
at com.sun.proxy.$Proxy234.sendMessage(Unknown Source) | |
at org.openmrs.module.appointments.notification.impl.DefaultMessageSender.send(DefaultMessageSender.java:22) | |
at org.openmrs.module.appointments.notification.impl.DefaultTCAppointmentPatientEmailNotifier.sendNotification(DefaultTCAppointmentPatientEmailNotifier.java:62) | |
at org.openmrs.module.appointments.service.impl.TeleconsultationAppointmentSavedEventListener.onApplicationEvent(TeleconsultationAppointmentSavedEventListener.java:33) | |
at org.openmrs.module.appointments.service.impl.TeleconsultationAppointmentSavedEventListener.onApplicationEvent(TeleconsultationAppointmentSavedEventListener.java:14) | |
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151) | |
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128) | |
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331) | |
at org.openmrs.module.appointments.service.impl.AppointmentsServiceImpl.notifyListeners(AppointmentsServiceImpl.java:144) | |
at org.openmrs.module.appointments.service.impl.AppointmentsServiceImpl.validateAndSave(AppointmentsServiceImpl.java:131) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment