当前位置:编程学习 > JAVA >>

db2重启后的怪问题

我有个web系统,连接db2数据库工作,发现每次执行db2stop再执行db2start后,web系统无法连接上数据库(登录界面出错),而且每次都是两次登陆失败之后就非常正常了,只要不再重启数据库。
问题是现在每晚都得跑计划任务停止数据库做备份再启动,天天来到单位就得先手动登两次失败才能正常,非常麻烦。无法登录时出错代码如下:
...org.hibernate.exception GenericJDBCException: could not load an entity: [db2.Password#43010419680828256]
...
Caused by: com.ibm.db2.jcc.b.DisconnectException: A communication error has been detected. Communication protocol being used: Reply.fill(). Communication API being used: InputStream.read(). Location where the error was detected: insufficient data. Communication function detecting the error: *. Protocol specific error codes(s) TCP/IP SOCKETS  DB2ConnectionCorrelator: GB25235C.KB0A.130516013421

项目部署was6.0下,转移到tomcat6下也是一样,db2diag.log中没有发现什么错误,was的SystemErr也没有报错。数据库采用默认设置,系统底层是hibernate3.2,使用com.ibm.db2.jcc.DB2Driver连接。
求高手解答,谢谢! DB2 Web 数据库 hibernate
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,