Home > Back-end >  Mailbox send HTML error Java. Lang. NoSuchMethodError: javax.mail. Mail. Internet, MimeBodyPart. Set
Mailbox send HTML error Java. Lang. NoSuchMethodError: javax.mail. Mail. Internet, MimeBodyPart. Set

Time:10-04

 
Email. SetHtmlMsg (content); An error
The content is FTL read
The following

 & lt; ! DOCTYPE html> 


<meta charset="utf-8" & gt;
<meta HTTP - equiv="X - UA - Compatible" content="IE=edge" & gt;
<meta name="viewport" content="width=device - width, initial - scale=1, maximum - scale=1, the user - scalable=no" & gt;
<meta name="format - detection" content="telephone=no" & gt;
<meta name="author" content="Team" yi lian da electronic technology company & gt;
<meta name="copyright" content="yi lian da mall" & gt;

<body & gt;

Respect of customer & lt;/p>

Your site email Settings is normal, thank you for your attention and support to yi lian da mall!


The ${setting. SiteName} & lt;/p>


An error as below
 27 Mar - 2020 16:13:09. 571 information [RMI TCP Connection (2) - 127.0.0.1] org. Apache. Catalina. Core. The ApplicationContext. Log No Spring WebApplicationInitializer types detected on the classpath 
27 Mar - 2020 16:13:09. 595 information [RMI TCP Connection (2) - 127.0.0.1] org. Apache. Catalina. Core. The ApplicationContext. Log Set web app root system property: 'webapp. Root=[D: \ yi_lian_da_shop/dev/yld20191204_yld_ch \ out \ artifacts \ yld20191204_yld_ch_war_exploded \]
27 - Mar - 2020 16:13:09. 611 information [RMI TCP Connection (2) - 127.0.0.1] org. Apache. Catalina. Core. The ApplicationContext. Log the Initializing Spring root WebApplicationContext
27 - Mar - 2020 16:13:35. 498 information [RMI TCP Connection (2) - 127.0.0.1] org. Apache. Catalina. Core. The ApplicationContext. Log the Initializing Spring FrameworkServlet 'for springmvc'
27 Mar - 2020 16:15:45. 932 serious [HTTP - nio - 80 - exec] org. Apache. Catalina. Core. StandardWrapperValve. Invoke the Servlet. The service () for the Servlet [for springmvc] in context with the path [/shopping] threw the exception [Handler dispatch failed; nested exception is Java. Lang. NoSuchMethodError: javax.mail. Mail, Internet, MimeBodyPart. The setText (Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;) V] with root cause
Java. Lang. NoSuchMethodError: javax.mail. Mail. Internet, MimeBodyPart. SetText (Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;) V
At org.apache.com mons. Mail. HtmlEmail. Build (HtmlEmail. Java: 585)
At org.apache.com mons. Mail. HtmlEmail. BuildMimeMessage (HtmlEmail. Java: 509)
At org.apache.com mons. Mail. Email. Send (Email. Java: 1495)
At net. Shopxx. Service. Impl. MailServiceImpl. Send (132) MailServiceImpl. Java:
At net. Shopxx. Service. Impl. MailServiceImpl. Send (151) MailServiceImpl. Java:
At net. Shopxx. Service. Impl. MailServiceImpl. Send (169) MailServiceImpl. Java:
At net. Shopxx. Service. Impl. MailServiceImpl. SendTestSmtpMail (MailServiceImpl. Java: 238)
At net. Shopxx. Controller. Admin. SettingController. TestSmtp (SettingController. Java: 83)
At sun. Reflect. GeneratedMethodAccessor1329. Invoke (Unknown Source)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (DelegatingMethodAccessorImpl. Java: 45005)
The at Java. Lang. Reflect. Method. Invoke (498) Method. The Java:
The at org. Springframework. Web. Method. Support. InvocableHandlerMethod. DoInvoke (InvocableHandlerMethod. Java: 205)
The at org. Springframework. Web. Method. Support. InvocableHandlerMethod. InvokeForRequest (InvocableHandlerMethod. Java: 133)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. ServletInvocableHandlerMethod. InvokeAndHandle (ServletInvocableHandlerMethod. Java: 97)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. InvokeHandlerMethod (RequestMappingHandlerAdapter. Java: 827)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. HandleInternal (RequestMappingHandlerAdapter. Java: 738)
The at org. Springframework. Web. Servlet. MVC. Method. AbstractHandlerMethodAdapter. Handle (AbstractHandlerMethodAdapter. Java: 85)
The at org. Springframework. Web. Servlet. DispatcherServlet. DoDispatch (DispatcherServlet. Java: 967)
The at org. Springframework. Web. Servlet. DispatcherServlet. DoService (DispatcherServlet. Java: 901)
The at org. Springframework. Web. Servlet. FrameworkServlet. The processRequest (FrameworkServlet. Java: 970)
The at org. Springframework. Web. Servlet. FrameworkServlet. DoPost (FrameworkServlet. Java: 872)
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 660)
At org. Springframework. Web. Servlet. FrameworkServlet. Service (846) FrameworkServlet. Java:
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 741)
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 231)
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
At org, apache tomcat, websocket server WsFilter. DoFilter (WsFilter. Java: 52)
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193)
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
The at org, apache shiro. Web. Servlet. ProxiedFilterChain. DoFilter (ProxiedFilterChain. Java: 61)
The at org, apache shiro. Web. Servlet. AdviceFilter. ExecuteChain (AdviceFilter. Java: 108)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related