HTTP Status 500 - org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: We are already in the process of making 11 connections and the number of simultaneous builds has been throttled to 10


type Exception report

message org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: We are already in the process of making 11 connections and the number of simultaneous builds has been throttled to 10

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: We are already in the process of making 11 connections and the number of simultaneous builds has been throttled to 10
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	com.hanweb.jcms.filter.DownFileFilter.doFilter(DownFileFilter.java:53)

root cause

org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: We are already in the process of making 11 connections and the number of simultaneous builds has been throttled to 10
	org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
	org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:619)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:684)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:711)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:761)
	org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:192)
	org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:199)
	com.hanweb.common.basedao.BaseDAO.queryForArrays(BaseDAO.java:170)
	com.hanweb.jcms.dao.WebInformationDAO.findWebEntityById(WebInformationDAO.java:763)
	com.hanweb.jcms.service.website.Jcms_WebinfomationBLF.achieveWebEntity(Jcms_WebinfomationBLF.java:906)
	org.apache.jsp.jcms_005ffiles.jcms1.web1.site.module.visitcount.visit_jsp._jspService(visit_jsp.java:124)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	com.hanweb.jcms.filter.DownFileFilter.doFilter(DownFileFilter.java:53)

root cause

java.sql.SQLException: We are already in the process of making 11 connections and the number of simultaneous builds has been throttled to 10
	org.logicalcobwebs.proxool.Prototyper.checkSimultaneousBuildThrottle(Prototyper.java:260)
	org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:164)
	org.logicalcobwebs.proxool.ProxoolDataSource.getConnection(ProxoolDataSource.java:97)
	com.hanweb.common.datasource.AdaptiveDataSource.getConnection(AdaptiveDataSource.java:177)
	sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:606)
	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
	net.sf.log4jdbc.DataSourceSpyInterceptor.invoke(DataSourceSpyInterceptor.java:29)
	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
	com.sun.proxy.$Proxy16.getConnection(Unknown Source)
	org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
	org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
	org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:619)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:684)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:711)
	org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:761)
	org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:192)
	org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:199)
	com.hanweb.common.basedao.BaseDAO.queryForArrays(BaseDAO.java:170)
	com.hanweb.jcms.dao.WebInformationDAO.findWebEntityById(WebInformationDAO.java:763)
	com.hanweb.jcms.service.website.Jcms_WebinfomationBLF.achieveWebEntity(Jcms_WebinfomationBLF.java:906)
	org.apache.jsp.jcms_005ffiles.jcms1.web1.site.module.visitcount.visit_jsp._jspService(visit_jsp.java:124)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	com.hanweb.jcms.filter.DownFileFilter.doFilter(DownFileFilter.java:53)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.54 logs.


Apache Tomcat/7.0.54

,