我用的是JDK+tomcat的环境配置
然后在浏览器中测试http://localhost/8080也正常
然后我下了个JSP源代码
可是总调试不出来,而且提示:这是什么意思啊???
HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception java.lang.NullPointerException
bean.DBClass.executeQuery(DBClass.java:109)
ShowBook.doGet(ShowBook.java:177)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
下载的源代码怎样才能调试出来呢?好像还得进行很多设置吧,我刚学了两天,还什么都不知道呢?
然后在浏览器中测试http://localhost/8080也正常
然后我下了个JSP源代码
可是总调试不出来,而且提示:这是什么意思啊???
HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception java.lang.NullPointerException
bean.DBClass.executeQuery(DBClass.java:109)
ShowBook.doGet(ShowBook.java:177)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
下载的源代码怎样才能调试出来呢?好像还得进行很多设置吧,我刚学了两天,还什么都不知道呢?
解决方案 »
- struts2用fileupload实现文件上传的问题!
- HQL怎么防止注入?
- JDK 1.6 + Tomcat 6.0 应该搭配 Eclipse 什么版本
- jsp和oracle连接问题
- 问一下为什么把做好了的JAVA聊天文件打包成jar格式在桌面上为什么不可以连接数据库?怎么解决谢谢~~~~
- 页面无法显示—— Missing message for key "button.cancel" 这个错误是什么意思
- rs 的用法,请教
- 如何在Servlet中显示正常的繁体字,马上给分
- JSP问题求解
- 如何用jsp或java实现文件的下载?在线等候
- 51地图如何删除所有marker标注?
- java解析json数据
ShowBook.doGet(ShowBook.java:177)
ShowBook里用了doGet方法,这个方法就是从数据库取数据的
bean.DBClass.executeQuery(DBClass.java:109)
这里不能从数据库中查出数据,所以就出错了