异常:
Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449) at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167) at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142) at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85) at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353) at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:558) ... 81 more
Caused by: java.sql.SQLException: com.mchange.v2.c3p0.ComboPooledDataSource [ java.beans.IntrospectionException: java.lang.reflect.InvocationTargetException [lastAcquisitionFailureDefaultUser] ] has been closed() -- you can no longer use it. at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.assertCpds(AbstractPoolBackedDataSource.java:447) at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getPoolManager(AbstractPoolBackedDataSource.java:459) at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446) ... 86 more log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
分析:
不知道这两个Caused by之间是什么关系,承接?并列?抑或因果!?还是其它。
第一个Caused by异常提示:
Caused
by: java.sql.SQLException: com.mchange.v2.c3p0.ComboPooledDataSource [
java.beans.IntrospectionException:
java.lang.reflect.InvocationTargetException
[lastAcquisitionFailureDefaultUser] ] has been closed() -- you can no
longer use it.
是在assertCpds后报的,应该也就是assertConnectionPoolDataSource,想要确认连接池数据源是否可用,但被告知you can no longer use it.
第
二个Caused by因为某些不知道的原因,它无法基于SQLState
handledSpecificException,得不到具体异常(或者根本就没有得到SQLState),只知道Cannot open
connection,为什么无法得到具体异常这个原因我觉得有兴趣可以去了解一下。
还有比较值得先去解决的问题是:
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
可能的解决方案:
http://blog.csdn.net/wang12/article/details/6659003
http://mymobile.iteye.com/blog/1058044
或者是log4j版本引起或者是设置或者其它
http://topic.csdn.net/u/20120524/09/6f4071b8-d551-4436-a913-58a359cde1ef.html?seed=408165219&r=78661532#r_78661532
分享到:
相关推荐
错误表现:如“org.hibernate.exception.JDBCConnectionException: Cannot open connection”,表明Hibernate无法建立与数据库的连接。 解决方案:检查数据库URL、用户名和密码是否正确。此外,还需确认数据库服务...
2009-07-02 12:08:30,902 DEBUG [org.hibernate.util.JDBCExceptionReporter] Cannot open connection [???] org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!...
在服务器上安装FileZilla Server时出现425 Can’t open data connection的问题,客户端读取目录列表失败 服务器是腾讯云的,具体解决办法如下 这个问题主要是由于服务器所在网络环境的问题,解决这个问题很简单: 1...
Redis是一款高性能的键值对数据库,它以C语言编写,被广泛应用于缓存、消息中间件、数据库等多个领域。在本主题中,我们将探讨Redis的源码解析以及哨片(Sentinel)系统和分片(Sharding)技术的实现,特别是它们...
主要语言:Rust 项目分类:[工具] [应用软件] 项目标签:[桌面应用] 推荐理由:一款免费远程桌面软件,支持多平台,包括Linux、Mac、Windows和Android。它以开箱即用的方式提供远程桌面功能,无需任何复杂的配置。...
DBCP(Database Connection Pool)是Apache的一个开源项目,提供了一个基于Java的数据源连接池实现。在上述问题中,应用程序遇到了由于连接池不合理的锁机制导致的连接耗尽问题,表现为无法从连接池获取新的数据库...
https://github.com/petrfaltus/mysql-connection-source-codes.git 2.安装MySQL(作为Docker容器) 在您的计算机上安装 参考 参考 子目录docker-database包含准备好的Windows批处理: 01-run-database.cmd提取图像...
#### 一、启动错误:`sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory` **问题描述**: 在尝试启动Nginx时,可能会遇到如下的错误...
ChannelShell channel = (ChannelShell) session.openChannel("shell"); channel.setPty(true, "vt100", 80, 24, 720, 480); channel.setInputStream(System.in); channel.setOutputStream(System.out); channel....
首先,我们来看第一个错误:“Exception in thread “main” java.lang.UnsatisfiedLinkError:/tmp/OraInstall2009-11-25_02-34-42PM/jre/1.4.2/lib/i386/libawt.so:libXp.so.6: cannot open shared object file: No...
JMS Exception: Cannot open a Topic client for entity type Subscriber ``` 这是因为 TopicSubscriber 不支持订阅启用Partition 的 Topic。要解决这个问题,需要使用 MessageConsumer 来订阅消息: ```java ...
二、错误描述:Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-09-25_10-54-49PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or ...
然而,描述中提到的问题"Cannot open include file: 'config-win.h': No such file or directory"通常是在编译或安装过程中遇到的错误,这意味着系统找不到必要的头文件`config-win.h`。这可能是由于编译环境不完整...
BBS论坛的源代码 运行方式如下: 1.将SimpleBBS\database...2.Cannot open database "StudentInfo" requested by the login. The login failed. 这个错误说明没有附加上StudentInfo.mdb的数据库,或者是用户登录失败。
/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': 没有那个文件或目录 (to install the contents of '/root/.pub' anyway, look at the -f option) 解决方法 [root@hadoop1 sbin]# ssh-keygen ...
1. **类型1(JDBC-ODBC桥接驱动)**:这是最早的JDBC驱动方式,它依赖于ODBC(Open Database Connectivity)来实现Java与数据库的通信。在这种模式下,Java应用程序通过JDBC调用ODBC,然后ODBC驱动将请求转换为特定...
3. **无法打开项目**:当收到“Warning (W0202005) Can not open the project with last saved status. See the [All Messages] tab in the Output panel.”的警告时,可能是由于项目状态与保存时的状态不匹配。用户...
con.Open(); ``` 然后,可以创建`SqlCommand`对象来执行SQL语句。例如,获取tb_admin表的所有记录: ```csharp SqlCommand cmd = new SqlCommand("select * from tb_admin", con); ``` 通过`SqlDataReader`逐行...
如果遇到`Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc`错误,这通常意味着缺少对应数据库的JDBC驱动。此时,需要将JDBC驱动添加到项目的\WEB-INF\platform\plugins\org....
- **C1083: Cannot open include file: 'd3dxmath.h': No such file or directory**:这通常是因为缺少旧版本的DirectX头文件。解决方法是下载旧版DirectX SDK并替换缺失的文件。 - **LNK2019: unresolved external ...