•     欢迎光临上海创盈钢铁供应链有限公司!
    首页
  • 走进创盈
    • 创盈简介  |  
    • 领导致辞  |  
    • 组织结构  |  
    • 资质荣誉
  • 新闻中心
    • 行业动态  |  
    • 公司新闻
  • 资源中心
    • 创盈专注钢铁贸易27年
  • 联系我们
    • 联系我们  |  
    • 营销网络及合作伙伴  |  
    • 客户留言
  • 人才中心
    • 人才战略  |  
    • 人才招聘
  • 创盈 Error

    VelocityView : Error processing a template for path '/about/photo.html'

    Invocation of method 'queryPhotoByAlbumId' in class com.mysteel.site.album.web.tag.AlbumTag threw exception org.springframework.dao.RecoverableDataAccessException: ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 1,651,161,103 milliseconds ago. The last packet sent successfully to the server was 1,651,161,103 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. ### The error may exist in com/mysteel/site/album/dao/sqlmap/Photo.xml ### The error may involve com.mysteel.site.album.dao.PhotoDao.count-Inline ### The error occurred while setting parameters ### SQL: SELECT COUNT(photoId) FROM SITE_ALBUM_PHOTO WHERE albumId = ? ### Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 1,651,161,103 milliseconds ago. The last packet sent successfully to the server was 1,651,161,103 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. ; The last packet successfully received from the server was 1,651,161,103 milliseconds ago. The last packet sent successfully to the server was 1,651,161,103 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.; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 1,651,161,103 milliseconds ago. The last packet sent successfully to the server was 1,651,161,103 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 /lx.html[line 5, column 49]
    org.springframework.dao.RecoverableDataAccessException: 
    ### Error querying database.  Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 1,651,161,103 milliseconds ago.  The last packet sent successfully to the server was 1,651,161,103 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.
    ### The error may exist in com/mysteel/site/album/dao/sqlmap/Photo.xml
    ### The error may involve com.mysteel.site.album.dao.PhotoDao.count-Inline
    ### The error occurred while setting parameters
    ### SQL: SELECT COUNT(photoId) FROM SITE_ALBUM_PHOTO    WHERE albumId = ?
    ### Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 1,651,161,103 milliseconds ago.  The last packet sent successfully to the server was 1,651,161,103 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.
    ; The last packet successfully received from the server was 1,651,161,103 milliseconds ago.  The last packet sent successfully to the server was 1,651,161,103 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.; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 1,651,161,103 milliseconds ago.  The last packet sent successfully to the server was 1,651,161,103 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 org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:100)
    	at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
    	at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
    	at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:91)
    	at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
    	at com.sun.proxy.$Proxy119.selectOne(Unknown Source)
    	at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160)
    	at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87)
    	at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152)
    	at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)
    	at com.sun.proxy.$Proxy122.count(Unknown Source)
    	at com.mysteel.site.album.bo.PhotoServiceImpl.query(PhotoServiceImpl.java:139)
    	at com.mysteel.site.album.web.tag.AlbumTag.queryPhotoByAlbumId(AlbumTag.java:119)
    	at sun.reflect.GeneratedMethodAccessor879.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
    	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
    	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
    	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
    	at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)
    	at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)
    	at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)
    	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
    	at org.apache.velocity.runtime.directive.Parse.render(Parse.java:284)
    	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
    	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
    	at org.apache.velocity.Template.merge(Template.java:358)
    	at org.apache.velocity.Template.merge(Template.java:262)
    	at org.apache.velocity.tools.view.VelocityView.performMerge(VelocityView.java:854)
    	at org.apache.velocity.tools.view.VelocityView.merge(VelocityView.java:814)
    	at org.apache.velocity.tools.view.VelocityViewServlet.mergeTemplate(VelocityViewServlet.java:386)
    	at org.apache.velocity.tools.view.VelocityViewServlet.doRequest(VelocityViewServlet.java:239)
    	at org.apache.velocity.tools.view.VelocityViewServlet.doGet(VelocityViewServlet.java:193)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:489)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:212)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)
    	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)
    	at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346)
    	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:617)
    	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
    	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:934)
    	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1698)
    	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
    	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
    	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
    	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
    	at java.lang.Thread.run(Thread.java:750)
    Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 1,651,161,103 milliseconds ago.  The last packet sent successfully to the server was 1,651,161,103 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.GeneratedConstructorAccessor974.newInstance(Unknown Source)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    	at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
    	at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3348)
    	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1967)
    	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    	at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1362)
    	at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
    	at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
    	at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:64)
    	at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:79)
    	at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:63)
    	at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325)
    	at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
    	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
    	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89)
    	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)
    	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
    	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76)
    	at sun.reflect.GeneratedMethodAccessor732.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427)
    	... 55 more
    Caused by: java.net.SocketException: Broken pipe (Write failed)
    	at java.net.SocketOutputStream.socketWrite0(Native Method)
    	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
    	at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
    	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
    	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
    	at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3329)
    	... 76 more