jsp配置mysql问题。急啊,谢谢!!!

louyingwei2001 2005-05-18 12:14:23
用tomcat和mysql 做jsp 是连接是出现异常。如下:
HTTP Status 500 -

--------------------------------------------------------------------------------

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: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
hospital.db.dboperation.DBOperation.closeConnection(dboperation.java:64)
org.apache.jsp.patient.register_jsp._jspService(register_jsp.java:114)
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.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.28
查看日志文件说:
2005-05-18 11:06:17 org.gjt.mm.mysql.MysqlIO.init() Ln 370: Communication link failure: java.io.EOFException
是不是驱动有问题啊。怎么改啊!我用的驱动是在lib下放的.jar环境变量还用不 用添加啊!!怎么添加
...全文
66 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
louyingwei2001 2005-05-18
大哥们能不能说的详详细一点啊,看不太懂,太抽象了吧
回复
loveyousomuch 2005-05-18
这个类的64行出现了"空指针错误"
dboperation.java:64

应该是有类没有实例化就被引用了,
调试一下就ok了
回复
MARS.nEIL 2005-05-18
读文件结束异常..到达文件尾...
回复
mengyuus 2005-05-18
你得把代码贴出来大家看看才知道是什么问题吧!
回复
相关推荐
发帖
Java SE
创建于2007-09-28

6.1w+

社区成员

Java 2 Standard Edition
申请成为版主
帖子事件
创建了帖子
2005-05-18 12:14
社区公告
暂无公告