Hibernate 3.2.5.ga
when server not work more 12 hours:
Code:
2007-10-28 09:06:02,891 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 11935407628
2007-10-28 09:06:02,891 DEBUG [org.hibernate.engine.query.QueryPlanCache] located HQL query plan in cache (from Users where login=:login)
2007-10-28 09:06:02,891 DEBUG [org.hibernate.engine.query.QueryPlanCache] located HQL query plan in cache (from Users where login=:login)
2007-10-28 09:06:02,891 DEBUG [org.hibernate.engine.query.HQLQueryPlan] find: from Users where login=:login
2007-10-28 09:06:02,891 DEBUG [org.hibernate.engine.QueryParameters] named parameters: {login=nik}
2007-10-28 09:06:02,891 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
2007-10-28 09:06:02,891 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
2007-10-28 09:06:02,891 DEBUG [org.hibernate.SQL]
select
users0_.id as id10_,
users0_.first_name as first2_10_,
users0_.last_name as last3_10_,
users0_.is_locked as is4_10_,
users0_.login as login10_,
users0_.password as password10_,
users0_.position_id as position7_10_
from
users users0_
where
users0_.login=?
2007-10-28 09:06:02,891 DEBUG [org.hibernate.jdbc.AbstractBatcher] preparing statement
2007-10-28 09:06:02,891 DEBUG [org.hibernate.type.StringType] binding 'nik' to parameter: 1
2007-10-28 09:06:02,954 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
2007-10-28 09:06:02,954 DEBUG [org.hibernate.jdbc.AbstractBatcher] closing statement
2007-10-28 09:06:02,954 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
2007-10-28 09:06:02,954 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
2007-10-28 09:06:02,985 DEBUG [org.hibernate.util.JDBCExceptionReporter] Cannot release connection [???]
java.sql.SQLException: Already closed.
at org.apache.tomcat.dbcp.dbcp.PoolableConnection.close(PoolableConnection.java:84)
at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:181)
at org.hibernate.connection.DatasourceConnectionProvider.closeConnection(DatasourceConnectionProvider.java:74)
at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:451)
at org.hibernate.jdbc.ConnectionManager.aggressiveRelease(ConnectionManager.java:406)
at org.hibernate.jdbc.ConnectionManager.afterStatement(ConnectionManager.java:281)
at org.hibernate.jdbc.AbstractBatcher.closePreparedStatement(AbstractBatcher.java:543)
at org.hibernate.jdbc.AbstractBatcher.closeStatement(AbstractBatcher.java:269)
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:285)
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:212)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1801)
at org.hibernate.loader.Loader.doQuery(Loader.java:674)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2220)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:66)
at DBManager.query(DBManager.java:129)
at AuthorizationFilter.getUser(AuthorizationFilter.java:205)
at AuthorizationFilter.doFilter(AuthorizationFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
second query worked normally