HTTP Status 500 鈥 Internal Server Error


Type Exception Report

Message javax.servlet.ServletException: javax.servlet.jsp.JspException: java.sql.SQLException: The last packet successfully received from the server was 188,016,553 milliseconds ago. The last packet sent successfully to the server was 188,016,919 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. Query: select id,title,summary,keywords,cat_id from wcm_cms_news where id=? Parameters: [4331]

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: java.sql.SQLException: The last packet successfully received from the server was 188,016,553 milliseconds ago.  The last packet sent successfully to the server was 188,016,919 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. Query: select id,title,summary,keywords,cat_id from wcm_cms_news where id=?  Parameters: [4331]
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:599)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:500)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	com.jerei.website.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:87)

Root Cause

javax.servlet.ServletException: javax.servlet.jsp.JspException: java.sql.SQLException: The last packet successfully received from the server was 188,016,553 milliseconds ago.  The last packet sent successfully to the server was 188,016,919 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. Query: select id,title,summary,keywords,cat_id from wcm_cms_news where id=?  Parameters: [4331]
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:913)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:846)
	org.apache.jsp.news.tryw_002ddetail_jsp._jspService(tryw_002ddetail_jsp.java:919)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	com.jerei.website.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:87)

Root Cause

java.sql.SQLException: The last packet successfully received from the server was 188,016,553 milliseconds ago.  The last packet sent successfully to the server was 188,016,919 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. Query: select id,title,summary,keywords,cat_id from wcm_cms_news where id=?  Parameters: [4331]
	org.apache.commons.dbutils.QueryRunner.rethrow(QueryRunner.java:542)
	org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:399)
	org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:372)
	com.jerei.website.utils.db.DBHelper.map(DBHelper.java:90)
	org.apache.jsp.tag.web.core.common.seo_tag.doTag(seo_tag.java:110)
	org.apache.jsp.news.tryw_002ddetail_jsp._jspService(tryw_002ddetail_jsp.java:106)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	com.jerei.website.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:87)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/7.0.104

Baidu
sogou