首页上一页 1 下一页尾页 1 条记录 1/1页
jsp项目开发全程实录 第三章 电子商城报错,求解答,急!!
发表在JavaWeb图书答疑
2015-05-27
是否精华
是
否
版块置顶:
是
否
您好!我在做jsp项目开发全程实录(黄皮的) 第三章 企业电子商城 的系统,但是运行不出来,错误如下:
HTTP Status 500 - An exception occurred processing JSP page /index.jsp at line 6
type Exception report
message An exception occurred processing JSP page /index.jsp at line 6
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 /index.jsp at line 6
3: <%@page import="java.util.*"%>
4: <%@page import="com.wy.domain.GoodsForm" %>
5: <jsp:useBean id="newGood" scope="page" class="com.wy.dao.GoodsDao"/>
6: <%List nowList =newGood.selectMark(Integer.valueOf("0"));%>
7: <%List freeList =newGood.selectMark(Integer.valueOf("1"));%>
8: <html>
9: <head>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause
java.lang.NullPointerException
com.wy.dao.GoodsDao.selectMark(GoodsDao.java:52)
org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.44 logs.
用的tomcat6,sql server2012,用户名sa,密码也改了,数据库驱动文件用的是sqljdbc4.jar,我觉得已经按照视频配好了,不知道还有哪里不对,求指导,谢谢!!!
HTTP Status 500 - An exception occurred processing JSP page /index.jsp at line 6
type Exception report
message An exception occurred processing JSP page /index.jsp at line 6
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 /index.jsp at line 6
3: <%@page import="java.util.*"%>
4: <%@page import="com.wy.domain.GoodsForm" %>
5: <jsp:useBean id="newGood" scope="page" class="com.wy.dao.GoodsDao"/>
6: <%List nowList =newGood.selectMark(Integer.valueOf("0"));%>
7: <%List freeList =newGood.selectMark(Integer.valueOf("1"));%>
8: <html>
9: <head>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause
java.lang.NullPointerException
com.wy.dao.GoodsDao.selectMark(GoodsDao.java:52)
org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.44 logs.
用的tomcat6,sql server2012,用户名sa,密码也改了,数据库驱动文件用的是sqljdbc4.jar,我觉得已经按照视频配好了,不知道还有哪里不对,求指导,谢谢!!!