Comment on Tutorial - Sending Email using JSP By Vijay



Comment Added by : Adarsh

Comment Added at : 2016-01-04 07:53:53

Comment on Tutorial : Sending Email using JSP By Vijay
type Exception report

message An exception occurred processing JSP page /email.jsp at line 51

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /email.jsp at line 51

48: msg.setRecipients(Message.RecipientType.TO, address);
49: msg.setSubject(subject);
50: msg.setSentDate(new Date());
51: msg.setText(messageText);
52:
53: // Hand the message to the default transport service
54: // for delivery.

Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:575)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause

java.lang.NullPointerException
javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:1412)
javax.mail.internet.MimeBodyPart.setText(MimeBodyPart.java:1060)
javax.mail.internet.MimeMessage.setText(MimeMessage.java:1521)
javax.mail.internet.MimeMessage.setText(MimeMessage.java:1505)
org.apache.jsp.email_jsp._jspService(email_jsp.java:134)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.65 logs

am using netbeans 7.3.1 and tomcat 7.0


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. please send detail informatoin about j2me.. send a
View Tutorial          By: Saranya at 2011-07-06 03:00:21

2. Hi, I have mobile application developed in java w
View Tutorial          By: Meenu at 2008-12-30 02:46:54

3. I have no mounted the sd card, and I have the &quo
View Tutorial          By: Cgamboa at 2012-12-01 06:39:14

4. I used the script above, and it seems to work exce
View Tutorial          By: Michael at 2012-05-15 20:50:49

5. Thank You,
Code is working well.
Is

View Tutorial          By: dinesh at 2012-06-23 04:33:16

6. Artical is good but it is not clearly define that
View Tutorial          By: Rohit Saxena at 2010-09-02 04:00:11

7. hi guys,

i want some

View Tutorial          By: THANGA at 2012-03-19 15:24:38

8. I want to store the Data in Vector or the LinkedLi
View Tutorial          By: Sobia at 2013-01-17 11:24:59

9. Thanks for your tutorial.
View Tutorial          By: pre pais at 2015-01-09 00:14:29

10. aoa i am for the first time learning programing pl
View Tutorial          By: manaal siddiqui at 2011-11-02 09:38:00