HTTP Status 500 - ch.base.dao.DaoException: 装载数据失败!

type Exception report

message ch.base.dao.DaoException: 装载数据失败!

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

exception

javax.servlet.ServletException: ch.base.dao.DaoException: 装载数据失败!
	org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	ch.base.util.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:107)

root cause

ch.base.dao.DaoException: 装载数据失败!
	ch.base.hibernate.dao.SHCommonDao.findObj(SHCommonDao.java:212)
	s91.action.GetDocAction.execute(GetDocAction.java:33)
	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	ch.base.util.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:107)

root cause

org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool could not acquire a resource from its primary factory or source.; nested exception is java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool could not acquire a resource from its primary factory or source.
	org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:96)
	org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.translate(SQLErrorCodeSQLExceptionTranslator.java:257)
	org.springframework.orm.hibernate3.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:329)
	org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:316)
	org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:317)
	org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:383)
	org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:378)
	ch.base.hibernate.dao.SHCommonDao.findObj(SHCommonDao.java:207)
	s91.action.GetDocAction.execute(GetDocAction.java:33)
	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	ch.base.util.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:107)

root cause

java.sql.SQLException: An SQLException was provoked by the following failure: com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool could not acquire a resource from its primary factory or source.
	com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:68)
	com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:57)
	com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:213)
	com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedDataSource.java:64)
	com.mchange.v2.c3p0.ComboPooledDataSource.getConnection(ComboPooledDataSource.java:464)
	org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:80)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:304)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:109)
	org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:105)
	org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561)
	org.hibernate.loader.Loader.doQuery(Loader.java:661)
	org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:223)
	org.hibernate.loader.Loader.loadEntity(Loader.java:1782)
	org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:93)
	org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:81)
	org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2729)
	org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:365)
	org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:346)
	org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123)
	org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)
	org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
	org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:809)
	org.hibernate.impl.SessionImpl.get(SessionImpl.java:749)
	org.hibernate.impl.SessionImpl.get(SessionImpl.java:742)
	org.springframework.orm.hibernate3.HibernateTemplate$1.doInHibernate(HibernateTemplate.java:389)
	org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:312)
	org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:383)
	org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:378)
	ch.base.hibernate.dao.SHCommonDao.findObj(SHCommonDao.java:207)
	s91.action.GetDocAction.execute(GetDocAction.java:33)
	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	ch.base.util.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:107)

root cause

com.mchange.v2.resourcepool.ResourcePoolException: A ResourcePool could not acquire a resource from its primary factory or source.
	com.mchange.v2.resourcepool.BasicResourcePool.awaitAcquire(BasicResourcePool.java:870)
	com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:201)
	com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:209)
	com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedDataSource.java:64)
	com.mchange.v2.c3p0.ComboPooledDataSource.getConnection(ComboPooledDataSource.java:464)
	org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:80)
	org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:304)
	org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:109)
	org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:105)
	org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561)
	org.hibernate.loader.Loader.doQuery(Loader.java:661)
	org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:223)
	org.hibernate.loader.Loader.loadEntity(Loader.java:1782)
	org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:93)
	org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:81)
	org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2729)
	org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:365)
	org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:346)
	org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123)
	org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)
	org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
	org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:809)
	org.hibernate.impl.SessionImpl.get(SessionImpl.java:749)
	org.hibernate.impl.SessionImpl.get(SessionImpl.java:742)
	org.springframework.orm.hibernate3.HibernateTemplate$1.doInHibernate(HibernateTemplate.java:389)
	org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:312)
	org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:383)
	org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:378)
	ch.base.hibernate.dao.SHCommonDao.findObj(SHCommonDao.java:207)
	s91.action.GetDocAction.execute(GetDocAction.java:33)
	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	ch.base.util.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:107)

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


Apache Tomcat/8.0.32