回 帖 发 新 帖 刷新版面

主题:请教jsp问题 在线急等

jdk 1.4
tomcat 5.0
win2000

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
    bookshop.run.op_bookclass.seachBookClass(op_bookclass.java:33)
    org.apache.jsp.bookshop.admin.adm_005faddbook_jsp._jspService(adm_005faddbook_jsp.java:371)
    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.

回复列表 (共3个回复)

沙发


java.lang.NullPointerException
    bookshop.run.op_bookclass.seachBookClass(op_bookclass.java:33)

空指针异常.

板凳

找不到class文件时会报这种错(我试过)
估计会是这个

3 楼

要是连接数据库的话也许是SQL语句写错了

我来回复

您尚未登录,请登录后再回复。点此登录或注册