当前位置: 代码迷 >> Java Web开发 >> 警告: SQL Error: 0, SQLState: null,严重: Cannot create PoolableConnectionFactory,该怎么解决
  详细解决方案

警告: SQL Error: 0, SQLState: null,严重: Cannot create PoolableConnectionFactory,该怎么解决

热度:1713   发布时间:2016-04-17 10:44:02.0
警告: SQL Error: 0, SQLState: null,严重: Cannot create PoolableConnectionFactory
Java code
警告: SQL Error: 0, SQLState: null2010-4-20 13:34:50 org.hibernate.util.JDBCExceptionReporter logExceptions严重: Cannot create PoolableConnectionFactory2010-4-20 13:34:50 org.hibernate.cfg.SettingsFactory buildSettings警告: Could not obtain connection metadataorg.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory, cause: java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)    at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:82)    at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:300)    at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:838)    at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:821)    at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)    ..

小弟初入JAVA项目,import项目后,运行后,tomcat6。0提示如下错误,请高手指教

------解决方案--------------------
是用什么连接池?
------解决方案--------------------
啊啊,眼花了,原来是DBCP

LZ换换别的连接池试试
------解决方案--------------------
数据库监听未启动 修改PC上注册表中的ImagePath值。 
我下面以现在主流的数据库ORACLE为例 
重新手动启动数据库监听: 
1:开始 → 运行→ 输入CMD→ 进入DOS命令提示界面 
d:>lsnrctl 
LSNRCTL> status 
或者 
LSNRCTL> start 
也有可能连接Url出错 服务器链接出错
------解决方案--------------------
lsnrctl 是装有ORACLE的那机子的命令

pl/sql能连上吧?

要是能接就去修改一下hibernate的配置文件,那应该有连接池的相关信息
  相关解决方案