SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. INFO - LoggingAdvice.invoke(116) |2019-03-22 10:47:10,042| In method MessageService.createMessage. Arguments: String=ryantenas1@gmail.com, String=info@openmrs.org, String=Password Reset, String=Hi RYan97
  2.  You recently requested a password reset for your OpenMRS account. To complete the process, click the link below.
  3.  http://www.google.com
  4.   Please disregard this email if you didn't innitiate the password reset process.
  5.  This link will automatically expire after a period of 10 minutes., String=null, String=null, String=null,
  6. INFO - LoggingAdvice.invoke(156) |2019-03-22 10:47:10,049| Exiting method createMessage
  7. ERROR - MailMessageSender.send(72) |2019-03-22 10:47:10,238| failed to send message
  8. java.lang.ClassCastException: com.sun.mail.handlers.text_plain cannot be cast to javax.activation.DataContentHandler
  9.     at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:588)
  10.     at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:542)
  11.     at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:618)
  12.     at javax.activation.DataHandler.writeTo(DataHandler.java:316)
  13.     at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:261)
  14.     at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1321)
  15.     at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2074)
  16.     at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2042)
  17.     at javax.mail.Transport.send(Transport.java:117)
  18.     at org.openmrs.notification.mail.MailMessageSender.send(MailMessageSender.java:69)
  19.     at org.openmrs.notification.impl.MessageServiceImpl.sendMessage(MessageServiceImpl.java:93)
  20.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  21.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  22.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  23.     at java.lang.reflect.Method.invoke(Method.java:498)
  24.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  25.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  26.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  27.     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  28.     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  29.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  30.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  31.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  32.     at com.sun.proxy.$Proxy161.sendMessage(Unknown Source)
  33.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  34.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  35.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  36.     at java.lang.reflect.Method.invoke(Method.java:498)
  37.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  38.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  39.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  40.     at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  41.     at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  42.     at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  43.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  44.     at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:122)
  45.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  46.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  47.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  48.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  49.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  50.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  51.     at com.sun.proxy.$Proxy162.sendMessage(Unknown Source)
  52.     at org.openmrs.notification.impl.MessageServiceImpl.sendMessage(MessageServiceImpl.java:163)
  53.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  54.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  55.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  56.     at java.lang.reflect.Method.invoke(Method.java:498)
  57.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  58.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  59.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  60.     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  61.     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  62.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  63.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  64.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  65.     at com.sun.proxy.$Proxy161.sendMessage(Unknown Source)
  66.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  67.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  68.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  69.     at java.lang.reflect.Method.invoke(Method.java:498)
  70.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  71.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  72.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  73.     at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  74.     at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  75.     at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  76.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  77.     at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:122)
  78.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  79.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  80.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  81.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  82.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  83.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  84.     at com.sun.proxy.$Proxy162.sendMessage(Unknown Source)
  85.     at org.openmrs.api.impl.UserServiceImpl.setUserActivationKey(UserServiceImpl.java:758)
  86.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  87.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  88.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  89.     at java.lang.reflect.Method.invoke(Method.java:498)
  90.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  91.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  92.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  93.     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  94.     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  95.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  96.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  97.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  98.     at com.sun.proxy.$Proxy135.setUserActivationKey(Unknown Source)
  99.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  100.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  101.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  102.     at java.lang.reflect.Method.invoke(Method.java:498)
  103.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  104.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  105.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  106.     at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  107.     at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  108.     at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  109.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  110.     at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:122)
  111.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  112.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  113.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  114.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  115.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  116.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  117.     at com.sun.proxy.$Proxy136.setUserActivationKey(Unknown Source)
  118.     at org.openmrs.module.webservices.rest.web.v1_0.controller.openmrs2_2.PasswordResetController2_2.requestPasswordReset(PasswordResetController2_2.java:45)
  119.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  120.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  121.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  122.     at java.lang.reflect.Method.invoke(Method.java:498)
  123.     at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
  124.     at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  125.     at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  126.     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  127.     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  128.     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  129.     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
  130.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
  131.     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  132.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  133.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  134.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  135.     at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60)
  136.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  137.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  138.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:73)
  139.     at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:65)
  140.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  141.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  142.     at org.openmrs.module.webservices.rest.web.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:105)
  143.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  144.     at org.openmrs.module.webservices.rest.web.filter.ContentTypeFilter.doFilter(ContentTypeFilter.java:64)
  145.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  146.     at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:82)
  147.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  148.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  149.     at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  150.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  151.     at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:57)
  152.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  153.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  154.     at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:109)
  155.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  156.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  157.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  158.     at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  159.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  160.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  161.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  162.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  163.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  164.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  165.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  166.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  167.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  168.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  169.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  170.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  171.     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  172.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  173.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  174.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  175.     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  176.     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  177.     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
  178.     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
  179.     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  180.     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  181.     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
  182.     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
  183.     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
  184.     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
  185.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  186.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  187.     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  188.     at java.lang.Thread.run(Thread.java:748)
  189. ERROR - MessageServiceImpl.sendMessage(96) |2019-03-22 10:47:10,247| Message could not be sent due to java.lang.ClassCastException: com.sun.mail.handlers.text_plain cannot be cast to javax.activation.DataContentHandler
  190. org.openmrs.notification.MessageException: java.lang.ClassCastException: com.sun.mail.handlers.text_plain cannot be cast to javax.activation.DataContentHandler
  191.     at org.openmrs.notification.mail.MailMessageSender.send(MailMessageSender.java:75)
  192.     at org.openmrs.notification.impl.MessageServiceImpl.sendMessage(MessageServiceImpl.java:93)
  193.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  194.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  195.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  196.     at java.lang.reflect.Method.invoke(Method.java:498)
  197.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  198.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  199.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  200.     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  201.     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  202.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  203.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  204.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  205.     at com.sun.proxy.$Proxy161.sendMessage(Unknown Source)
  206.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  207.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  208.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  209.     at java.lang.reflect.Method.invoke(Method.java:498)
  210.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  211.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  212.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  213.     at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  214.     at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  215.     at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  216.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  217.     at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:122)
  218.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  219.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  220.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  221.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  222.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  223.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  224.     at com.sun.proxy.$Proxy162.sendMessage(Unknown Source)
  225.     at org.openmrs.notification.impl.MessageServiceImpl.sendMessage(MessageServiceImpl.java:163)
  226.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  227.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  228.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  229.     at java.lang.reflect.Method.invoke(Method.java:498)
  230.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  231.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  232.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  233.     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  234.     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  235.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  236.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  237.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  238.     at com.sun.proxy.$Proxy161.sendMessage(Unknown Source)
  239.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  240.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  241.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  242.     at java.lang.reflect.Method.invoke(Method.java:498)
  243.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  244.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  245.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  246.     at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  247.     at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  248.     at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  249.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  250.     at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:122)
  251.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  252.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  253.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  254.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  255.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  256.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  257.     at com.sun.proxy.$Proxy162.sendMessage(Unknown Source)
  258.     at org.openmrs.api.impl.UserServiceImpl.setUserActivationKey(UserServiceImpl.java:758)
  259.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  260.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  261.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  262.     at java.lang.reflect.Method.invoke(Method.java:498)
  263.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  264.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  265.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  266.     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  267.     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  268.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  269.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  270.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  271.     at com.sun.proxy.$Proxy135.setUserActivationKey(Unknown Source)
  272.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  273.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  274.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  275.     at java.lang.reflect.Method.invoke(Method.java:498)
  276.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  277.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  278.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  279.     at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  280.     at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  281.     at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  282.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  283.     at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:122)
  284.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  285.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  286.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  287.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  288.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  289.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  290.     at com.sun.proxy.$Proxy136.setUserActivationKey(Unknown Source)
  291.     at org.openmrs.module.webservices.rest.web.v1_0.controller.openmrs2_2.PasswordResetController2_2.requestPasswordReset(PasswordResetController2_2.java:45)
  292.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  293.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  294.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  295.     at java.lang.reflect.Method.invoke(Method.java:498)
  296.     at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
  297.     at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  298.     at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  299.     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  300.     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  301.     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  302.     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
  303.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
  304.     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  305.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  306.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  307.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  308.     at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60)
  309.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  310.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  311.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:73)
  312.     at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:65)
  313.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  314.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  315.     at org.openmrs.module.webservices.rest.web.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:105)
  316.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  317.     at org.openmrs.module.webservices.rest.web.filter.ContentTypeFilter.doFilter(ContentTypeFilter.java:64)
  318.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  319.     at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:82)
  320.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  321.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  322.     at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  323.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  324.     at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:57)
  325.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  326.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  327.     at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:109)
  328.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  329.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  330.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  331.     at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  332.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  333.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  334.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  335.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  336.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  337.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  338.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  339.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  340.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  341.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  342.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  343.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  344.     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  345.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  346.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  347.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  348.     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  349.     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  350.     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
  351.     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
  352.     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  353.     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  354.     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
  355.     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
  356.     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
  357.     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
  358.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  359.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  360.     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  361.     at java.lang.Thread.run(Thread.java:748)
  362. Caused by: java.lang.ClassCastException: com.sun.mail.handlers.text_plain cannot be cast to javax.activation.DataContentHandler
  363.     at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:588)
  364.     at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:542)
  365.     at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:618)
  366.     at javax.activation.DataHandler.writeTo(DataHandler.java:316)
  367.     at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:261)
  368.     at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1321)
  369.     at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2074)
  370.     at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2042)
  371.     at javax.mail.Transport.send(Transport.java:117)
  372.     at org.openmrs.notification.mail.MailMessageSender.send(MailMessageSender.java:69)
  373.     ... 170 more
  374. ERROR - BaseRestController.handleException(115) |2019-03-22 10:47:10,343| org.openmrs.notification.MessageException: java.lang.ClassCastException: com.sun.mail.handlers.text_plain cannot be cast to javax.activation.DataContentHandler
  375. org.openmrs.notification.MessageException: org.openmrs.notification.MessageException: java.lang.ClassCastException: com.sun.mail.handlers.text_plain cannot be cast to javax.activation.DataContentHandler
  376.     at org.openmrs.notification.impl.MessageServiceImpl.sendMessage(MessageServiceImpl.java:97)
  377.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  378.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  379.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  380.     at java.lang.reflect.Method.invoke(Method.java:498)
  381.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  382.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  383.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  384.     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  385.     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  386.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  387.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  388.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  389.     at com.sun.proxy.$Proxy161.sendMessage(Unknown Source)
  390.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  391.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  392.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  393.     at java.lang.reflect.Method.invoke(Method.java:498)
  394.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  395.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  396.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  397.     at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  398.     at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  399.     at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  400.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  401.     at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:122)
  402.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  403.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  404.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  405.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  406.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  407.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  408.     at com.sun.proxy.$Proxy162.sendMessage(Unknown Source)
  409.     at org.openmrs.notification.impl.MessageServiceImpl.sendMessage(MessageServiceImpl.java:163)
  410.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  411.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  412.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  413.     at java.lang.reflect.Method.invoke(Method.java:498)
  414.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  415.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  416.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  417.     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  418.     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  419.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  420.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  421.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  422.     at com.sun.proxy.$Proxy161.sendMessage(Unknown Source)
  423.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  424.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  425.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  426.     at java.lang.reflect.Method.invoke(Method.java:498)
  427.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  428.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  429.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  430.     at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  431.     at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  432.     at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  433.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  434.     at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:122)
  435.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  436.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  437.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  438.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  439.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  440.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  441.     at com.sun.proxy.$Proxy162.sendMessage(Unknown Source)
  442.     at org.openmrs.api.impl.UserServiceImpl.setUserActivationKey(UserServiceImpl.java:758)
  443.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  444.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  445.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  446.     at java.lang.reflect.Method.invoke(Method.java:498)
  447.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  448.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  449.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  450.     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
  451.     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
  452.     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  453.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  454.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  455.     at com.sun.proxy.$Proxy135.setUserActivationKey(Unknown Source)
  456.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  457.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  458.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  459.     at java.lang.reflect.Method.invoke(Method.java:498)
  460.     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
  461.     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
  462.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
  463.     at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)
  464.     at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:303)
  465.     at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
  466.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  467.     at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:122)
  468.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  469.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  470.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  471.     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
  472.     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  473.     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
  474.     at com.sun.proxy.$Proxy136.setUserActivationKey(Unknown Source)
  475.     at org.openmrs.module.webservices.rest.web.v1_0.controller.openmrs2_2.PasswordResetController2_2.requestPasswordReset(PasswordResetController2_2.java:45)
  476.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  477.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  478.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  479.     at java.lang.reflect.Method.invoke(Method.java:498)
  480.     at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)
  481.     at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  482.     at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  483.     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
  484.     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
  485.     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
  486.     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
  487.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
  488.     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
  489.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  490.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
  491.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  492.     at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60)
  493.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  494.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  495.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:73)
  496.     at org.openmrs.web.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:65)
  497.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  498.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  499.     at org.openmrs.module.webservices.rest.web.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:105)
  500.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  501.     at org.openmrs.module.webservices.rest.web.filter.ContentTypeFilter.doFilter(ContentTypeFilter.java:64)
  502.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  503.     at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:82)
  504.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  505.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  506.     at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57)
  507.     at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:71)
  508.     at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:57)
  509.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  510.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  511.     at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:109)
  512.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  513.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  514.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  515.     at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  516.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  517.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  518.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  519.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  520.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  521.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  522.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  523.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  524.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  525.     at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:107)
  526.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  527.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  528.     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  529.     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  530.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
  531.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
  532.     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
  533.     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
  534.     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
  535.     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
  536.     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
  537.     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
  538.     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
  539.     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
  540.     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
  541.     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
  542.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  543.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  544.     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  545.     at java.lang.Thread.run(Thread.java:748)
  546. Caused by: org.openmrs.notification.MessageException: java.lang.ClassCastException: com.sun.mail.handlers.text_plain cannot be cast to javax.activation.DataContentHandler
  547.     at org.openmrs.notification.mail.MailMessageSender.send(MailMessageSender.java:75)
  548.     at org.openmrs.notification.impl.MessageServiceImpl.sendMessage(MessageServiceImpl.java:93)
  549.     ... 169 more
  550. Caused by: java.lang.ClassCastException: com.sun.mail.handlers.text_plain cannot be cast to javax.activation.DataContentHandler
  551.     at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:588)
  552.     at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:542)
  553.     at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:618)
  554.     at javax.activation.DataHandler.writeTo(DataHandler.java:316)
  555.     at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:261)
  556.     at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1321)
  557.     at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2074)
  558.     at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2042)
  559.     at javax.mail.Transport.send(Transport.java:117)
  560.     at org.openmrs.notification.mail.MailMessageSender.send(MailMessageSender.java:69)
  561.     ... 170 more
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top