当前位置: 代码迷 >> Java Web开发 >> javamail?解决方案
  详细解决方案

javamail?解决方案

热度:820   发布时间:2016-04-17 15:04:38.0
javamail?
在编译代码时出现以下错误,请问那有问题呢?
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root   cause  

java.lang.NullPointerException
javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:1286)
javax.mail.internet.MimeBodyPart.setText(MimeBodyPart.java:1023)
javax.mail.internet.MimeMessage.setText(MimeMessage.java:1467)
javax.mail.internet.MimeMessage.setText(MimeMessage.java:1451)
org.apache.jsp.Testmail_jsp._jspService(Testmail_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note   The   full   stack   trace   of   the   root   cause   is   available   in   the   Apache   Tomcat/5.0.28   logs.


------解决方案--------------------
不知道啊
------解决方案--------------------
这个好像不是编译时候出现的错误吧,应该是你程序执行时候的问题.
检查你的servlet,看看service中的代码.好像是设置message body为空的问题.
------解决方案--------------------

空指针
大概是这个页面用到的哪个类还没有实例化
  相关解决方案