Hello All,
I am using hibernate with jpa and have depolyed application on tomcat, tomcat is managing the connection pool. Sometimes when i log into the application below error is thrown:
03 Sep 2013 07:45:14,410 [ajp-bio-8009-exec-19] WARN org.hibernate.engine.jdbc.spi.SqlExceptionHelper - SQL Error: 17002, SQLState: 08006 03 Sep 2013 07:45:14,410 [ajp-bio-8009-exec-19] ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - Io exception: Connection reset 03 Sep 2013 07:45:14,410 [ajp-bio-8009-exec-19] ERROR com.abcxyz.efgh.dao.impl.UserDAOImpl - Exception occured in UserDAOImpl:authenticate method while authenticatin user:mohitGarg and the exception is : org.hibernate.exception.JDBCConnectionException: could not extract ResultSet 03 Sep 2013 07:45:14,410 [ajp-bio-8009-exec-19] WARN org.hibernate.engine.jdbc.spi.SqlExceptionHelper - SQL Error: 0, SQLState: null 03 Sep 2013 07:45:14,410 [ajp-bio-8009-exec-19] ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - Already closed.
Before throwing this exception query is printed in logs.
And when I log in again then this error never appears(this error only appears when user log's in for the first time).
Someone please help.
|