首页上一页 1 下一页尾页 3 条记录 1/1页
jsp项目开发案例全程实录 第10章 博客网
发表在JavaWeb图书答疑
2011-01-04
是否精华
是
否
版块置顶:
是
否
您好:
第10章博客网站jar包需要4个,分别是msbase.jar,msutil.jar,mssqlserver.jar,jspSmartUpload.jar;
但是从网站下载的jar包只有sqljdbc.jar和jspSmartUpload.jar包。当登陆博客网是,出现下面的错误,请帮助解答,谢谢。
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
com.wy.tool.JDBConnection.executeQuery(JDBConnection.java:52)
com.wy.dao.ConsumerDao.getConsumerForm(ConsumerDao.java:98)
com.wy.webiter.ConsumerServlet.checkConsumer(ConsumerServlet.java:169)
com.wy.webiter.ConsumerServlet.doGet(ConsumerServlet.java:16)
com.wy.webiter.ConsumerServlet.doPost(ConsumerServlet.java:186)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.29
另外我发现JDBCconnection.java 代码中有如下代码
public class JDBConnection {
private final String url = "jdbc:sqlserver://192.168.1.199:1433;DatabaseName=db_BlodMay";
private final String userName = "sa";
private final String password = "111";
private Connection con = null;
和视频中说的密码为空和localhost不一致! 请给出解决的办法,谢谢。
第10章博客网站jar包需要4个,分别是msbase.jar,msutil.jar,mssqlserver.jar,jspSmartUpload.jar;
但是从网站下载的jar包只有sqljdbc.jar和jspSmartUpload.jar包。当登陆博客网是,出现下面的错误,请帮助解答,谢谢。
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
com.wy.tool.JDBConnection.executeQuery(JDBConnection.java:52)
com.wy.dao.ConsumerDao.getConsumerForm(ConsumerDao.java:98)
com.wy.webiter.ConsumerServlet.checkConsumer(ConsumerServlet.java:169)
com.wy.webiter.ConsumerServlet.doGet(ConsumerServlet.java:16)
com.wy.webiter.ConsumerServlet.doPost(ConsumerServlet.java:186)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.29
另外我发现JDBCconnection.java 代码中有如下代码
public class JDBConnection {
private final String url = "jdbc:sqlserver://192.168.1.199:1433;DatabaseName=db_BlodMay";
private final String userName = "sa";
private final String password = "111";
private Connection con = null;
和视频中说的密码为空和localhost不一致! 请给出解决的办法,谢谢。