错误信息:Could not get JDBC Connection; nested exception is com.caucho.sql.SQLExceptionWrapper: javax.resource.ResourceException: Connection pool is full. Can't allocate connection.
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.caucho.sql.SQLExceptionWrapper: javax.resource.ResourceException: Connection pool is full. Can't allocate connection.
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:573)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:637)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:666)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:674)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:718)
at cn.pconline.bbs7.dao.ForumDao.findFromDb(ForumDao.java:491)
at cn.pconline.bbs7.dao.ForumDao.findFromDb(ForumDao.java:33)
at cn.pconline.bbs7.dao.AbstractDao.find(AbstractDao.java:72)
at cn.pconline.bbs7.dao.AbstractDao.find(AbstractDao.java:63)
at cn.pconline.bbs7.dao.ForumDao.find(ForumDao.java:43)
at cn.pconline.bbs7.service.ForumService.findForum(ForumService.java:112)
at cn.pconline.bbs7.controller.ForumController.forum(ForumController.java:242)
at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:212)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
at cn.pconline.bbs7.utils.EnvFilter.doFilter(EnvFilter.java:56)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
at cn.pconline.util.monitor.MonitorFilter.doFilter(MonitorFilter.java:44)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
at cn.pconline.bbs7.filter.CORSFilter.doFilter(CORSFilter.java:40)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:730)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:649)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.caucho.sql.SQLExceptionWrapper: javax.resource.ResourceException: Connection pool is full. Can't allocate connection.
at com.caucho.sql.DataSourceImpl.getConnection(DataSourceImpl.java:75)
at com.caucho.sql.DBPool.getConnection(DBPool.java:701)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
... 44 more
Caused by: javax.resource.ResourceException: Connection pool is full. Can't allocate connection.
at com.caucho.jca.ConnectionPool.create(ConnectionPool.java:906)
at com.caucho.jca.ConnectionPool.allocatePool(ConnectionPool.java:807)
at com.caucho.jca.ConnectionPool.allocate(ConnectionPool.java:756)
at com.caucho.jca.ConnectionPool.allocateConnection(ConnectionPool.java:567)
at com.caucho.sql.DataSourceImpl.getConnection(DataSourceImpl.java:65)
... 47 more