Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while creating database connection

 
yunuss khan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

i want to retreive records from database but error is coming when i am executing the code..

pls help..

My code is :


===================
Error is Coming...

type Exception report

message

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

exception

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
org.apache.jsp.prac.email_jsp._jspService(email_jsp.java:69)
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.



Thanks & Regards,
Yunus

[ December 14, 2006: Message edited by: Bear Bibeault ]
[BPSouther: Added UBB Code Tags]
[ December 14, 2006: Message edited by: Ben Souther ]
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The generated servlet source code for Tomcat is under the:
{tomcat install}/work/Catalina/localhost/org/apache/jsp
directory.

Find the file listed above and see what on line 69 is throwing a NullPointerException.

Also:
"pls" is not a word in the English language.
Please see:
http://faq.javaranch.com/view?UseRealWords
to see why we make such a big stinkin deal of this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic