运行websphere过程出现以下jdbc出错

jjx333 2005-03-25 01:18:58
我使用Hibernate开发一个程序,运行在Websphere上,发现如果间隔一断时间,大约1H,就会出现以下的问题
[05-3-25 12:42:45:848 CST] 1d4db1a7 JDBCException W net.sf.hibernate.util.JDBCExceptionReporter SQL Error: 17002, SQLState: null
[05-3-25 12:42:46:020 CST] 1d4db1a7 JDBCException E net.sf.hibernate.util.JDBCExceptionReporter Io 异常: Connection reset by peer: socket closed
[05-3-25 12:42:46:036 CST] 1d4db1a7 JDBCException W net.sf.hibernate.util.JDBCExceptionReporter SQL Error: 17002, SQLState: null
[05-3-25 12:42:46:052 CST] 1d4db1a7 JDBCException E net.sf.hibernate.util.JDBCExceptionReporter Io 异常: Connection reset by peer: socket closed
[05-3-25 12:42:46:067 CST] 1d4db1a7 JDBCException E net.sf.hibernate.util.JDBCExceptionReporter Could not execute query
[05-3-25 12:42:46:114 CST] 1d4db1a7 JDBCException E net.sf.hibernate.util.JDBCExceptionReporter TRAS0014I: 下列异常已记录 java.sql.SQLException: Io 异常: Connection reset by peer: socket closed
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:335)
at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:503)
at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:518)
at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:210)
at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:193)
at oracle.jdbc.driver.OracleConnection.privatePrepareStatement(OracleConnection.java:869)
at oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:704)
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:249)
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:223)
at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:65)
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:704)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:185)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
at net.sf.hibernate.loader.Loader.doList(Loader.java:955)
at net.sf.hibernate.loader.Loader.list(Loader.java:946)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:846)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1543)
at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39)
at com.hnyl.sh.posa.dao.distributework.UserInfoDao.getUserInfo(UserInfoDao.java:87)
at com.hnyl.sh.posa.login.LoginAction.execute(LoginAction.java:39)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)


我想是否。连接池断了或连接池超时,是这些问题如何解决 !
谢谢
...全文
76 点赞 收藏 回复
写回复
回复

还没有回复,快来抢沙发~

发动态
发帖子
Java EE
创建于2007-09-28

3.7w+

社区成员

22.5w+

社区内容

J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区公告
暂无公告