MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » org.apache.commons.dbcp.SQLNestedException,该怎

org.apache.commons.dbcp.SQLNestedException,该怎么解决(2)

www.MyException.Cn  网友分享于:2013-01-24  浏览:363次

  at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
  at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
  at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)

  at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:468)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
  at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(Driv
erConnectionFactory.java:37)
  at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable
ConnectionFactory.java:290)
  at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas
icDataSource.java:877)
  at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:851)
  ... 39 more
[EAM2004] 2011-9-19 11:29:49 connection is null
[EAM2004] 2011-9-19 11:29:49 getEntityContent()...
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFact
ory (Io 异常: The Network Adapter could not establish the connection)
  at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:855)
  at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:540)
  at com.sbdcpn.pool.ConnectionPool.getConnection(Unknown Source:157)
  at com.sbdcpn.utils.db.BaseDAO.query(Unknown Source:625)
  at com.sbdcpn.utils.db.BaseDAO.query(Unknown Source:716)
  at com.sbdcpn.utils.db.EntitySourceImpl._$2(Unknown Source:102)
  at com.sbdcpn.utils.db.EntitySourceImpl.getEntity(Unknown Source:45)
  at com.sbdcpn.pool.EntityBeanPool.borrowEntityBean(Unknown Source:81)
  at com.sbdcpn.workflow.CheckFlowBean.<init>(Unknown Source:35)
  at com.sbdcpn.workflow.CheckFlowListener.<init>(Unknown Source:29)
  at com.sbdcpn.workflow.CheckFlowThread.<init>(Unknown Source:31)
  at com.sbdcpn.system.load.LoadCheckFlow.load(Unknown Source:35)
  at com.sbdcpn.servlet.init.AppInitServlet._$1(Unknown Source:111)
  at com.sbdcpn.servlet.init.AppInitServlet._$1(Unknown Source:65)
  at com.sbdcpn.servlet.init.AppInitServlet.init(Unknown Source:47)
  at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1139)
  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:96
6)
  at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3996)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
266)
  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:760)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
0)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

  at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)

  at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720
)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
  at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

  at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有