com.ibm.websphere.ce.cm.StaleConnectionException: [ibm][db2][jcc][t4][2030][11211] 检测到了通信错误

错误信息如下:

com.ibm.websphere.ce.cm.StaleConnectionException: [ibm][db2][jcc][t4][2030][11211]

检测到了通信错误。所使用的通信协议:TCP/IP"n所使用的通信 APISOCKETS

检测到错误的位置:Reply.fill()"n用于检测错误的通信功能:InputStream.read()

特定于协议的错误代码数据不足、 0。消息:null"n   

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)"n     

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)"n    at

sun.reflect.DelegatingConstructorAccessorImpl.newInstance

(DelegatingConstructorAccessorImpl.java:45)"n

at java.lang.reflect.Constructor.newInstance(Constructor.java:522)"n  

at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper

(GenericDataStoreHelper.java:523)"n   

at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:578)"n      

at com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.mapException(WSJdbcUtil.java:909)"n 

at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.executeQuery(WSJdbcStatement.java:898)"n   

at com.newland.bi.util.db.DBUtil.executeQuery(Unknown Source)"n

at com.newland.bi.util.db.DBUtil.executeSql(Unknown Source)"n     

at com.newland.bi.dao.jdbc.DaoImpl.executeQuery(DaoImpl.java:64)"n   

at com.newland.bi.service.report.exp.dao.ReportExpDao.getExpList(ReportExpDao.java:72)"n 

at com.newland.bi.service.report.exp.manage.ReportExpMgt.runExport(ReportExpMgt.java:91)"n   

at com.newland.bi.service.report.exp.servlet.ReportExp1Servlet$1.run(ReportExp1Servlet.java:97)"n      

at java.util.TimerThread.mainLoop(Timer.java:537)"n       at java.util.TimerThread.run(Timer.java:487)"n

处理:

出错的原因可能是防火墙问题,websphere应用服务器和数据库服务器之间是否存在防火墙

防火墙是否会设置多久没活动的连接就自动断开掉,如果是这样的话就会有问题,因为websphere上面的数据库连接池可能有一段时间没连接而被防火墙断掉了

但对于连接池本身根本就不知道该连接是否还可用,所以web应用从连接池获取的连接可能就是已经断开的了,所以就可能会出现日记中的错误问题


 

posted on 2009-06-23 21:14 JGAO编程随笔 阅读(7350) 评论(1)  编辑  收藏

评论

# re: com.ibm.websphere.ce.cm.StaleConnectionException: [ibm][db2][jcc][t4][2030][11211] 检测到了通信错误 2013-01-15 10:09 颜伟广

怎么修改 请指教  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 
<2009年6月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

导航

统计

常用链接

留言簿(1)

随笔档案

搜索

最新评论

阅读排行榜

评论排行榜