Bookmark Topic Watch Topic
  • New Topic

help with a jsp application

 
Tony Lavalle
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Report post to moderator
ok I have probabally wrote this a few times. But here goes.
i am trying to access an access database for a school project. buit here is what i am getting after the logon process:

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:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.NullPointerException
org.apache.jsp.chapter05.sras.main_jsp._jspService(org.apache.jsp.chapter05.sras.main_jsp:61)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:80

can you folks help me to fix it. also if you need my file printed please let me know.

I really need help so that i can turn this thing in.
 
H Wilson
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Tony Lavalle:

root cause

java.lang.NullPointerException
org.apache.jsp.chapter05.sras.main_jsp._jspService(org.apache.jsp.chapter05.sras.main_jsp:61)



Do you know where your compiled jsp files reside? If so, I would look at line 61 of main_jsp.java to see what object might be null. If you find it, you can make the correction in main.jsp. It won't be at line 61 in main.jsp, though.
 
Tony Lavalle
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Report post to moderator
ok, I found line 61 in the class here it is:

Statement stm= connection.createStatement();
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35744
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Tony,
Please don't post the same question in multiple forums. As this is a JDBC question, please continue discussion in this thread
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!