HTTP Status 500 – Internal Server Error


Type Exception Report

Message Request processing failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: PreparedStatementCallback; SQL [select id,name,domain,domain_alias,language,logo,seo_title,seo_keywords,seo_description,copyright,template,ext_header from cms_site where domain=? and publish=1 and del_flag=0 limit 0,1]; No operations allowed after connection closed.; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.

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

Exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: PreparedStatementCallback; SQL [select id,name,domain,domain_alias,language,logo,seo_title,seo_keywords,seo_description,copyright,template,ext_header from cms_site where domain=? and publish=1 and del_flag=0 limit 0,1]; No operations allowed after connection closed.; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Root Cause

org.springframework.dao.DataAccessResourceFailureException: PreparedStatementCallback; SQL [select id,name,domain,domain_alias,language,logo,seo_title,seo_keywords,seo_description,copyright,template,ext_header from cms_site where domain=? and publish=1 and del_flag=0 limit 0,1]; No operations allowed after connection closed.; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
	org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:79)
	org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
	org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:82)
	org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:649)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:684)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:716)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:726)
	org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:794)
	org.springframework.jdbc.core.JdbcTemplate.queryForMap(JdbcTemplate.java:828)
	com.juzhencms.apps.common.persistence.JdbcDao.queryRow(JdbcDao.java:45)
	com.juzhencms.apps.common.interceptor.UserInterceptor.preHandle(UserInterceptor.java:91)
	org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:133)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:962)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Root Cause

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
	sun.reflect.GeneratedConstructorAccessor418.newInstance(Unknown Source)
	sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
	com.mysql.jdbc.Util.getInstance(Util.java:408)
	com.mysql.jdbc.SQLError.createSQLException(SQLError.java:918)
	com.mysql.jdbc.SQLError.createSQLException(SQLError.java:897)
	com.mysql.jdbc.SQLError.createSQLException(SQLError.java:886)
	com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
	com.mysql.jdbc.ConnectionImpl.throwConnectionClosedException(ConnectionImpl.java:1187)
	com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionImpl.java:1182)
	com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4071)
	com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4040)
	sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)
	org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:108)
	org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:75)
	org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:108)
	org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:81)
	com.sun.proxy.$Proxy76.prepareStatement(Unknown Source)
	org.springframework.jdbc.core.JdbcTemplate$SimplePreparedStatementCreator.createPreparedStatement(JdbcTemplate.java:1524)
	org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:627)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:684)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:716)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:726)
	org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:794)
	org.springframework.jdbc.core.JdbcTemplate.queryForMap(JdbcTemplate.java:828)
	com.juzhencms.apps.common.persistence.JdbcDao.queryRow(JdbcDao.java:45)
	com.juzhencms.apps.common.interceptor.UserInterceptor.preHandle(UserInterceptor.java:91)
	org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:133)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:962)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Root Cause

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet successfully received from the server was 28,801,066 milliseconds ago.  The last packet sent successfully to the server was 28,800,838 milliseconds ago.
	sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
	com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:989)
	com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3559)
	com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3459)
	com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3900)
	com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)
	com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680)
	com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2487)
	com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858)
	com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1966)
	sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114)
	com.sun.proxy.$Proxy77.executeQuery(Unknown Source)
	org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:692)
	org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:633)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:684)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:716)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:726)
	org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:794)
	org.springframework.jdbc.core.JdbcTemplate.queryForMap(JdbcTemplate.java:828)
	com.juzhencms.apps.common.persistence.JdbcDao.queryRow(JdbcDao.java:45)
	com.juzhencms.apps.common.interceptor.UserInterceptor.preHandle(UserInterceptor.java:91)
	org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:133)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:962)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

Root Cause

java.io.EOFException: Can not read response from server. Expected to read 9,889,445 bytes, read 3,322,624 bytes before connection was unexpectedly lost.
	com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:3011)
	com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3519)
	com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3459)
	com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3900)
	com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)
	com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680)
	com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2487)
	com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858)
	com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1966)
	sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114)
	com.sun.proxy.$Proxy77.executeQuery(Unknown Source)
	org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:692)
	org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:633)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:684)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:716)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:726)
	org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:794)
	org.springframework.jdbc.core.JdbcTemplate.queryForMap(JdbcTemplate.java:828)
	com.juzhencms.apps.common.persistence.JdbcDao.queryRow(JdbcDao.java:45)
	com.juzhencms.apps.common.interceptor.UserInterceptor.preHandle(UserInterceptor.java:91)
	org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:133)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:962)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

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


Apache Tomcat/8.5.23