dcsimg
Java Mail Error on submit data.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alok_Verma
Posted On:   Friday, April 26, 2002 01:55 AM

I am trying a servlet to send mail after submitting form data on Tomcat3.2.3 but it gives an error as follows Internal Servlet Error: java.lang.NullPointerException at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:915) at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:539) at javax.mail.internet.MimeUtility.encodeText(MimeUtility.java:373) at javax.mail.internet.MimeMessage.setSubject(MimeMessage.java:694) at javax.mail.internet.MimeMessage.setSubject(MimeMessage.java:660) at SendMail.doPost(SendMail.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:521) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apach   More>>

I am trying a servlet to send mail after submitting form data on Tomcat3.2.3 but it gives an error as follows
Internal Servlet Error:

java.lang.NullPointerException
at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:915)
at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:539)
at javax.mail.internet.MimeUtility.encodeText(MimeUtility.java:373)
at javax.mail.internet.MimeMessage.setSubject(MimeMessage.java:694)
at javax.mail.internet.MimeMessage.setSubject(MimeMessage.java:660)
at SendMail.doPost(SendMail.java:57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)



Can anyone help what's wrong here.

   <<Less
About | Sitemap | Contact