HTTP Status 500 – Internal Server Error


Type Exception Report

Message Could not dispatch to decorator

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

Exception

java.io.IOException: Could not dispatch to decorator
	org.sitemesh.webapp.WebAppContext.decorate(WebAppContext.java:150)
	org.sitemesh.BaseSiteMeshContext.decorate(BaseSiteMeshContext.java:39)
	org.sitemesh.webapp.SiteMeshFilter.postProcess(SiteMeshFilter.java:83)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:175)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:126)
	org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:120)
	org.sitemesh.config.ConfigurableSiteMeshFilter.doFilter(ConfigurableSiteMeshFilter.java:163)
	com.alchemy3.symbols.web.SymbolsContextListener.doFilter(SymbolsContextListener.java:103)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

Root Cause

org.apache.jasper.JasperException: An exception occurred processing [/app/basic-theme.jsp] at line [22]

19:     int promotionId = sessionManager.getPromotionId();
20:     String txTollFreeMessage = "";
21:     if (promotionId == 1) { // TX only
22:         txTollFreeMessage = "Please call " + configService.TOLL_FREE.getValue(promotionId) + " for questions.";
23:     }
24:     PlayerService playerService = configService.PLAYER_SERVICE.getValue(promotionId);
25: 


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:601)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:498)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	org.sitemesh.webapp.WebAppContext.dispatch(WebAppContext.java:168)
	org.sitemesh.webapp.WebAppContext.decorate(WebAppContext.java:143)
	org.sitemesh.BaseSiteMeshContext.decorate(BaseSiteMeshContext.java:39)
	org.sitemesh.webapp.SiteMeshFilter.postProcess(SiteMeshFilter.java:83)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:175)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:126)
	org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:120)
	org.sitemesh.config.ConfigurableSiteMeshFilter.doFilter(ConfigurableSiteMeshFilter.java:163)
	com.alchemy3.symbols.web.SymbolsContextListener.doFilter(SymbolsContextListener.java:103)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

Root Cause

java.lang.RuntimeException: CacheKey{promotionId=1, configurable=TOLL_FREE} org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 57,268,315 milliseconds ago.  The last packet sent successfully to the server was 57,268,316 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.
	com.alchemy3.symbols.config.ConfigService.lambda$new$0(ConfigService.java:78)
	com.alchemy3.symbols.config.ConfigService.getValue(ConfigService.java:322)
	com.alchemy3.symbols.config.ConfigService$Key.getValue(ConfigService.java:229)
	org.apache.jsp.app.basic_002dtheme_jsp._jspService(basic_002dtheme_jsp.java:153)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	org.sitemesh.webapp.WebAppContext.dispatch(WebAppContext.java:168)
	org.sitemesh.webapp.WebAppContext.decorate(WebAppContext.java:143)
	org.sitemesh.BaseSiteMeshContext.decorate(BaseSiteMeshContext.java:39)
	org.sitemesh.webapp.SiteMeshFilter.postProcess(SiteMeshFilter.java:83)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:175)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:126)
	org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:120)
	org.sitemesh.config.ConfigurableSiteMeshFilter.doFilter(ConfigurableSiteMeshFilter.java:163)
	com.alchemy3.symbols.web.SymbolsContextListener.doFilter(SymbolsContextListener.java:103)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

Root Cause

com.google.common.util.concurrent.UncheckedExecutionException: org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 57,268,315 milliseconds ago.  The last packet sent successfully to the server was 57,268,316 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.
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2217)
	com.google.common.cache.LocalCache.get(LocalCache.java:4154)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147)
	com.alchemy3.symbols.config.ConfigService.lambda$new$0(ConfigService.java:76)
	com.alchemy3.symbols.config.ConfigService.getValue(ConfigService.java:322)
	com.alchemy3.symbols.config.ConfigService$Key.getValue(ConfigService.java:229)
	org.apache.jsp.app.basic_002dtheme_jsp._jspService(basic_002dtheme_jsp.java:153)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	org.sitemesh.webapp.WebAppContext.dispatch(WebAppContext.java:168)
	org.sitemesh.webapp.WebAppContext.decorate(WebAppContext.java:143)
	org.sitemesh.BaseSiteMeshContext.decorate(BaseSiteMeshContext.java:39)
	org.sitemesh.webapp.SiteMeshFilter.postProcess(SiteMeshFilter.java:83)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:175)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:126)
	org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:120)
	org.sitemesh.config.ConfigurableSiteMeshFilter.doFilter(ConfigurableSiteMeshFilter.java:163)
	com.alchemy3.symbols.web.SymbolsContextListener.doFilter(SymbolsContextListener.java:103)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

Root Cause

