commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Minhaj <minhaj...@gmail.com>
Subject [dbcp] nested exception is org.hibernate.exception.JDBCConnectionException: could not execute query
Date Thu, 08 Jul 2010 06:45:27 GMT
Hi,

I am facing the following problem, whenever i try to query database in
morning which means after 7+ hours. please advice.

2010-07-08 07:21:04,350  WARN (JDBCExceptionReporter.java:100)
[org.hibernate.util.JDBCExceptionReporter, logExceptions] - SQL Error: 0,
SQLState: 08S01
2010-07-08 07:21:04,350 ERROR (JDBCExceptionReporter.java:101)
[org.hibernate.util.JDBCExceptionReporter, logExceptions] - The last packet
successfully received from the server was 56,427,533 milliseconds ago.  The
last packet sent successfully to the server was 56,427,533 milliseconds ago.
is longer than the server configured value of 'wait_timeout'. You should
consider either expiring and/or testing connection validity before use in
your application, increasing the server configured values for client
timeouts, or using the Connector/J connection property 'autoReconnect=true'
to avoid this problem.
org.springframework.dao.DataAccessResourceFailureException: could not
execute query; nested exception is
org.hibernate.exception.JDBCConnectionException: could not execute query
    at
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:627)
[spring-orm-2.5.6.SEC01.jar:2.5.6.SEC01]
    at
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
[spring-orm-2.5.6.SEC01.jar:2.5.6.SEC01]
    at
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
[spring-orm-2.5.6.SEC01.jar:2.5.6.SEC01]
    at
org.springframework.orm.hibernate3.HibernateTemplate.executeFind(HibernateTemplate.java:343)
[spring-orm-2.5.6.SEC01.jar:2.5.6.SEC01]
    at
de.it2m.controller.db.impl.LoaderDaoImpl.pingDB(LoaderDaoImpl.java:78)
[LoaderDaoImpl.class:na]
    at
de.it2m.controller.web.controller.DataSourceValidatorController.handleRequest(DataSourceValidatorController.java:39)
[DataSourceValidatorController.class:na]
    at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
[spring-webmvc-2.5.6.SEC01.jar:2.5.6.SEC01]
    at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
[spring-webmvc-2.5.6.SEC01.jar:2.5.6.SEC01]
    at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
[spring-webmvc-2.5.6.SEC01.jar:2.5.6.SEC01]
    at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
[spring-webmvc-2.5.6.SEC01.jar:2.5.6.SEC01]
    at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
[spring-webmvc-2.5.6.SEC01.jar:2.5.6.SEC01]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
[servlet-api.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
[servlet-api.jar:na]
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
[catalina.jar:na]
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:na]
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
[catalina.jar:na]
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
[catalina.jar:na]
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
[catalina.jar:na]
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[catalina.jar:na]
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[catalina.jar:na]
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
[catalina.jar:na]
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
[tomcat-coyote.jar:na]
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
[tomcat-coyote.jar:na]
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
[tomcat-coyote.jar:na]
    at java.lang.Thread.run(Thread.java:619) [na:1.6.0_18]
Caused by: org.hibernate.exception.JDBCConnectionException: could not
execute query
    at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:97)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.doList(Loader.java:2235)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.list(Loader.java:2124)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:312)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1723)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at
org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:165)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:175)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at
de.it2m.controller.db.impl.LoaderDaoImpl$1.doInHibernate(LoaderDaoImpl.java:84)
[LoaderDaoImpl$1.class:na]
    at
org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
[spring-orm-2.5.6.SEC01.jar:2.5.6.SEC01]
    ... 22 common frames omitted
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last
packet successfully received from the server was 56,427,533 milliseconds
ago.  The last packet sent successfully to the server was 56,427,533
milliseconds ago. is longer than the server configured value of
'wait_timeout'. You should consider either expiring and/or testing
connection validity before use in your application, increasing the server
configured values for client timeouts, or using the Connector/J connection
property 'autoReconnect=true' to avoid this problem.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[na:1.6.0_18]
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[na:1.6.0_18]
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[na:1.6.0_18]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[na:1.6.0_18]
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
[mysql-connector-java-5.1.9.jar:na]
    at
com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
[mysql-connector-java-5.1.9.jar:na]
    at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3313)
[mysql-connector-java-5.1.9.jar:na]
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1940)
[mysql-connector-java-5.1.9.jar:na]
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
[mysql-connector-java-5.1.9.jar:na]
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2637)
[mysql-connector-java-5.1.9.jar:na]
    at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2162)
[mysql-connector-java-5.1.9.jar:na]
    at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)
[commons-dbcp-1.2.2.jar:1.2.2]
    at
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1812)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.doQuery(Loader.java:697)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    at org.hibernate.loader.Loader.doList(Loader.java:2232)
[hibernate-core-3.3.2.GA.jar:3.3.2.GA]
    ... 30 common frames omitted
Caused by: java.net.SocketException: Broken pipe
    at java.net.SocketOutputStream.socketWrite0(Native Method) [na:1.6.0_18]
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
[na:1.6.0_18]
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
[na:1.6.0_18]
    at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
[na:1.6.0_18]
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
[na:1.6.0_18]
    at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3294)
[mysql-connector-java-5.1.9.jar:na]
    ... 40 common frames omitted

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message