org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 57,268,315 milliseconds ago.  The last packet sent successfully to the server was 57,268,316 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.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:245)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:430)
	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
	com.sun.proxy.$Proxy294.find(Unknown Source)
	com.alchemy3.symbols.config.ConfigService$1.load(ConfigService.java:65)
	com.alchemy3.symbols.config.ConfigService$1.load(ConfigService.java:62)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211)
	com.google.common.cache.LocalCache.get(LocalCache.java:4154)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147)
	com.alchemy3.symbols.config.ConfigService.lambda$new$0(ConfigService.java:76)
	com.alchemy3.symbols.config.ConfigService.getValue(ConfigService.java:322)
	com.alchemy3.symbols.config.ConfigService$Key.getValue(ConfigService.java:229)
	org.apache.jsp.app.basic_002dtheme_jsp._jspService(basic_002dtheme_jsp.java:153)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	org.sitemesh.webapp.WebAppContext.dispatch(WebAppContext.java:168)
	org.sitemesh.webapp.WebAppContext.decorate(WebAppContext.java:143)
	org.sitemesh.BaseSiteMeshContext.decorate(BaseSiteMeshContext.java:39)
	org.sitemesh.webapp.SiteMeshFilter.postProcess(SiteMeshFilter.java:83)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:175)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:126)
	org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:120)
	org.sitemesh.config.ConfigurableSiteMeshFilter.doFilter(ConfigurableSiteMeshFilter.java:163)
	com.alchemy3.symbols.web.SymbolsContextListener.doFilter(SymbolsContextListener.java:103)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

Root Cause

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 57,268,315 milliseconds ago.  The last packet sent successfully to the server was 57,268,316 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.
	jdk.internal.reflect.GeneratedConstructorAccessor1851.newInstance(Unknown Source)
	java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
	com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:989)
	com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3743)
	com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2506)
	com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2677)
	com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
	com.mysql.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:4842)
	org.apache.commons.dbcp.DelegatingConnection.setAutoCommit(DelegatingConnection.java:373)
	org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.setAutoCommit(PoolingDataSource.java:330)
	org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:225)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:430)
	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
	com.sun.proxy.$Proxy294.find(Unknown Source)
	com.alchemy3.symbols.config.ConfigService$1.load(ConfigService.java:65)
	com.alchemy3.symbols.config.ConfigService$1.load(ConfigService.java:62)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211)
	com.google.common.cache.LocalCache.get(LocalCache.java:4154)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147)
	com.alchemy3.symbols.config.ConfigService.lambda$new$0(ConfigService.java:76)
	com.alchemy3.symbols.config.ConfigService.getValue(ConfigService.java:322)
	com.alchemy3.symbols.config.ConfigService$Key.getValue(ConfigService.java:229)
	org.apache.jsp.app.basic_002dtheme_jsp._jspService(basic_002dtheme_jsp.java:153)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	org.sitemesh.webapp.WebAppContext.dispatch(WebAppContext.java:168)
	org.sitemesh.webapp.WebAppContext.decorate(WebAppContext.java:143)
	org.sitemesh.BaseSiteMeshContext.decorate(BaseSiteMeshContext.java:39)
	org.sitemesh.webapp.SiteMeshFilter.postProcess(SiteMeshFilter.java:83)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:175)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:126)
	org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:120)
	org.sitemesh.config.ConfigurableSiteMeshFilter.doFilter(ConfigurableSiteMeshFilter.java:163)
	com.alchemy3.symbols.web.SymbolsContextListener.doFilter(SymbolsContextListener.java:103)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

Root Cause

java.net.SocketException: Connection timed out (Write failed)
	java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
	java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
	java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:150)
	java.base/sun.security.ssl.SSLSocketOutputRecord.deliver(SSLSocketOutputRecord.java:345)
	java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1309)
	java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
	java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
	com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3725)
	com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2506)
	com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2677)
	com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
	com.mysql.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:4842)
	org.apache.commons.dbcp.DelegatingConnection.setAutoCommit(DelegatingConnection.java:373)
	org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.setAutoCommit(PoolingDataSource.java:330)
	org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:225)
	org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
	org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:430)
	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276)
	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
	com.sun.proxy.$Proxy294.find(Unknown Source)
	com.alchemy3.symbols.config.ConfigService$1.load(ConfigService.java:65)
	com.alchemy3.symbols.config.ConfigService$1.load(ConfigService.java:62)
	com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716)
	com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424)
	com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298)
	com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211)
	com.google.common.cache.LocalCache.get(LocalCache.java:4154)
	com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158)
	com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147)
	com.alchemy3.symbols.config.ConfigService.lambda$new$0(ConfigService.java:76)
	com.alchemy3.symbols.config.ConfigService.getValue(ConfigService.java:322)
	com.alchemy3.symbols.config.ConfigService$Key.getValue(ConfigService.java:229)
	org.apache.jsp.app.basic_002dtheme_jsp._jspService(basic_002dtheme_jsp.java:153)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	org.sitemesh.webapp.WebAppContext.dispatch(WebAppContext.java:168)
	org.sitemesh.webapp.WebAppContext.decorate(WebAppContext.java:143)
	org.sitemesh.BaseSiteMeshContext.decorate(BaseSiteMeshContext.java:39)
	org.sitemesh.webapp.SiteMeshFilter.postProcess(SiteMeshFilter.java:83)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:175)
	org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:126)
	org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:120)
	org.sitemesh.config.ConfigurableSiteMeshFilter.doFilter(ConfigurableSiteMeshFilter.java:163)
	com.alchemy3.symbols.web.SymbolsContextListener.doFilter(SymbolsContextListener.java:103)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

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


Apache Tomcat/8.5.95